From d2152a982f901ab30930fbad9aef7e53ef56852c Mon Sep 17 00:00:00 2001 From: SwaggerToSDK Automation Date: Tue, 15 Aug 2017 00:16:30 +0000 Subject: [PATCH] Generated from 2264e7b208abfc8b39d973717560658a6971a97f --- .../lib/generated/azure_mgmt_event_hub.rb | 0 .../azure_mgmt_event_hub/consumer_groups.rb | 0 .../event_hub_management_client.rb | 0 .../azure_mgmt_event_hub/event_hubs.rb | 0 .../models/access_rights.rb | 0 .../check_name_availability_parameter.rb | 0 .../models/check_name_availability_result.rb | 0 .../models/consumer_group_list_result.rb | 0 .../models/entity_status.rb | 0 .../models/event_hub_list_result.rb | 0 .../azure_mgmt_event_hub/models/operation.rb | 0 .../models/operation_display.rb | 0 .../models/operation_list_result.rb | 0 .../azure_mgmt_event_hub/models/sku.rb | 0 .../azure_mgmt_event_hub/models/sku_name.rb | 0 .../azure_mgmt_event_hub/models/sku_tier.rb | 0 .../models/tracked_resource.rb | 0 .../models/unavailable_reason.rb | 0 .../azure_mgmt_event_hub/module_definition.rb | 0 .../azure_mgmt_event_hub/namespaces.rb | 0 .../azure_mgmt_event_hub/operations.rb | 0 .../generated/azure_mgmt_event_hub/version.rb | 0 .../lib/generated/azure_mgmt_network.rb | 158 +- .../application_gateways.rb | 24 +- .../bgp_service_communities.rb | 2 +- .../default_security_rules.rb | 330 + .../express_route_circuit_authorizations.rb | 8 +- .../express_route_circuit_peerings.rb | 8 +- .../express_route_circuits.rb | 20 +- .../express_route_service_providers.rb | 2 +- .../azure_mgmt_network/inbound_nat_rules.rb | 616 + .../load_balancer_backend_address_pools.rb | 323 + ...load_balancer_frontend_ipconfigurations.rb | 323 + .../load_balancer_load_balancing_rules.rb | 320 + .../load_balancer_network_interfaces.rb | 225 + .../load_balancer_probes.rb | 320 + .../azure_mgmt_network/load_balancers.rb | 10 +- .../local_network_gateways.rb | 8 +- .../effective_network_security_group.rb | 3 +- ...tive_network_security_group_list_result.rb | 33 + .../models/effective_network_security_rule.rb | 6 +- .../models/effective_route_list_result.rb | 32 + .../effective_security_rule_protocol.rb | 17 + .../models/inbound_nat_rule.rb | 2 +- ...ult.rb => inbound_nat_rule_list_result.rb} | 23 +- .../models/ipconfiguration.rb | 2 +- .../models/load_balancer.rb | 11 + ...lancer_backend_address_pool_list_result.rb | 97 + ...er_frontend_ipconfiguration_list_result.rb | 98 + .../models/load_balancer_list_result.rb | 1 + ...alancer_load_balancing_rule_list_result.rb | 97 + .../models/load_balancer_probe_list_result.rb | 95 + .../models/load_balancer_sku.rb | 46 + .../models/load_balancer_sku_name.rb | 16 + .../models/load_balancing_rule.rb | 14 +- .../local_network_gateway_list_result.rb | 1 + .../network_interface_ipconfiguration.rb | 11 +- ...k_interface_ipconfiguration_list_result.rb | 98 + .../models/network_interface_list_result.rb | 1 + ...ork_interface_load_balancer_list_result.rb | 96 + ...rivate_access_service_properties_format.rb | 72 - .../models/public_ipaddress.rb | 17 +- .../models/public_ipaddress_sku.rb | 46 + .../models/public_ipaddress_sku_name.rb | 16 + .../models/security_rule.rb | 36 +- .../azure_mgmt_network/models/subnet.rb | 19 - ...al_network_connection_gateway_reference.rb | 46 + .../models/virtual_network_gateway.rb | 22 - .../virtual_network_gateway_connection.rb | 9 +- ..._network_gateway_connection_list_entity.rb | 300 + ..._network_gateway_connection_list_result.rb | 1 + ...network_gateway_list_connections_result.rb | 100 + .../virtual_network_gateway_list_result.rb | 1 + .../models/vpn_client_configuration.rb | 22 + .../network_interface_ipconfigurations.rb | 320 + .../network_interface_load_balancers.rb | 225 + .../azure_mgmt_network/network_interfaces.rb | 378 +- .../network_management_client.rb | 47 +- .../network_security_groups.rb | 10 +- .../azure_mgmt_network/network_watchers.rb | 28 +- .../azure_mgmt_network/packet_captures.rb | 12 +- .../azure_mgmt_network/public_ipaddresses.rb | 10 +- .../azure_mgmt_network/route_filter_rules.rb | 10 +- .../azure_mgmt_network/route_filters.rb | 12 +- .../azure_mgmt_network/route_tables.rb | 10 +- .../generated/azure_mgmt_network/routes.rb | 8 +- .../azure_mgmt_network/security_rules.rb | 8 +- .../generated/azure_mgmt_network/subnets.rb | 8 +- .../generated/azure_mgmt_network/usages.rb | 2 +- .../virtual_network_gateway_connections.rb | 14 +- .../virtual_network_gateways.rb | 224 +- .../virtual_network_peerings.rb | 8 +- .../azure_mgmt_network/virtual_networks.rb | 14 +- .../azure_mgmt_recovery_services_backup.rb | 138 +- .../backup_jobs.rb | 2 +- .../backup_protected_items.rb | 21 +- .../backup_resource_vault_configs.rb | 2 +- .../job_details.rb | 2 +- .../models/iaas_vmrecovery_point.rb | 10 + .../models/iaas_vmrestore_request.rb | 10 + .../recovery_services_backup_client.rb | 16 +- .../lib/generated/azure_mgmt_service_bus.rb | 37 +- .../azure_mgmt_service_bus/event_hubs.rb | 229 + .../models/access_rights.rb | 0 .../models/capture_description.rb | 103 + .../models/check_name_availability.rb | 0 .../models/check_name_availability_result.rb | 0 .../models/destination.rb | 79 + .../models/encoding_capture_description.rb | 16 + .../models/entity_status.rb | 0 .../models/event_hub_list_result.rb | 96 + .../azure_mgmt_service_bus/models/eventhub.rb | 154 + .../models/message_count_details.rb | 0 .../models/operation.rb | 0 .../models/operation_display.rb | 0 .../models/operation_list_result.rb | 0 .../models/premium_messaging_regions.rb} | 59 +- .../premium_messaging_regions_list_result.rb | 97 + .../premium_messaging_regions_properties.rb | 58 + .../azure_mgmt_service_bus/models/sku_name.rb | 0 .../azure_mgmt_service_bus/models/sku_tier.rb | 0 .../models/tracked_resource.rb | 2 +- .../models/unavailable_reason.rb | 0 .../module_definition.rb | 0 .../azure_mgmt_service_bus/namespaces.rb | 0 .../azure_mgmt_service_bus/operations.rb | 0 .../premium_messaging_regions_operations.rb} | 71 +- .../azure_mgmt_service_bus/queues.rb | 0 .../azure_mgmt_service_bus/regions.rb | 220 + .../service_bus_management_client.rb | 13 + .../azure_mgmt_service_bus/subscriptions.rb | 0 .../azure_mgmt_service_bus/topics.rb | 0 .../azure_mgmt_service_bus/version.rb | 0 .../lib/generated/azure_mgmt_web.rb | 173 +- .../app_service_certificate_orders.rb | 0 .../app_service_environments.rb | 0 .../azure_mgmt_web/app_service_plans.rb | 0 .../generated/azure_mgmt_web/certificates.rb | 0 .../azure_mgmt_web/deleted_web_apps.rb | 0 .../lib/generated/azure_mgmt_web/domains.rb | 0 .../models/access_control_entry_action.rb | 0 .../azure_mgmt_web/models/address.rb | 0 .../azure_mgmt_web/models/address_response.rb | 0 .../models/api_definition_info.rb | 0 .../models/app_service_certificate.rb | 0 .../app_service_certificate_collection.rb | 0 .../models/app_service_certificate_order.rb | 2 + ...pp_service_certificate_order_collection.rb | 0 .../app_service_certificate_resource.rb | 2 + .../models/app_service_environment.rb | 0 .../app_service_environment_collection.rb | 0 .../app_service_environment_resource.rb | 2 + .../azure_mgmt_web/models/app_service_plan.rb | 2 + .../models/app_service_plan_collection.rb | 0 .../models/app_service_plan_restrictions.rb | 0 .../models/application_logs_config.rb | 0 .../models/auto_heal_action_type.rb | 0 .../models/auto_heal_actions.rb | 0 .../models/auto_heal_custom_action.rb | 0 .../azure_mgmt_web/models/auto_heal_rules.rb | 0 .../models/auto_heal_triggers.rb | 0 ...re_blob_storage_application_logs_config.rb | 0 .../azure_blob_storage_http_logs_config.rb | 3 +- .../models/azure_resource_type.rb | 0 ...e_table_storage_application_logs_config.rb | 0 .../azure_mgmt_web/models/backup_item.rb | 25 +- .../models/backup_item_collection.rb | 0 .../models/backup_item_status.rb | 0 .../azure_mgmt_web/models/backup_request.rb | 27 +- .../models/backup_restore_operation_type.rb | 1 + .../azure_mgmt_web/models/backup_schedule.rb | 0 .../built_in_authentication_provider.rb | 0 .../azure_mgmt_web/models/capability.rb | 0 .../azure_mgmt_web/models/certificate.rb | 2 + .../models/certificate_collection.rb | 0 .../models/certificate_details.rb | 0 .../models/certificate_email.rb | 25 +- .../models/certificate_order_action.rb | 2 + .../models/certificate_order_action_type.rb | 0 .../models/certificate_order_status.rb | 0 .../models/certificate_product_type.rb | 0 .../azure_mgmt_web/models/channels.rb | 0 .../models/check_name_resource_types.rb | 0 .../models/clone_ability_result.rb | 0 .../azure_mgmt_web/models/cloning_info.rb | 0 .../models/compute_mode_options.rb | 0 .../azure_mgmt_web/models/conn_string_info.rb | 0 .../models/conn_string_value_type_pair.rb | 0 .../models/connection_string_dictionary.rb | 25 +- .../models/connection_string_type.rb | 0 .../azure_mgmt_web/models/contact.rb | 0 .../azure_mgmt_web/models/cors_settings.rb | 0 .../models/csm_move_resource_envelope.rb | 0 .../models/csm_operation_collection.rb | 94 + .../models/csm_operation_description.rb | 78 + .../csm_operation_description_properties.rb | 47 + .../models/csm_operation_display.rb | 76 + .../models/csm_publishing_profile_options.rb | 0 .../models/csm_site_recovery_entity.rb | 68 - .../azure_mgmt_web/models/csm_slot_entity.rb | 0 .../azure_mgmt_web/models/csm_usage_quota.rb | 0 .../models/csm_usage_quota_collection.rb | 0 .../custom_host_name_dns_record_type.rb | 0 .../models/custom_hostname_analysis_result.rb | 25 +- .../models/database_backup_setting.rb | 0 .../azure_mgmt_web/models/database_type.rb | 0 .../azure_mgmt_web/models/deleted_site.rb | 2 + .../models/deleted_web_app_collection.rb | 0 .../azure_mgmt_web/models/deployment.rb | 40 +- .../models/deployment_collection.rb | 0 .../azure_mgmt_web/models/dimension.rb | 76 + .../azure_mgmt_web/models/dns_type.rb | 0 .../models/dns_verification_test_result.rb | 0 .../generated/azure_mgmt_web/models/domain.rb | 2 + .../domain_availablility_check_result.rb | 0 .../models/domain_collection.rb | 0 .../domain_control_center_sso_request.rb | 0 .../models/domain_ownership_identifier.rb | 2 + .../domain_ownership_identifier_collection.rb | 0 .../models/domain_purchase_consent.rb | 0 ...domain_recommendation_search_parameters.rb | 0 .../azure_mgmt_web/models/domain_status.rb | 0 .../azure_mgmt_web/models/domain_type.rb | 0 .../azure_mgmt_web/models/enabled_config.rb | 3 +- .../azure_mgmt_web/models/error_entity.rb | 40 +- .../azure_mgmt_web/models/experiments.rb | 0 .../file_system_application_logs_config.rb | 0 .../models/file_system_http_logs_config.rb | 3 +- .../azure_mgmt_web/models/frequency_unit.rb | 0 .../azure_mgmt_web/models/geo_region.rb | 25 +- .../models/geo_region_collection.rb | 0 .../models/global_csm_sku_description.rb | 0 .../azure_mgmt_web/models/handler_mapping.rb | 0 .../azure_mgmt_web/models/host_name.rb | 0 .../models/host_name_binding.rb | 26 +- .../models/host_name_binding_collection.rb | 0 .../models/host_name_ssl_state.rb | 0 .../azure_mgmt_web/models/host_name_type.rb | 0 .../azure_mgmt_web/models/host_type.rb | 0 .../models/hosting_environment_diagnostics.rb | 0 .../models/hosting_environment_profile.rb | 0 .../models/hosting_environment_status.rb | 0 .../azure_mgmt_web/models/http_logs_config.rb | 0 .../models/hybrid_connection.rb | 36 +- .../models/hybrid_connection_collection.rb | 0 .../models/hybrid_connection_key.rb | 25 +- .../models/hybrid_connection_limits.rb | 25 +- .../azure_mgmt_web/models/identifier.rb | 27 +- .../models/identifier_collection.rb | 0 .../models/in_availability_reason_type.rb | 0 .../models/internal_load_balancing_mode.rb | 0 .../models/ip_security_restriction.rb | 0 .../models/key_vault_secret_status.rb | 0 .../models/localizable_string.rb | 0 .../azure_mgmt_web/models/log_level.rb | 0 .../models/managed_pipeline_mode.rb | 0 .../models/metric_availabilily.rb | 0 .../models/metric_availability.rb | 56 + .../models/metric_definition.rb | 25 +- .../models/metric_specification.rb | 202 + .../models/migrate_my_sql_request.rb | 38 +- .../models/migrate_my_sql_status.rb | 25 +- .../azure_mgmt_web/models/msdeploy.rb | 148 + .../azure_mgmt_web/models/msdeploy_log.rb | 85 + .../models/msdeploy_log_entry.rb | 70 + .../models/msdeploy_log_entry_type.rb | 17 + .../models/msdeploy_provisioning_state.rb | 19 + .../azure_mgmt_web/models/msdeploy_status.rb | 123 + .../models/my_sql_migration_type.rb | 16 + .../azure_mgmt_web/models/name_identifier.rb | 0 .../models/name_identifier_collection.rb | 0 .../azure_mgmt_web/models/name_value_pair.rb | 0 .../models/network_access_control_entry.rb | 0 .../azure_mgmt_web/models/network_features.rb | 25 +- .../models/notification_level.rb | 0 .../azure_mgmt_web/models/operation.rb | 0 .../azure_mgmt_web/models/operation_status.rb | 0 .../models/perf_mon_counter_collection.rb | 0 .../models/perf_mon_response.rb | 0 .../azure_mgmt_web/models/perf_mon_sample.rb | 10 + .../azure_mgmt_web/models/perf_mon_set.rb | 0 .../azure_mgmt_web/models/premier_add_on.rb | 2 + .../models/premier_add_on_offer.rb | 25 +- .../models/premier_add_on_offer_collection.rb | 0 .../models/provisioning_state.rb | 0 .../models/proxy_only_resource.rb} | 31 +- .../models/public_certificate.rb | 99 + .../models/public_certificate_collection.rb | 94 + .../models/public_certificate_location.rb | 17 + .../models/publishing_profile_format.rb | 0 .../azure_mgmt_web/models/push_settings.rb | 82 +- .../azure_mgmt_web/models/ramp_up_rule.rb | 0 .../azure_mgmt_web/models/recommendation.rb | 0 .../models/recommendation_rule.rb | 0 .../azure_mgmt_web/models/recover_response.rb | 2 + .../reissue_certificate_order_request.rb | 2 + .../models/relay_service_connection_entity.rb | 25 +- .../models/renew_certificate_order_request.rb | 2 + .../models/requests_based_trigger.rb | 0 .../azure_mgmt_web/models/resource.rb | 4 +- .../models/resource_collection.rb | 0 .../azure_mgmt_web/models/resource_metric.rb | 0 .../models/resource_metric_availability.rb | 0 .../models/resource_metric_collection.rb | 0 .../models/resource_metric_definition.rb | 25 +- .../resource_metric_definition_collection.rb | 0 .../models/resource_metric_name.rb | 0 .../models/resource_metric_property.rb | 0 .../models/resource_metric_value.rb | 0 .../models/resource_name_availability.rb | 0 .../resource_name_availability_request.rb | 0 .../models/resource_scope_type.rb | 0 .../azure_mgmt_web/models/restore_request.rb | 40 +- .../azure_mgmt_web/models/restore_response.rb | 25 +- .../azure_mgmt_web/models/route_type.rb | 0 .../azure_mgmt_web/models/scm_type.rb | 0 .../models/service_specification.rb | 54 + .../generated/azure_mgmt_web/models/site.rb | 68 +- .../models/site_auth_settings.rb | 25 +- .../models/site_availability_state.rb | 0 .../models/site_cloneability.rb | 0 .../models/site_cloneability_criterion.rb | 0 .../azure_mgmt_web/models/site_config.rb | 0 .../models/site_config_resource.rb | 25 +- .../models/site_config_resource_collection.rb | 0 .../site_configuration_snapshot_info.rb | 25 +- .../azure_mgmt_web/models/site_instance.rb | 25 +- .../azure_mgmt_web/models/site_limits.rb | 0 .../models/site_load_balancing.rb | 0 .../azure_mgmt_web/models/site_logs_config.rb | 25 +- .../azure_mgmt_web/models/site_machine_key.rb | 0 .../models/site_php_error_log_flag.rb | 25 +- .../azure_mgmt_web/models/site_seal.rb | 0 .../models/site_seal_request.rb | 0 .../models/site_source_control.rb | 25 +- .../azure_mgmt_web/models/sku_capacity.rb | 0 .../azure_mgmt_web/models/sku_description.rb | 0 .../azure_mgmt_web/models/sku_info.rb | 0 .../models/sku_info_collection.rb | 0 .../azure_mgmt_web/models/sku_infos.rb | 0 .../azure_mgmt_web/models/sku_name.rb | 0 .../models/slot_config_names_resource.rb | 25 +- .../azure_mgmt_web/models/slot_difference.rb | 25 +- .../models/slot_difference_collection.rb | 0 .../azure_mgmt_web/models/slot_swap_status.rb | 0 .../models/slow_requests_based_trigger.rb | 0 .../azure_mgmt_web/models/snapshot.rb | 25 +- .../models/snapshot_collection.rb | 0 .../models/snapshot_recovery_request.rb | 111 + .../models/snapshot_recovery_target.rb | 60 + .../azure_mgmt_web/models/source_control.rb | 25 +- .../models/source_control_collection.rb | 0 .../azure_mgmt_web/models/ssl_state.rb | 0 .../azure_mgmt_web/models/stamp_capacity.rb | 0 .../models/stamp_capacity_collection.rb | 0 .../models/status_codes_based_trigger.rb | 0 .../azure_mgmt_web/models/status_options.rb | 0 .../models/storage_migration_options.rb | 25 +- .../models/storage_migration_response.rb | 25 +- .../models/string_dictionary.rb | 25 +- .../models/tld_legal_agreement.rb | 0 .../models/tld_legal_agreement_collection.rb | 0 .../azure_mgmt_web/models/top_level_domain.rb | 25 +- .../top_level_domain_agreement_option.rb | 0 .../models/top_level_domain_collection.rb | 0 .../models/unauthenticated_client_action.rb | 0 .../generated/azure_mgmt_web/models/usage.rb | 25 +- .../azure_mgmt_web/models/usage_collection.rb | 0 .../azure_mgmt_web/models/usage_state.rb | 0 .../generated/azure_mgmt_web/models/user.rb | 25 +- .../azure_mgmt_web/models/validate_request.rb | 0 .../models/validate_resource_types.rb | 0 .../models/validate_response.rb | 0 .../models/validate_response_error.rb | 0 .../models/virtual_application.rb | 0 .../models/virtual_directory.rb | 0 .../models/virtual_ipmapping.rb | 0 .../models/virtual_network_profile.rb | 0 .../azure_mgmt_web/models/vnet_gateway.rb | 25 +- .../azure_mgmt_web/models/vnet_info.rb | 45 +- .../azure_mgmt_web/models/vnet_route.rb | 25 +- .../models/web_app_collection.rb | 0 .../models/web_app_instance_collection.rb | 0 .../azure_mgmt_web/models/worker_pool.rb | 0 .../models/worker_pool_collection.rb | 0 .../models/worker_pool_resource.rb | 25 +- .../models/worker_size_options.rb | 0 .../azure_mgmt_web/module_definition.rb | 0 .../lib/generated/azure_mgmt_web/provider.rb | 174 + .../azure_mgmt_web/recommendations.rb | 0 .../azure_mgmt_web/top_level_domains.rb | 0 .../lib/generated/azure_mgmt_web/version.rb | 0 .../lib/generated/azure_mgmt_web/web_apps.rb | 10574 ++++++++++------ .../web_site_management_client.rb | 0 394 files changed, 15272 insertions(+), 5646 deletions(-) mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb mode change 100755 => 100644 management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb rename management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/{private_access_services_list_result.rb => inbound_nat_rule_list_result.rb} (73%) create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb delete mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/event_hubs.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/access_rights.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/capture_description.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/destination.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/encoding_capture_description.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/entity_status.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/eventhub.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation_display.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb rename management/{azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb => azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb} (57%) mode change 100755 => 100644 create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/sku_name.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/module_definition.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/namespaces.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/operations.rb rename management/{azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb => azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb} (70%) mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/queues.rb create mode 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/regions.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/subscriptions.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/topics.rb mode change 100755 => 100644 management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/version.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_environments.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_plans.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/certificates.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/deleted_web_apps.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/domains.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/access_control_entry_action.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/address.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/address_response.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/api_definition_info.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_resource.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_resource.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/application_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_action_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_resource_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_schedule.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/built_in_authentication_provider.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/capability.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_details.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_email.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_product_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/channels.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/check_name_resource_types.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/clone_ability_result.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/cloning_info.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/compute_mode_options.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/conn_string_info.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/contact.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/cors_settings.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_collection.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description_properties.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_display.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb delete mode 100755 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/database_backup_setting.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/database_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_site.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment_collection.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dimension.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dns_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dns_verification_test_result.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/enabled_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/error_entity.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/experiments.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/frequency_unit.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/handler_mapping.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/http_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/key_vault_secret_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/localizable_string.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/log_level.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/managed_pipeline_mode.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availabilily.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availability.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_definition.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_specification.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_status.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_status.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/my_sql_migration_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_identifier.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_value_pair.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_features.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/notification_level.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/operation.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/operation_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_response.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_set.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/provisioning_state.rb rename management/{azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb => azure_mgmt_web/lib/generated/azure_mgmt_web/models/proxy_only_resource.rb} (62%) create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_collection.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_location.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/push_settings.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recommendation.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recommendation_rule.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recover_response.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_name.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_property.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_value.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_name_availability.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_scope_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_response.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/route_type.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/scm_type.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/service_specification.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_auth_settings.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_availability_state.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_cloneability.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_instance.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_limits.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_load_balancing.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_logs_config.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_machine_key.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_seal.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_seal_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_source_control.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_capacity.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_description.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_info.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_info_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_infos.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_name.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_swap_status.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_collection.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_request.rb create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_target.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ssl_state.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/stamp_capacity.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/status_options.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_options.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_response.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/string_dictionary.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/unauthenticated_client_action.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage_state.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/user.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_request.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_resource_types.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_response.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_response_error.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_application.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_directory.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_gateway.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_info.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_route.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/web_app_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/web_app_instance_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_resource.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_size_options.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/module_definition.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/provider.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/recommendations.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/top_level_domains.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/version.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_apps.rb mode change 100755 => 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb index 4ced59f048..fb570ff4c6 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb @@ -26,12 +26,20 @@ module Azure::ARM::Network autoload :ExpressRouteCircuits, 'generated/azure_mgmt_network/express_route_circuits.rb' autoload :ExpressRouteServiceProviders, 'generated/azure_mgmt_network/express_route_service_providers.rb' autoload :LoadBalancers, 'generated/azure_mgmt_network/load_balancers.rb' + autoload :LoadBalancerBackendAddressPools, 'generated/azure_mgmt_network/load_balancer_backend_address_pools.rb' + autoload :LoadBalancerFrontendIPConfigurations, 'generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb' + autoload :InboundNatRules, 'generated/azure_mgmt_network/inbound_nat_rules.rb' + autoload :LoadBalancerLoadBalancingRules, 'generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb' + autoload :LoadBalancerNetworkInterfaces, 'generated/azure_mgmt_network/load_balancer_network_interfaces.rb' + autoload :LoadBalancerProbes, 'generated/azure_mgmt_network/load_balancer_probes.rb' autoload :NetworkInterfaces, 'generated/azure_mgmt_network/network_interfaces.rb' + autoload :NetworkInterfaceIPConfigurations, 'generated/azure_mgmt_network/network_interface_ipconfigurations.rb' + autoload :NetworkInterfaceLoadBalancers, 'generated/azure_mgmt_network/network_interface_load_balancers.rb' autoload :NetworkSecurityGroups, 'generated/azure_mgmt_network/network_security_groups.rb' autoload :SecurityRules, 'generated/azure_mgmt_network/security_rules.rb' + autoload :DefaultSecurityRules, 'generated/azure_mgmt_network/default_security_rules.rb' autoload :NetworkWatchers, 'generated/azure_mgmt_network/network_watchers.rb' autoload :PacketCaptures, 'generated/azure_mgmt_network/packet_captures.rb' - autoload :AvailablePrivateAccessServices, 'generated/azure_mgmt_network/available_private_access_services.rb' autoload :PublicIPAddresses, 'generated/azure_mgmt_network/public_ipaddresses.rb' autoload :RouteFilters, 'generated/azure_mgmt_network/route_filters.rb' autoload :RouteFilterRules, 'generated/azure_mgmt_network/route_filter_rules.rb' @@ -48,126 +56,135 @@ module Azure::ARM::Network autoload :NetworkManagementClient, 'generated/azure_mgmt_network/network_management_client.rb' module Models - autoload :EffectiveRoute, 'generated/azure_mgmt_network/models/effective_route.rb' - autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb' - autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb' - autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb' - autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb' - autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb' - autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb' + autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb' + autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb' autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb' - autoload :PrivateAccessServicePropertiesFormat, 'generated/azure_mgmt_network/models/private_access_service_properties_format.rb' autoload :ExpressRouteCircuitRoutesTableSummary, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb' - autoload :IpsecPolicy, 'generated/azure_mgmt_network/models/ipsec_policy.rb' + autoload :VirtualNetworkGatewayListConnectionsResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb' autoload :ExpressRouteCircuitsRoutesTableSummaryListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb' - autoload :GatewayRouteListResult, 'generated/azure_mgmt_network/models/gateway_route_list_result.rb' + autoload :VirtualNetworkConnectionGatewayReference, 'generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb' autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb' - autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb' + autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb' autoload :ExpressRouteServiceProviderBandwidthsOffered, 'generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb' - autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb' - autoload :RouteFilterRuleListResult, 'generated/azure_mgmt_network/models/route_filter_rule_list_result.rb' - autoload :GatewayRoute, 'generated/azure_mgmt_network/models/gateway_route.rb' + autoload :PublicIPAddressSku, 'generated/azure_mgmt_network/models/public_ipaddress_sku.rb' + autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb' + autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb' autoload :ExpressRouteServiceProviderListResult, 'generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb' - autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb' + autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb' + autoload :LoadBalancerSku, 'generated/azure_mgmt_network/models/load_balancer_sku.rb' + autoload :BgpPeerStatusListResult, 'generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb' + autoload :RouteFilterRuleListResult, 'generated/azure_mgmt_network/models/route_filter_rule_list_result.rb' + autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb' autoload :RouteFilterListResult, 'generated/azure_mgmt_network/models/route_filter_list_result.rb' - autoload :ApplicationGatewayBackendHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health.rb' + autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb' autoload :PublicIPAddressListResult, 'generated/azure_mgmt_network/models/public_ipaddress_list_result.rb' - autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb' - autoload :PrivateAccessServicesListResult, 'generated/azure_mgmt_network/models/private_access_services_list_result.rb' - autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb' + autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb' autoload :ConnectivityInformation, 'generated/azure_mgmt_network/models/connectivity_information.rb' - autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb' + autoload :ApplicationGatewayBackendHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health.rb' autoload :ConnectivityHop, 'generated/azure_mgmt_network/models/connectivity_hop.rb' - autoload :VirtualNetworkUsage, 'generated/azure_mgmt_network/models/virtual_network_usage.rb' + autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb' autoload :ConnectivityIssue, 'generated/azure_mgmt_network/models/connectivity_issue.rb' - autoload :ApplicationGatewayProbeHealthResponseMatch, 'generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb' + autoload :BgpPeerStatus, 'generated/azure_mgmt_network/models/bgp_peer_status.rb' autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb' - autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb' - autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb' - autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb' - autoload :Error, 'generated/azure_mgmt_network/models/error.rb' + autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb' + autoload :InboundNatRuleListResult, 'generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb' + autoload :VirtualNetworkListUsageResult, 'generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb' + autoload :LoadBalancerBackendAddressPoolListResult, 'generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb' + autoload :ApplicationGatewayProbeHealthResponseMatch, 'generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb' + autoload :LoadBalancerFrontendIPConfigurationListResult, 'generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb' + autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb' + autoload :LoadBalancerLoadBalancingRuleListResult, 'generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb' + autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb' + autoload :LoadBalancerProbeListResult, 'generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb' autoload :ApplicationGatewayWebApplicationFirewallConfiguration, 'generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb' - autoload :AzureAsyncOperationResult, 'generated/azure_mgmt_network/models/azure_async_operation_result.rb' - autoload :ApplicationGatewayListResult, 'generated/azure_mgmt_network/models/application_gateway_list_result.rb' autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb' + autoload :ApplicationGatewayListResult, 'generated/azure_mgmt_network/models/application_gateway_list_result.rb' + autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb' autoload :ApplicationGatewayFirewallRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb' - autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb' + autoload :Error, 'generated/azure_mgmt_network/models/error.rb' autoload :ApplicationGatewayAvailableWafRuleSetsResult, 'generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb' - autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb' + autoload :AzureAsyncOperationResult, 'generated/azure_mgmt_network/models/azure_async_operation_result.rb' + autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb' + autoload :NetworkInterfaceIPConfigurationListResult, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb' + autoload :NetworkInterfaceLoadBalancerListResult, 'generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb' autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb' - autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb' - autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb' - autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb' - autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb' - autoload :ConnectivitySource, 'generated/azure_mgmt_network/models/connectivity_source.rb' - autoload :BgpServiceCommunityListResult, 'generated/azure_mgmt_network/models/bgp_service_community_list_result.rb' + autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb' autoload :ConnectivityParameters, 'generated/azure_mgmt_network/models/connectivity_parameters.rb' + autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb' + autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb' autoload :BGPCommunity, 'generated/azure_mgmt_network/models/bgpcommunity.rb' + autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb' + autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb' + autoload :EffectiveRoute, 'generated/azure_mgmt_network/models/effective_route.rb' + autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb' + autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb' + autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb' autoload :SecurityRuleListResult, 'generated/azure_mgmt_network/models/security_rule_list_result.rb' - autoload :Ipv6ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb' + autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb' autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb' - autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb' + autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb' autoload :ConnectivityDestination, 'generated/azure_mgmt_network/models/connectivity_destination.rb' - autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb' + autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb' autoload :NetworkWatcherListResult, 'generated/azure_mgmt_network/models/network_watcher_list_result.rb' - autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb' + autoload :IpsecPolicy, 'generated/azure_mgmt_network/models/ipsec_policy.rb' autoload :TopologyParameters, 'generated/azure_mgmt_network/models/topology_parameters.rb' - autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb' + autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb' autoload :TopologyAssociation, 'generated/azure_mgmt_network/models/topology_association.rb' - autoload :BgpPeerStatusListResult, 'generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb' + autoload :ApplicationGatewayBackendHealthServer, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb' autoload :TopologyResource, 'generated/azure_mgmt_network/models/topology_resource.rb' - autoload :ApplicationGatewayConnectionDraining, 'generated/azure_mgmt_network/models/application_gateway_connection_draining.rb' + autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb' autoload :Topology, 'generated/azure_mgmt_network/models/topology.rb' - autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb' + autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb' autoload :VerificationIPFlowParameters, 'generated/azure_mgmt_network/models/verification_ipflow_parameters.rb' - autoload :BgpPeerStatus, 'generated/azure_mgmt_network/models/bgp_peer_status.rb' + autoload :VirtualNetworkUsage, 'generated/azure_mgmt_network/models/virtual_network_usage.rb' autoload :VerificationIPFlowResult, 'generated/azure_mgmt_network/models/verification_ipflow_result.rb' - autoload :VirtualNetworkListUsageResult, 'generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb' + autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb' autoload :NextHopParameters, 'generated/azure_mgmt_network/models/next_hop_parameters.rb' - autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb' + autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb' autoload :NextHopResult, 'generated/azure_mgmt_network/models/next_hop_result.rb' - autoload :ApplicationGatewayFirewallDisabledRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb' + autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb' autoload :SecurityGroupViewParameters, 'generated/azure_mgmt_network/models/security_group_view_parameters.rb' - autoload :ApplicationGatewayFirewallRule, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb' + autoload :ApplicationGatewayAvailableSslPredefinedPolicies, 'generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb' autoload :NetworkInterfaceAssociation, 'generated/azure_mgmt_network/models/network_interface_association.rb' - autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb' + autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb' autoload :SubnetAssociation, 'generated/azure_mgmt_network/models/subnet_association.rb' - autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb' + autoload :BgpServiceCommunityListResult, 'generated/azure_mgmt_network/models/bgp_service_community_list_result.rb' autoload :SecurityRuleAssociations, 'generated/azure_mgmt_network/models/security_rule_associations.rb' - autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb' + autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb' autoload :SecurityGroupNetworkInterface, 'generated/azure_mgmt_network/models/security_group_network_interface.rb' - autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb' + autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb' autoload :SecurityGroupViewResult, 'generated/azure_mgmt_network/models/security_group_view_result.rb' - autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb' + autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb' autoload :PacketCaptureStorageLocation, 'generated/azure_mgmt_network/models/packet_capture_storage_location.rb' - autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb' + autoload :GatewayRouteListResult, 'generated/azure_mgmt_network/models/gateway_route_list_result.rb' autoload :PacketCaptureFilter, 'generated/azure_mgmt_network/models/packet_capture_filter.rb' - autoload :ApplicationGatewayBackendHealthServer, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb' + autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb' autoload :PacketCaptureParameters, 'generated/azure_mgmt_network/models/packet_capture_parameters.rb' - autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb' + autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb' autoload :PacketCapture, 'generated/azure_mgmt_network/models/packet_capture.rb' - autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb' + autoload :ApplicationGatewayFirewallDisabledRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb' autoload :PacketCaptureResult, 'generated/azure_mgmt_network/models/packet_capture_result.rb' autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb' autoload :PacketCaptureListResult, 'generated/azure_mgmt_network/models/packet_capture_list_result.rb' - autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb' + autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb' autoload :PacketCaptureQueryStatusResult, 'generated/azure_mgmt_network/models/packet_capture_query_status_result.rb' - autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb' + autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb' autoload :TroubleshootingParameters, 'generated/azure_mgmt_network/models/troubleshooting_parameters.rb' - autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb' + autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb' autoload :QueryTroubleshootingParameters, 'generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb' - autoload :VirtualNetworkUsageName, 'generated/azure_mgmt_network/models/virtual_network_usage_name.rb' + autoload :GatewayRoute, 'generated/azure_mgmt_network/models/gateway_route.rb' autoload :TroubleshootingRecommendedActions, 'generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb' - autoload :ApplicationGatewayAvailableSslPredefinedPolicies, 'generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb' + autoload :ApplicationGatewayFirewallRule, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb' autoload :TroubleshootingDetails, 'generated/azure_mgmt_network/models/troubleshooting_details.rb' - autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb' + autoload :Ipv6ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb' autoload :TroubleshootingResult, 'generated/azure_mgmt_network/models/troubleshooting_result.rb' - autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb' + autoload :ApplicationGatewayConnectionDraining, 'generated/azure_mgmt_network/models/application_gateway_connection_draining.rb' autoload :RetentionPolicyParameters, 'generated/azure_mgmt_network/models/retention_policy_parameters.rb' - autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb' + autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb' autoload :FlowLogStatusParameters, 'generated/azure_mgmt_network/models/flow_log_status_parameters.rb' - autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb' + autoload :VirtualNetworkUsageName, 'generated/azure_mgmt_network/models/virtual_network_usage_name.rb' autoload :FlowLogInformation, 'generated/azure_mgmt_network/models/flow_log_information.rb' + autoload :ConnectivitySource, 'generated/azure_mgmt_network/models/connectivity_source.rb' autoload :BackendAddressPool, 'generated/azure_mgmt_network/models/backend_address_pool.rb' autoload :InboundNatRule, 'generated/azure_mgmt_network/models/inbound_nat_rule.rb' autoload :SecurityRule, 'generated/azure_mgmt_network/models/security_rule.rb' @@ -210,7 +227,6 @@ module Models autoload :OutboundNatRule, 'generated/azure_mgmt_network/models/outbound_nat_rule.rb' autoload :LoadBalancer, 'generated/azure_mgmt_network/models/load_balancer.rb' autoload :NetworkWatcher, 'generated/azure_mgmt_network/models/network_watcher.rb' - autoload :PrivateAccessServiceResult, 'generated/azure_mgmt_network/models/private_access_service_result.rb' autoload :PatchRouteFilterRule, 'generated/azure_mgmt_network/models/patch_route_filter_rule.rb' autoload :PatchRouteFilter, 'generated/azure_mgmt_network/models/patch_route_filter.rb' autoload :BgpServiceCommunity, 'generated/azure_mgmt_network/models/bgp_service_community.rb' @@ -222,6 +238,7 @@ module Models autoload :VirtualNetworkGateway, 'generated/azure_mgmt_network/models/virtual_network_gateway.rb' autoload :LocalNetworkGateway, 'generated/azure_mgmt_network/models/local_network_gateway.rb' autoload :VirtualNetworkGatewayConnection, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb' + autoload :VirtualNetworkGatewayConnectionListEntity, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb' autoload :TransportProtocol, 'generated/azure_mgmt_network/models/transport_protocol.rb' autoload :IPAllocationMethod, 'generated/azure_mgmt_network/models/ipallocation_method.rb' autoload :IPVersion, 'generated/azure_mgmt_network/models/ipversion.rb' @@ -229,6 +246,7 @@ module Models autoload :SecurityRuleAccess, 'generated/azure_mgmt_network/models/security_rule_access.rb' autoload :SecurityRuleDirection, 'generated/azure_mgmt_network/models/security_rule_direction.rb' autoload :RouteNextHopType, 'generated/azure_mgmt_network/models/route_next_hop_type.rb' + autoload :PublicIPAddressSkuName, 'generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb' autoload :ApplicationGatewayProtocol, 'generated/azure_mgmt_network/models/application_gateway_protocol.rb' autoload :ApplicationGatewayCookieBasedAffinity, 'generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb' autoload :ApplicationGatewayBackendHealthServerHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb' @@ -250,9 +268,11 @@ module Models autoload :ExpressRouteCircuitSkuTier, 'generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb' autoload :ExpressRouteCircuitSkuFamily, 'generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb' autoload :ServiceProviderProvisioningState, 'generated/azure_mgmt_network/models/service_provider_provisioning_state.rb' + autoload :LoadBalancerSkuName, 'generated/azure_mgmt_network/models/load_balancer_sku_name.rb' autoload :LoadDistribution, 'generated/azure_mgmt_network/models/load_distribution.rb' autoload :ProbeProtocol, 'generated/azure_mgmt_network/models/probe_protocol.rb' autoload :NetworkOperationStatus, 'generated/azure_mgmt_network/models/network_operation_status.rb' + autoload :EffectiveSecurityRuleProtocol, 'generated/azure_mgmt_network/models/effective_security_rule_protocol.rb' autoload :EffectiveRouteSource, 'generated/azure_mgmt_network/models/effective_route_source.rb' autoload :EffectiveRouteState, 'generated/azure_mgmt_network/models/effective_route_state.rb' autoload :ProvisioningState, 'generated/azure_mgmt_network/models/provisioning_state.rb' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb index 2f713f19e4..1f7fd6285a 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb @@ -101,7 +101,7 @@ def get_with_http_info(resource_group_name, application_gateway_name, custom_hea 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -234,7 +234,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -317,7 +317,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -523,7 +523,7 @@ def list_available_waf_rule_sets_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_available_waf_rule_sets_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -606,7 +606,7 @@ def list_available_ssl_options_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_available_ssl_options_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -689,7 +689,7 @@ def list_available_ssl_predefined_policies_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_available_ssl_predefined_policies_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -775,7 +775,7 @@ def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_head # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'predefined_policy_name is nil' if predefined_policy_name.nil? @@ -866,7 +866,7 @@ def begin_delete_with_http_info(resource_group_name, application_gateway_name, c 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -954,7 +954,7 @@ def begin_create_or_update_async(resource_group_name, application_gateway_name, 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1063,7 +1063,7 @@ def begin_start_with_http_info(resource_group_name, application_gateway_name, cu 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1143,7 +1143,7 @@ def begin_stop_with_http_info(resource_group_name, application_gateway_name, cus 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1233,7 +1233,7 @@ def begin_backend_health_with_http_info(resource_group_name, application_gateway 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb index 6d7fbfd698..c9be3f0512 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb @@ -55,7 +55,7 @@ def list_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb new file mode 100644 index 0000000000..df336a89d1 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb @@ -0,0 +1,330 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class DefaultSecurityRules + include MsRestAzure + + # + # Creates and initializes a new instance of the DefaultSecurityRules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets all default security rules in a network security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all default security rules in a network security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all default security rules in a network security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'networkSecurityGroupName' => network_security_group_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::SecurityRuleListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get the specified default network security rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param default_security_rule_name [String] The name of the default security + # rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Get the specified default network security rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param default_security_rule_name [String] The name of the default security + # rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get the specified default network security rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param default_security_rule_name [String] The name of the default security + # rule. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'networkSecurityGroupName' => network_security_group_name,'defaultSecurityRuleName' => default_security_rule_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::SecurityRule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all default security rules in a network security group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SecurityRuleListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all default security rules in a network security group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all default security rules in a network security group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::SecurityRuleListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all default security rules in a network security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_security_group_name [String] The name of the network security + # group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 9f927fda25..2300fbe5fe 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, circuit_name, authorization_name, custom_head 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -248,7 +248,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -342,7 +342,7 @@ def begin_delete_async(resource_group_name, circuit_name, authorization_name, cu 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -437,7 +437,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, authorizatio fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? fail ArgumentError, 'authorization_parameters is nil' if authorization_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb index 90036de289..76f825de7d 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, circuit_name, peering_name, custom_headers = 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -246,7 +246,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -340,7 +340,7 @@ def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_h 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -432,7 +432,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, peering_name fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'peering_parameters is nil' if peering_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb index 9113f173ab..88fb55f25d 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb @@ -101,7 +101,7 @@ def get_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -379,7 +379,7 @@ def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -474,7 +474,7 @@ def get_peering_stats_async(resource_group_name, circuit_name, peering_name, cus 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -561,7 +561,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -644,7 +644,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -734,7 +734,7 @@ def begin_delete_with_http_info(resource_group_name, circuit_name, custom_header 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -822,7 +822,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, parameters, 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -943,7 +943,7 @@ def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'device_path is nil' if device_path.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1045,7 +1045,7 @@ def begin_list_routes_table_async(resource_group_name, circuit_name, peering_nam fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'device_path is nil' if device_path.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1147,7 +1147,7 @@ def begin_list_routes_table_summary_async(resource_group_name, circuit_name, pee fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'device_path is nil' if device_path.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb index 86d676501a..f7443f5bb4 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb @@ -55,7 +55,7 @@ def list_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb new file mode 100644 index 0000000000..ac2c17ccc5 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb @@ -0,0 +1,616 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class InboundNatRules + include MsRestAzure + + # + # Creates and initializes a new instance of the InboundNatRules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::InboundNatRuleListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @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! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # Send request + promise = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param expand [String] Expands referenced resources. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param expand [String] Expands referenced resources. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param expand [String] Expands referenced resources. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'inboundNatRuleName' => inbound_nat_rule_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version,'$expand' => expand}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates a load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to + # the create or update inbound nat rule operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to + # the create or update inbound nat rule operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # 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 = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Deletes the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # 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! + nil + end + + # + # Deletes the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Deletes the specified load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'inboundNatRuleName' => inbound_nat_rule_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Creates or updates a load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to + # the create or update inbound nat rule operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Creates or updates a load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to + # the create or update inbound nat rule operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Creates or updates a load balancer inbound nat rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param inbound_nat_rule_name [String] The name of the inbound nat rule. + # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to + # the create or update inbound nat rule operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + fail ArgumentError, 'inbound_nat_rule_parameters is nil' if inbound_nat_rule_parameters.nil? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper() + request_content = @client.serialize(request_mapper, inbound_nat_rule_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'inboundNatRuleName' => inbound_nat_rule_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [InboundNatRuleListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::InboundNatRuleListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the inbound nat rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb new file mode 100644 index 0000000000..2677d60641 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb @@ -0,0 +1,323 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class LoadBalancerBackendAddressPools + include MsRestAzure + + # + # Creates and initializes a new instance of the LoadBalancerBackendAddressPools class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets all the load balancer backed address pools. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the load balancer backed address pools. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the load balancer backed address pools. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerBackendAddressPoolListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets load balancer backend address pool. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param backend_address_pool_name [String] The name of the backend address + # pool. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets load balancer backend address pool. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param backend_address_pool_name [String] The name of the backend address + # pool. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets load balancer backend address pool. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param backend_address_pool_name [String] The name of the backend address + # pool. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'backendAddressPoolName' => backend_address_pool_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::BackendAddressPool.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancer backed address pools. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoadBalancerBackendAddressPoolListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all the load balancer backed address pools. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all the load balancer backed address pools. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerBackendAddressPoolListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancer backed address pools. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb new file mode 100644 index 0000000000..1bd354c947 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb @@ -0,0 +1,323 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class LoadBalancerFrontendIPConfigurations + include MsRestAzure + + # + # Creates and initializes a new instance of the LoadBalancerFrontendIPConfigurations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets all the load balancer frontend IP configurations. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the load balancer frontend IP configurations. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the load balancer frontend IP configurations. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerFrontendIPConfigurationListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets load balancer frontend IP configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param frontend_ipconfiguration_name [String] The name of the frontend IP + # configuration. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets load balancer frontend IP configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param frontend_ipconfiguration_name [String] The name of the frontend IP + # configuration. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets load balancer frontend IP configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param frontend_ipconfiguration_name [String] The name of the frontend IP + # configuration. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'frontendIPConfigurationName' => frontend_ipconfiguration_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::FrontendIPConfiguration.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancer frontend IP configurations. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoadBalancerFrontendIPConfigurationListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all the load balancer frontend IP configurations. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all the load balancer frontend IP configurations. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerFrontendIPConfigurationListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancer frontend IP configurations. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb new file mode 100644 index 0000000000..4d92c418bd --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb @@ -0,0 +1,320 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class LoadBalancerLoadBalancingRules + include MsRestAzure + + # + # Creates and initializes a new instance of the LoadBalancerLoadBalancingRules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets all the load balancing rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the load balancing rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the load balancing rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerLoadBalancingRuleListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the specified load balancer load balancing rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param load_balancing_rule_name [String] The name of the load balancing rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the specified load balancer load balancing rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param load_balancing_rule_name [String] The name of the load balancing rule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the specified load balancer load balancing rule. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param load_balancing_rule_name [String] The name of the load balancing rule. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'loadBalancingRuleName' => load_balancing_rule_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancingRule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancing rules in a load balancer. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoadBalancerLoadBalancingRuleListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all the load balancing rules in a load balancer. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all the load balancing rules in a load balancer. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerLoadBalancingRuleListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancing rules in a load balancer. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb new file mode 100644 index 0000000000..c856ae6cfc --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb @@ -0,0 +1,225 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class LoadBalancerNetworkInterfaces + include MsRestAzure + + # + # Creates and initializes a new instance of the LoadBalancerNetworkInterfaces class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets associated load balancer network interfaces. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets associated load balancer network interfaces. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets associated load balancer network interfaces. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets associated load balancer network interfaces. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NetworkInterfaceListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets associated load balancer network interfaces. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets associated load balancer network interfaces. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets associated load balancer network interfaces. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb new file mode 100644 index 0000000000..aec06eb921 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb @@ -0,0 +1,320 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class LoadBalancerProbes + include MsRestAzure + + # + # Creates and initializes a new instance of the LoadBalancerProbes class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Gets all the load balancer probes. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the load balancer probes. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the load balancer probes. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerProbeListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets load balancer probe. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param probe_name [String] The name of the probe. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets load balancer probe. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param probe_name [String] The name of the probe. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets load balancer probe. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param probe_name [String] The name of the probe. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'probeName' => probe_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::Probe.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancer probes. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoadBalancerProbeListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all the load balancer probes. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all the load balancer probes. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::LoadBalancerProbeListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the load balancer probes. + # + # @param resource_group_name [String] The name of the resource group. + # @param load_balancer_name [String] The name of the load balancer. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb index 8fa4963039..f76f4928a4 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, cu 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -410,7 +410,7 @@ def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -498,7 +498,7 @@ def begin_create_or_update_async(resource_group_name, load_balancer_name, parame 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb index a91df67865..06a1132a65 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb @@ -114,7 +114,7 @@ def get_with_http_info(resource_group_name, local_network_gateway_name, custom_h 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -241,7 +241,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -342,7 +342,7 @@ def begin_create_or_update_async(resource_group_name, local_network_gateway_name 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -454,7 +454,7 @@ def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb index e768016067..a3f5f6f385 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb @@ -16,7 +16,8 @@ class EffectiveNetworkSecurityGroup # @return [SubResource] The ID of network security group that is applied. attr_accessor :network_security_group - # @return [EffectiveNetworkSecurityGroupAssociation] + # @return [EffectiveNetworkSecurityGroupAssociation] Associated + # resources. attr_accessor :association # @return [Array] A collection of effective diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb index 4fc86d544d..2d7641517f 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb @@ -20,6 +20,38 @@ class EffectiveNetworkSecurityGroupListResult # @return [String] The URL to get the next set of results. attr_accessor :next_link + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [EffectiveNetworkSecurityGroupListResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end # # Mapper for EffectiveNetworkSecurityGroupListResult class as Ruby Hash. @@ -50,6 +82,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb index 8077f76556..932eb82ab0 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb @@ -17,9 +17,9 @@ class EffectiveNetworkSecurityRule # (if created by the user). attr_accessor :name - # @return [SecurityRuleProtocol] The network protocol this rule applies - # to. Possible values are: 'Tcp', 'Udp', and '*'. Possible values - # include: 'Tcp', 'Udp', '*' + # @return [EffectiveSecurityRuleProtocol] The network protocol this rule + # applies to. Possible values are: 'Tcp', 'Udp', and 'All'. Possible + # values include: 'Tcp', 'Udp', 'All' attr_accessor :protocol # @return [String] The source port or range. diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb index e8b55d4c70..4917f736e2 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb @@ -19,6 +19,37 @@ class EffectiveRouteListResult # @return [String] The URL to get the next set of results. attr_accessor :next_link + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [EffectiveRouteListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end # # Mapper for EffectiveRouteListResult class as Ruby Hash. @@ -49,6 +80,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb new file mode 100644 index 0000000000..847a2dfe48 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Defines values for EffectiveSecurityRuleProtocol + # + module EffectiveSecurityRuleProtocol + Tcp = "Tcp" + Udp = "Udp" + All = "All" + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb index 5ac97b68a4..88dd8bfdc9 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb @@ -19,7 +19,7 @@ class InboundNatRule < MsRestAzure::SubResource # @return [NetworkInterfaceIPConfiguration] A reference to a private IP # address defined on a network interface of a VM. Traffic sent to the # frontend port of each of the frontend IP configurations is forwarded to - # the backed IP. + # the backend IP. attr_accessor :backend_ipconfiguration # @return [TransportProtocol] The transport protocol for the endpoint. diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb similarity index 73% rename from management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb rename to management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb index e8dc584dc4..3ba6a3e355 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb @@ -6,15 +6,15 @@ module Azure::ARM::Network module Models # - # Response for the ListAvailablePrivateAccessServices API service call. + # Response for ListInboundNatRule API service call. # - class PrivateAccessServicesListResult + class InboundNatRuleListResult include MsRestAzure include MsRest::JSONable - # @return [Array] List of available private - # access service values in a region. + # @return [Array] A list of inbound nat rules in a load + # balancer. attr_accessor :value # @return [String] The URL to get the next set of results. @@ -26,7 +26,7 @@ class PrivateAccessServicesListResult # # Gets the rest of the items for the request, enabling auto-pagination. # - # @return [Array] operation results. + # @return [Array] operation results. # def get_all_items items = @value @@ -41,7 +41,7 @@ def get_all_items # # Gets the next page of results. # - # @return [PrivateAccessServicesListResult] with next page content. + # @return [InboundNatRuleListResult] with next page content. # def get_next_page response = @next_method.call(@next_link).value! unless @next_method.nil? @@ -53,16 +53,16 @@ def get_next_page end # - # Mapper for PrivateAccessServicesListResult class as Ruby Hash. + # Mapper for InboundNatRuleListResult class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, - serialized_name: 'PrivateAccessServicesListResult', + serialized_name: 'InboundNatRuleListResult', type: { name: 'Composite', - class_name: 'PrivateAccessServicesListResult', + class_name: 'InboundNatRuleListResult', model_properties: { value: { required: false, @@ -71,16 +71,17 @@ def self.mapper() name: 'Sequence', element: { required: false, - serialized_name: 'PrivateAccessServiceResultElementType', + serialized_name: 'InboundNatRuleElementType', type: { name: 'Composite', - class_name: 'PrivateAccessServiceResult' + class_name: 'InboundNatRule' } } } }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb index b7f6fb58a1..7e681a7af0 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb @@ -6,7 +6,7 @@ module Azure::ARM::Network module Models # - # IPConfiguration + # IP configuration # class IPConfiguration < MsRestAzure::SubResource diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb index a80e1658f4..5c8765cf7c 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb @@ -13,6 +13,9 @@ class LoadBalancer < MsRestAzure::Resource include MsRestAzure include MsRest::JSONable + # @return [LoadBalancerSku] The load balancer SKU. + attr_accessor :sku + # @return [Array] Object representing the # frontend IPs to be used for the load balancer attr_accessor :frontend_ipconfigurations @@ -120,6 +123,14 @@ def self.mapper() } } }, + sku: { + required: false, + serialized_name: 'sku', + type: { + name: 'Composite', + class_name: 'LoadBalancerSku' + } + }, frontend_ipconfigurations: { required: false, serialized_name: 'properties.frontendIPConfigurations', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb new file mode 100644 index 0000000000..10c3c5aa76 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb @@ -0,0 +1,97 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for ListBackendAddressPool API service call. + # + class LoadBalancerBackendAddressPoolListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of backend address pools in + # a load balancer. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [LoadBalancerBackendAddressPoolListResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for LoadBalancerBackendAddressPoolListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoadBalancerBackendAddressPoolListResult', + type: { + name: 'Composite', + class_name: 'LoadBalancerBackendAddressPoolListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'BackendAddressPoolElementType', + type: { + name: 'Composite', + class_name: 'BackendAddressPool' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb new file mode 100644 index 0000000000..1dd92773dd --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb @@ -0,0 +1,98 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for ListFrontendIPConfiguration API service call. + # + class LoadBalancerFrontendIPConfigurationListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of frontend IP + # configurations in a load balancer. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [LoadBalancerFrontendIPConfigurationListResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for LoadBalancerFrontendIPConfigurationListResult class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoadBalancerFrontendIPConfigurationListResult', + type: { + name: 'Composite', + class_name: 'LoadBalancerFrontendIPConfigurationListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'FrontendIPConfigurationElementType', + type: { + name: 'Composite', + class_name: 'FrontendIPConfiguration' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb index e200c10c9a..6b1bf22328 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb @@ -81,6 +81,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb new file mode 100644 index 0000000000..4ee4f781e8 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb @@ -0,0 +1,97 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for ListLoadBalancingRule API service call. + # + class LoadBalancerLoadBalancingRuleListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of load balancing rules in a + # load balancer. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [LoadBalancerLoadBalancingRuleListResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for LoadBalancerLoadBalancingRuleListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoadBalancerLoadBalancingRuleListResult', + type: { + name: 'Composite', + class_name: 'LoadBalancerLoadBalancingRuleListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LoadBalancingRuleElementType', + type: { + name: 'Composite', + class_name: 'LoadBalancingRule' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb new file mode 100644 index 0000000000..4e25c489fe --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb @@ -0,0 +1,95 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for ListProbe API service call. + # + class LoadBalancerProbeListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of probes in a load balancer. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [LoadBalancerProbeListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for LoadBalancerProbeListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoadBalancerProbeListResult', + type: { + name: 'Composite', + class_name: 'LoadBalancerProbeListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProbeElementType', + type: { + name: 'Composite', + class_name: 'Probe' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb new file mode 100644 index 0000000000..af516dec85 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb @@ -0,0 +1,46 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # SKU of a load balancer + # + class LoadBalancerSku + + include MsRestAzure + + include MsRest::JSONable + # @return [LoadBalancerSkuName] Name of a load balancer SKU. Possible + # values include: 'Basic', 'Standard' + attr_accessor :name + + + # + # Mapper for LoadBalancerSku class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoadBalancerSku', + type: { + name: 'Composite', + class_name: 'LoadBalancerSku', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb new file mode 100644 index 0000000000..d7665750e7 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Defines values for LoadBalancerSkuName + # + module LoadBalancerSkuName + Basic = "Basic" + Standard = "Standard" + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb index 768f5b11e7..abfa91e169 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb @@ -6,7 +6,7 @@ module Azure::ARM::Network module Models # - # A loag balancing rule for a load balancer. + # A load balancing rule for a load balancer. # class LoadBalancingRule < MsRestAzure::SubResource @@ -55,6 +55,11 @@ class LoadBalancingRule < MsRestAzure::SubResource # changed after you create the endpoint. attr_accessor :enable_floating_ip + # @return [Boolean] Configures SNAT for the VMs in the backend pool to + # use the publicIP address specified in the frontend of the load + # balancing rule. + attr_accessor :disable_outbound_snat + # @return [String] Gets the provisioning state of the PublicIP resource. # Possible values are: 'Updating', 'Deleting', and 'Failed'. attr_accessor :provisioning_state @@ -153,6 +158,13 @@ def self.mapper() name: 'Boolean' } }, + disable_outbound_snat: { + required: false, + serialized_name: 'properties.disableOutboundSnat', + type: { + name: 'Boolean' + } + }, provisioning_state: { required: false, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb index 35213fe6ee..7a3ef1e816 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb @@ -81,6 +81,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb index bdf6f54709..b4a6470bb8 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb @@ -25,7 +25,7 @@ class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource # LoadBalancerInboundNatRules. attr_accessor :load_balancer_inbound_nat_rules - # @return [String] + # @return [String] Private IP address of the IP configuration. attr_accessor :private_ipaddress # @return [IPAllocationMethod] Defines how a private IP address is @@ -39,17 +39,20 @@ class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource # Possible values include: 'IPv4', 'IPv6' attr_accessor :private_ipaddress_version - # @return [Subnet] + # @return [Subnet] Subnet bound to the IP configuration. attr_accessor :subnet # @return [Boolean] Gets whether this is a primary customer address on # the network interface. attr_accessor :primary - # @return [PublicIPAddress] + # @return [PublicIPAddress] Public IP address bound to the IP + # configuration. attr_accessor :public_ipaddress - # @return [String] + # @return [String] The provisioning state of the network interface IP + # configuration. Possible values are: 'Updating', 'Deleting', and + # 'Failed'. attr_accessor :provisioning_state # @return [String] The name of the resource that is unique within a diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb new file mode 100644 index 0000000000..74edecad0a --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb @@ -0,0 +1,98 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for list ip configurations API service call. + # + class NetworkInterfaceIPConfigurationListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of ip + # configurations. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [NetworkInterfaceIPConfigurationListResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for NetworkInterfaceIPConfigurationListResult class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkInterfaceIPConfigurationListResult', + type: { + name: 'Composite', + class_name: 'NetworkInterfaceIPConfigurationListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'NetworkInterfaceIPConfigurationElementType', + type: { + name: 'Composite', + class_name: 'NetworkInterfaceIPConfiguration' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb index 3631658947..89a6555c4d 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb @@ -81,6 +81,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb new file mode 100644 index 0000000000..69fe60e924 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for list ip configurations API service call. + # + class NetworkInterfaceLoadBalancerListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of load balancers. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [NetworkInterfaceLoadBalancerListResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for NetworkInterfaceLoadBalancerListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkInterfaceLoadBalancerListResult', + type: { + name: 'Composite', + class_name: 'NetworkInterfaceLoadBalancerListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LoadBalancerElementType', + type: { + name: 'Composite', + class_name: 'LoadBalancer' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb deleted file mode 100644 index fd1c4a9895..0000000000 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb +++ /dev/null @@ -1,72 +0,0 @@ -# encoding: utf-8 -# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. - -module Azure::ARM::Network - module Models - # - # The private access service properties. - # - class PrivateAccessServicePropertiesFormat - - include MsRestAzure - - include MsRest::JSONable - # @return [String] The type of the private access. - attr_accessor :service - - # @return [Array] A list of locations. - attr_accessor :locations - - # @return [String] The provisioning state of the resource. - attr_accessor :provisioning_state - - - # - # Mapper for PrivateAccessServicePropertiesFormat class as Ruby Hash. - # This will be used for serialization/deserialization. - # - def self.mapper() - { - required: false, - serialized_name: 'PrivateAccessServicePropertiesFormat', - type: { - name: 'Composite', - class_name: 'PrivateAccessServicePropertiesFormat', - model_properties: { - service: { - required: false, - serialized_name: 'service', - type: { - name: 'String' - } - }, - locations: { - required: false, - serialized_name: 'locations', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, - provisioning_state: { - required: false, - serialized_name: 'provisioningState', - type: { - name: 'String' - } - } - } - } - } - end - end - end -end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress.rb index aa86809ef1..734383e280 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress.rb @@ -13,6 +13,9 @@ class PublicIPAddress < MsRestAzure::Resource include MsRestAzure include MsRest::JSONable + # @return [PublicIPAddressSku] The public IP address SKU. + attr_accessor :sku + # @return [IPAllocationMethod] The public IP allocation method. Possible # values are: 'Static' and 'Dynamic'. Possible values include: 'Static', # 'Dynamic' @@ -22,14 +25,16 @@ class PublicIPAddress < MsRestAzure::Resource # 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' attr_accessor :public_ipaddress_version - # @return [IPConfiguration] + # @return [IPConfiguration] The IP configuration associated with the + # public IP address. attr_accessor :ip_configuration # @return [PublicIPAddressDnsSettings] The FQDN of the DNS record # associated with the public IP address. attr_accessor :dns_settings - # @return [String] + # @return [String] The IP address associated with the public IP address + # resource. attr_accessor :ip_address # @return [Integer] The idle timeout of the public IP address. @@ -103,6 +108,14 @@ def self.mapper() } } }, + sku: { + required: false, + serialized_name: 'sku', + type: { + name: 'Composite', + class_name: 'PublicIPAddressSku' + } + }, public_ipallocation_method: { required: false, serialized_name: 'properties.publicIPAllocationMethod', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku.rb new file mode 100644 index 0000000000..e6c5910c5c --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku.rb @@ -0,0 +1,46 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # SKU of a public IP address + # + class PublicIPAddressSku + + include MsRestAzure + + include MsRest::JSONable + # @return [PublicIPAddressSkuName] Name of a public IP address SKU. + # Possible values include: 'Basic', 'Standard' + attr_accessor :name + + + # + # Mapper for PublicIPAddressSku class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PublicIPAddressSku', + type: { + name: 'Composite', + class_name: 'PublicIPAddressSku', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb new file mode 100644 index 0000000000..a604c4789e --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Defines values for PublicIPAddressSkuName + # + module PublicIPAddressSkuName + Basic = "Basic" + Standard = "Standard" + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb index 4185c531c5..f77fa35c4a 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb @@ -45,9 +45,15 @@ class SecurityRule < MsRestAzure::SubResource attr_accessor :destination_address_prefix # @return [Array] The destination address prefixes. CIDR or - # destination IP rangees. + # destination IP ranges. attr_accessor :destination_address_prefixes + # @return [Array] The source port ranges. + attr_accessor :source_port_ranges + + # @return [Array] The destination port ranges. + attr_accessor :destination_port_ranges + # @return [SecurityRuleAccess] The network traffic is allowed or denied. # Possible values are: 'Allow' and 'Deny'. Possible values include: # 'Allow', 'Deny' @@ -167,6 +173,34 @@ def self.mapper() } } }, + source_port_ranges: { + required: false, + serialized_name: 'properties.sourcePortRanges', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + destination_port_ranges: { + required: false, + serialized_name: 'properties.destinationPortRanges', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, access: { required: true, serialized_name: 'properties.access', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/subnet.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/subnet.rb index 0f3e8555ba..2828f7507c 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/subnet.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/subnet.rb @@ -23,10 +23,6 @@ class Subnet < MsRestAzure::SubResource # @return [RouteTable] The reference of the RouteTable resource. attr_accessor :route_table - # @return [Array] An array of - # private access services values. - attr_accessor :private_access_services - # @return [Array] Gets an array of references to the # network interface IP configurations using subnet. attr_accessor :ip_configurations @@ -89,21 +85,6 @@ def self.mapper() class_name: 'RouteTable' } }, - private_access_services: { - required: false, - serialized_name: 'properties.privateAccessServices', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'PrivateAccessServicePropertiesFormatElementType', - type: { - name: 'Composite', - class_name: 'PrivateAccessServicePropertiesFormat' - } - } - } - }, ip_configurations: { required: false, read_only: true, diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb new file mode 100644 index 0000000000..37129d0c7c --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb @@ -0,0 +1,46 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # A reference to VirtualNetworkGateway or LocalNetworkGateway resource. + # + class VirtualNetworkConnectionGatewayReference + + include MsRestAzure + + include MsRest::JSONable + # @return [String] The ID of VirtualNetworkGateway or LocalNetworkGateway + # resource. + attr_accessor :id + + + # + # Mapper for VirtualNetworkConnectionGatewayReference class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'virtualNetworkConnectionGatewayReference', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConnectionGatewayReference', + model_properties: { + id: { + required: true, + serialized_name: 'id', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb index 6ec37c0b9d..86e95a951c 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb @@ -52,14 +52,6 @@ class VirtualNetworkGateway < MsRestAzure::Resource # @return [BgpSettings] Virtual network gateway's BGP speaker settings. attr_accessor :bgp_settings - # @return [String] The radius server address property of the - # VirtualNetworkGateway resource for vpn client connection. - attr_accessor :radius_server - - # @return [String] The radius secret property of the - # VirtualNetworkGateway resource for vpn client connection. - attr_accessor :radius_secret - # @return [String] The resource GUID property of the # VirtualNetworkGateway resource. attr_accessor :resource_guid @@ -204,20 +196,6 @@ def self.mapper() class_name: 'BgpSettings' } }, - radius_server: { - required: false, - serialized_name: 'properties.radiusServer', - type: { - name: 'String' - } - }, - radius_secret: { - required: false, - serialized_name: 'properties.radiusSecret', - type: { - name: 'String' - } - }, resource_guid: { required: false, serialized_name: 'properties.resourceGuid', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb index c6ed76e26d..6e84ac7514 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb @@ -16,13 +16,16 @@ class VirtualNetworkGatewayConnection < MsRestAzure::Resource # @return [String] The authorizationKey. attr_accessor :authorization_key - # @return [VirtualNetworkGateway] + # @return [VirtualNetworkGateway] The reference to virtual network + # gateway resource. attr_accessor :virtual_network_gateway1 - # @return [VirtualNetworkGateway] + # @return [VirtualNetworkGateway] The reference to virtual network + # gateway resource. attr_accessor :virtual_network_gateway2 - # @return [LocalNetworkGateway] + # @return [LocalNetworkGateway] The reference to local network gateway + # resource. attr_accessor :local_network_gateway2 # @return [VirtualNetworkGatewayConnectionType] Gateway connection type. diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb new file mode 100644 index 0000000000..01bf9586cf --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb @@ -0,0 +1,300 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # A common class for general resource information + # + class VirtualNetworkGatewayConnectionListEntity < MsRestAzure::Resource + + include MsRestAzure + + include MsRest::JSONable + # @return [String] The authorizationKey. + attr_accessor :authorization_key + + # @return [VirtualNetworkConnectionGatewayReference] The reference to + # virtual network gateway resource. + attr_accessor :virtual_network_gateway1 + + # @return [VirtualNetworkConnectionGatewayReference] The reference to + # virtual network gateway resource. + attr_accessor :virtual_network_gateway2 + + # @return [VirtualNetworkConnectionGatewayReference] The reference to + # local network gateway resource. + attr_accessor :local_network_gateway2 + + # @return [VirtualNetworkGatewayConnectionType] Gateway connection type. + # Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and + # 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', + # 'ExpressRoute', 'VPNClient' + attr_accessor :connection_type + + # @return [Integer] The routing weight. + attr_accessor :routing_weight + + # @return [String] The IPSec shared key. + attr_accessor :shared_key + + # @return [VirtualNetworkGatewayConnectionStatus] Virtual network Gateway + # connection status. Possible values are 'Unknown', 'Connecting', + # 'Connected' and 'NotConnected'. Possible values include: 'Unknown', + # 'Connecting', 'Connected', 'NotConnected' + attr_accessor :connection_status + + # @return [Array] Collection of all tunnels' + # connection health status. + attr_accessor :tunnel_connection_status + + # @return [Integer] The egress bytes transferred in this connection. + attr_accessor :egress_bytes_transferred + + # @return [Integer] The ingress bytes transferred in this connection. + attr_accessor :ingress_bytes_transferred + + # @return [SubResource] The reference to peerings resource. + attr_accessor :peer + + # @return [Boolean] EnableBgp flag + attr_accessor :enable_bgp + + # @return [Boolean] Enable policy-based traffic selectors. + attr_accessor :use_policy_based_traffic_selectors + + # @return [Array] The IPSec Policies to be considered by + # this connection. + attr_accessor :ipsec_policies + + # @return [String] The resource GUID property of the + # VirtualNetworkGatewayConnection resource. + attr_accessor :resource_guid + + # @return [String] The provisioning state of the + # VirtualNetworkGatewayConnection resource. Possible values are: + # 'Updating', 'Deleting', and 'Failed'. + attr_accessor :provisioning_state + + # @return [String] Gets a unique read-only string that changes whenever + # the resource is updated. + attr_accessor :etag + + + # + # Mapper for VirtualNetworkGatewayConnectionListEntity class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetworkGatewayConnectionListEntity', + type: { + name: 'Composite', + class_name: 'VirtualNetworkGatewayConnectionListEntity', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + authorization_key: { + required: false, + serialized_name: 'properties.authorizationKey', + type: { + name: 'String' + } + }, + virtual_network_gateway1: { + required: true, + serialized_name: 'properties.virtualNetworkGateway1', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConnectionGatewayReference' + } + }, + virtual_network_gateway2: { + required: false, + serialized_name: 'properties.virtualNetworkGateway2', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConnectionGatewayReference' + } + }, + local_network_gateway2: { + required: false, + serialized_name: 'properties.localNetworkGateway2', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConnectionGatewayReference' + } + }, + connection_type: { + required: true, + serialized_name: 'properties.connectionType', + type: { + name: 'String' + } + }, + routing_weight: { + required: false, + serialized_name: 'properties.routingWeight', + type: { + name: 'Number' + } + }, + shared_key: { + required: false, + serialized_name: 'properties.sharedKey', + type: { + name: 'String' + } + }, + connection_status: { + required: false, + read_only: true, + serialized_name: 'properties.connectionStatus', + type: { + name: 'String' + } + }, + tunnel_connection_status: { + required: false, + read_only: true, + serialized_name: 'properties.tunnelConnectionStatus', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TunnelConnectionHealthElementType', + type: { + name: 'Composite', + class_name: 'TunnelConnectionHealth' + } + } + } + }, + egress_bytes_transferred: { + required: false, + read_only: true, + serialized_name: 'properties.egressBytesTransferred', + type: { + name: 'Number' + } + }, + ingress_bytes_transferred: { + required: false, + read_only: true, + serialized_name: 'properties.ingressBytesTransferred', + type: { + name: 'Number' + } + }, + peer: { + required: false, + serialized_name: 'properties.peer', + type: { + name: 'Composite', + class_name: 'SubResource' + } + }, + enable_bgp: { + required: false, + serialized_name: 'properties.enableBgp', + type: { + name: 'Boolean' + } + }, + use_policy_based_traffic_selectors: { + required: false, + serialized_name: 'properties.usePolicyBasedTrafficSelectors', + type: { + name: 'Boolean' + } + }, + ipsec_policies: { + required: false, + serialized_name: 'properties.ipsecPolicies', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'IpsecPolicyElementType', + type: { + name: 'Composite', + class_name: 'IpsecPolicy' + } + } + } + }, + resource_guid: { + required: false, + serialized_name: 'properties.resourceGuid', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + etag: { + required: false, + serialized_name: 'etag', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb index 9104d1410b..a34d44f03e 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb @@ -84,6 +84,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb new file mode 100644 index 0000000000..fa21888d31 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb @@ -0,0 +1,100 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # Response for the VirtualNetworkGatewayListConnections API service call + # + class VirtualNetworkGatewayListConnectionsResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Gets a list + # of VirtualNetworkGatewayConnection resources that exists in a resource + # group. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation + # results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [VirtualNetworkGatewayListConnectionsResult] with next page + # content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for VirtualNetworkGatewayListConnectionsResult class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetworkGatewayListConnectionsResult', + type: { + name: 'Composite', + class_name: 'VirtualNetworkGatewayListConnectionsResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'VirtualNetworkGatewayConnectionListEntityElementType', + type: { + name: 'Composite', + class_name: 'VirtualNetworkGatewayConnectionListEntity' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb index bcea63eb67..2d094c29b0 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb @@ -81,6 +81,7 @@ def self.mapper() }, next_link: { required: false, + read_only: true, serialized_name: 'nextLink', type: { name: 'String' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb index 8f4347460a..023d0b85e4 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb @@ -29,6 +29,14 @@ class VpnClientConfiguration # network gateway. attr_accessor :vpn_client_protocols + # @return [String] The radius server address property of the + # VirtualNetworkGateway resource for vpn client connection. + attr_accessor :radius_server_address + + # @return [String] The radius secret property of the + # VirtualNetworkGateway resource for vpn client connection. + attr_accessor :radius_server_secret + # # Mapper for VpnClientConfiguration class as Ruby Hash. @@ -93,6 +101,20 @@ def self.mapper() } } } + }, + radius_server_address: { + required: false, + serialized_name: 'radiusServerAddress', + type: { + name: 'String' + } + }, + radius_server_secret: { + required: false, + serialized_name: 'radiusServerSecret', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb new file mode 100644 index 0000000000..20cb076104 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb @@ -0,0 +1,320 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class NetworkInterfaceIPConfigurations + include MsRestAzure + + # + # Creates and initializes a new instance of the NetworkInterfaceIPConfigurations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Get all ip configurations in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Get all ip configurations in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get all ip configurations in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceIPConfigurationListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the specified network interface ip configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param ip_configuration_name [String] The name of the ip configuration name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the specified network interface ip configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param ip_configuration_name [String] The name of the ip configuration name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the specified network interface ip configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param ip_configuration_name [String] The name of the ip configuration name. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'ipConfigurationName' => ip_configuration_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceIPConfiguration.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get all ip configurations in a network interface + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NetworkInterfaceIPConfigurationListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Get all ip configurations in a network interface + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Get all ip configurations in a network interface + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceIPConfigurationListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get all ip configurations in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb new file mode 100644 index 0000000000..9926c12ef0 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb @@ -0,0 +1,225 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class NetworkInterfaceLoadBalancers + include MsRestAzure + + # + # Creates and initializes a new instance of the NetworkInterfaceLoadBalancers class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Get all load balancers in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Get all load balancers in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get all load balancers in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceLoadBalancerListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get all load balancers in a network interface + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NetworkInterfaceLoadBalancerListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Get all load balancers in a network interface + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Get all load balancers in a network interface + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::NetworkInterfaceLoadBalancerListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get all load balancers in a network interface + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb index 73d79fdb86..e4547c7cdd 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, network_interface_name, expand = 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -377,11 +377,32 @@ def list_async(resource_group_name, custom_headers = nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [EffectiveRouteListResult] operation results. + # @return [Array] which provide lazy access to pages of the + # response. # 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! - response.body unless response.nil? + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + get_effective_route_table_next_async(next_page_link, custom_headers) + end + page + end + end + # + # Gets all route tables applied to a network interface. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) + first_page = get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers) + first_page.get_all_items end # @@ -419,11 +440,32 @@ def get_effective_route_table_async(resource_group_name, network_interface_name, # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [EffectiveNetworkSecurityGroupListResult] operation results. + # @return [Array] which provide lazy access to + # pages of the response. # 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! - response.body unless response.nil? + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_effective_network_security_groups_next_async(next_page_link, custom_headers) + end + page + end + end + # + # Gets all network security groups applied to a network interface. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) + first_page = list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers) + first_page.get_all_items end # @@ -794,7 +836,7 @@ def begin_delete_with_http_info(resource_group_name, network_interface_name, cus 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -882,7 +924,7 @@ def begin_create_or_update_async(resource_group_name, network_interface_name, pa 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -958,11 +1000,11 @@ def begin_create_or_update_async(resource_group_name, network_interface_name, pa # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [EffectiveRouteListResult] operation results. + # @return [Array] 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! - response.body unless response.nil? + first_page = begin_get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers) + first_page.get_all_items end # @@ -992,7 +1034,7 @@ def begin_get_effective_route_table_with_http_info(resource_group_name, network_ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1049,11 +1091,11 @@ def begin_get_effective_route_table_async(resource_group_name, network_interface # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [EffectiveNetworkSecurityGroupListResult] operation results. + # @return [Array] 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! - response.body unless response.nil? + first_page = begin_list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers) + first_page.get_all_items end # @@ -1083,7 +1125,7 @@ def begin_list_effective_network_security_groups_with_http_info(resource_group_n 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1306,6 +1348,90 @@ def list_next_async(next_page_link, custom_headers = nil) promise.execute end + # + # Gets all route tables applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EffectiveRouteListResult] operation results. + # + def get_effective_route_table_next(next_page_link, custom_headers = nil) + response = get_effective_route_table_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def get_effective_route_table_next_async(next_page_link, custom_headers = nil) + # Send request + promise = begin_get_effective_route_table_next_async(next_page_link, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Network::Models::EffectiveRouteListResult.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets all network security groups applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EffectiveNetworkSecurityGroupListResult] operation results. + # + def list_effective_network_security_groups_next(next_page_link, custom_headers = nil) + response = list_effective_network_security_groups_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def list_effective_network_security_groups_next_async(next_page_link, custom_headers = nil) + # Send request + promise = begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Network::Models::EffectiveNetworkSecurityGroupListResult.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + # # Gets information about all network interfaces in a virtual machine in a # virtual machine scale set. @@ -1483,6 +1609,180 @@ def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, promise.execute end + # + # Gets all route tables applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EffectiveRouteListResult] operation results. + # + def begin_get_effective_route_table_next(next_page_link, custom_headers = nil) + response = begin_get_effective_route_table_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all route tables applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_get_effective_route_table_next_with_http_info(next_page_link, custom_headers = nil) + begin_get_effective_route_table_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all route tables applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_get_effective_route_table_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::EffectiveRouteListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all network security groups applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EffectiveNetworkSecurityGroupListResult] operation results. + # + def begin_list_effective_network_security_groups_next(next_page_link, custom_headers = nil) + response = begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all network security groups applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_list_effective_network_security_groups_next_with_http_info(next_page_link, custom_headers = nil) + begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all network security groups applied to a network interface. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::EffectiveNetworkSecurityGroupListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Gets all network interfaces in a subscription. # @@ -1572,5 +1872,49 @@ def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_nam end end + # + # Gets all route tables applied to a network interface. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EffectiveRouteListResult] which provide lazy access to pages of the + # response. + # + def begin_get_effective_route_table_as_lazy(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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + begin_get_effective_route_table_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Gets all network security groups applied to a network interface. + # + # @param resource_group_name [String] The name of the resource group. + # @param network_interface_name [String] The name of the network interface. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EffectiveNetworkSecurityGroupListResult] which provide lazy access + # to pages of the response. + # + def begin_list_effective_network_security_groups_as_lazy(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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers) + end + page + end + end + end end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb index 870dc97ff4..fb01df9a4b 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb @@ -52,25 +52,52 @@ class NetworkManagementClient < MsRestAzure::AzureServiceClient # @return [LoadBalancers] load_balancers attr_reader :load_balancers + # @return [LoadBalancerBackendAddressPools] + # load_balancer_backend_address_pools + attr_reader :load_balancer_backend_address_pools + + # @return [LoadBalancerFrontendIPConfigurations] + # load_balancer_frontend_ipconfigurations + attr_reader :load_balancer_frontend_ipconfigurations + + # @return [InboundNatRules] inbound_nat_rules + attr_reader :inbound_nat_rules + + # @return [LoadBalancerLoadBalancingRules] + # load_balancer_load_balancing_rules + attr_reader :load_balancer_load_balancing_rules + + # @return [LoadBalancerNetworkInterfaces] load_balancer_network_interfaces + attr_reader :load_balancer_network_interfaces + + # @return [LoadBalancerProbes] load_balancer_probes + attr_reader :load_balancer_probes + # @return [NetworkInterfaces] network_interfaces attr_reader :network_interfaces + # @return [NetworkInterfaceIPConfigurations] + # network_interface_ipconfigurations + attr_reader :network_interface_ipconfigurations + + # @return [NetworkInterfaceLoadBalancers] network_interface_load_balancers + attr_reader :network_interface_load_balancers + # @return [NetworkSecurityGroups] network_security_groups attr_reader :network_security_groups # @return [SecurityRules] security_rules attr_reader :security_rules + # @return [DefaultSecurityRules] default_security_rules + attr_reader :default_security_rules + # @return [NetworkWatchers] network_watchers attr_reader :network_watchers # @return [PacketCaptures] packet_captures attr_reader :packet_captures - # @return [AvailablePrivateAccessServices] - # available_private_access_services - attr_reader :available_private_access_services - # @return [PublicIPAddresses] public_ipaddresses attr_reader :public_ipaddresses @@ -130,12 +157,20 @@ def initialize(credentials = nil, base_url = nil, options = nil) @express_route_circuits = ExpressRouteCircuits.new(self) @express_route_service_providers = ExpressRouteServiceProviders.new(self) @load_balancers = LoadBalancers.new(self) + @load_balancer_backend_address_pools = LoadBalancerBackendAddressPools.new(self) + @load_balancer_frontend_ipconfigurations = LoadBalancerFrontendIPConfigurations.new(self) + @inbound_nat_rules = InboundNatRules.new(self) + @load_balancer_load_balancing_rules = LoadBalancerLoadBalancingRules.new(self) + @load_balancer_network_interfaces = LoadBalancerNetworkInterfaces.new(self) + @load_balancer_probes = LoadBalancerProbes.new(self) @network_interfaces = NetworkInterfaces.new(self) + @network_interface_ipconfigurations = NetworkInterfaceIPConfigurations.new(self) + @network_interface_load_balancers = NetworkInterfaceLoadBalancers.new(self) @network_security_groups = NetworkSecurityGroups.new(self) @security_rules = SecurityRules.new(self) + @default_security_rules = DefaultSecurityRules.new(self) @network_watchers = NetworkWatchers.new(self) @packet_captures = PacketCaptures.new(self) - @available_private_access_services = AvailablePrivateAccessServices.new(self) @public_ipaddresses = PublicIPAddresses.new(self) @route_filters = RouteFilters.new(self) @route_filter_rules = RouteFilterRules.new(self) @@ -254,7 +289,7 @@ def check_dns_name_availability_with_http_info(location, domain_name_label = nil # def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) fail ArgumentError, 'location is nil' if location.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb index de705f5cff..1d084abf19 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb @@ -109,7 +109,7 @@ def get_with_http_info(resource_group_name, network_security_group_name, expand 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -240,7 +240,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -327,7 +327,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -420,7 +420,7 @@ def begin_delete_with_http_info(resource_group_name, network_security_group_name 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -511,7 +511,7 @@ def begin_create_or_update_async(resource_group_name, network_security_group_nam 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb index 25b89e23b6..a97e21d5a5 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb @@ -70,7 +70,7 @@ def create_or_update_async(resource_group_name, network_watcher_name, parameters 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -180,7 +180,7 @@ def get_with_http_info(resource_group_name, network_watcher_name, custom_headers 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -305,7 +305,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -388,7 +388,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -486,7 +486,7 @@ def get_topology_async(resource_group_name, network_watcher_name, parameters, cu 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -972,7 +972,7 @@ def begin_delete_with_http_info(resource_group_name, network_watcher_name, custo 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1063,7 +1063,7 @@ def begin_verify_ipflow_async(resource_group_name, network_watcher_name, paramet 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1180,7 +1180,7 @@ def begin_get_next_hop_async(resource_group_name, network_watcher_name, paramete 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1297,7 +1297,7 @@ def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1417,7 +1417,7 @@ def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, p 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1537,7 +1537,7 @@ def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1660,7 +1660,7 @@ def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1783,7 +1783,7 @@ def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, p 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1912,7 +1912,7 @@ def begin_check_connectivity_async(resource_group_name, network_watcher_name, pa 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb index cdd1e0be35..1c5dc0e89e 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb @@ -115,7 +115,7 @@ def get_async(resource_group_name, network_watcher_name, packet_capture_name, cu 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -337,7 +337,7 @@ def list_with_http_info(resource_group_name, network_watcher_name, custom_header 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -439,7 +439,7 @@ def begin_create_async(resource_group_name, network_watcher_name, packet_capture fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -542,7 +542,7 @@ def begin_delete_async(resource_group_name, network_watcher_name, packet_capture 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -626,7 +626,7 @@ def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_n 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -717,7 +717,7 @@ def begin_get_status_async(resource_group_name, network_watcher_name, packet_cap 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb index b83664be16..cb9d5ffb0d 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, public_ip_address_name, expand = 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -729,7 +729,7 @@ def begin_delete_with_http_info(resource_group_name, public_ip_address_name, cus 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -817,7 +817,7 @@ def begin_create_or_update_async(resource_group_name, public_ip_address_name, pa 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb index 6c10f94e47..560e05402c 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, route_filter_name, rule_name, custom_headers 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -294,7 +294,7 @@ def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -388,7 +388,7 @@ def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -480,7 +480,7 @@ def begin_create_or_update_async(resource_group_name, route_filter_name, rule_na fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, 'route_filter_rule_parameters is nil' if route_filter_rule_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -601,7 +601,7 @@ def begin_update_async(resource_group_name, route_filter_name, rule_name, route_ fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, 'route_filter_rule_parameters is nil' if route_filter_rule_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb index e043e265f8..4563f34c9a 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb @@ -107,7 +107,7 @@ def get_with_http_info(resource_group_name, route_filter_name, expand = nil, cus 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -286,7 +286,7 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers = # def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -369,7 +369,7 @@ def list_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -459,7 +459,7 @@ def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_h 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -547,7 +547,7 @@ def begin_create_or_update_async(resource_group_name, route_filter_name, route_f 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -664,7 +664,7 @@ def begin_update_async(resource_group_name, route_filter_name, route_filter_para 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb index c77ec11d45..8d01932aa9 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, route_table_name, expand = nil, cust 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -237,7 +237,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -410,7 +410,7 @@ def begin_delete_with_http_info(resource_group_name, route_table_name, custom_he 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -498,7 +498,7 @@ def begin_create_or_update_async(resource_group_name, route_table_name, paramete 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb index ee99260f57..5e6d744900 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, route_table_name, route_name, custom_headers 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -246,7 +246,7 @@ def list_with_http_info(resource_group_name, route_table_name, custom_headers = 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -340,7 +340,7 @@ def begin_delete_async(resource_group_name, route_table_name, route_name, custom 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -432,7 +432,7 @@ def begin_create_or_update_async(resource_group_name, route_table_name, route_na fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? fail ArgumentError, 'route_parameters is nil' if route_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb index 77980315a1..68c445432b 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb @@ -112,7 +112,7 @@ def get_async(resource_group_name, network_security_group_name, security_rule_na 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -256,7 +256,7 @@ def list_with_http_info(resource_group_name, network_security_group_name, custom 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -353,7 +353,7 @@ def begin_delete_async(resource_group_name, network_security_group_name, securit 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -448,7 +448,7 @@ def begin_create_or_update_async(resource_group_name, network_security_group_nam 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? fail ArgumentError, 'security_rule_parameters is nil' if security_rule_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb index 81fa36602d..13b33c8dbb 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb @@ -110,7 +110,7 @@ def get_async(resource_group_name, virtual_network_name, subnet_name, expand = n 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -249,7 +249,7 @@ def list_with_http_info(resource_group_name, virtual_network_name, custom_header 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -343,7 +343,7 @@ def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, c 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -435,7 +435,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_name, subn fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? fail ArgumentError, 'subnet_parameters is nil' if subnet_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb index 9bdf4fdb72..a533cb0a0f 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb @@ -59,7 +59,7 @@ def list_with_http_info(location, custom_headers = nil) # def list_async(location, custom_headers = nil) fail ArgumentError, 'location is nil' if location.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index 74dc975ad4..c7609e88c1 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -115,7 +115,7 @@ def get_with_http_info(resource_group_name, virtual_network_gateway_connection_n 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -307,7 +307,7 @@ def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_c 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -397,7 +397,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -554,7 +554,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_gateway_co 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -666,7 +666,7 @@ def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_con 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -766,7 +766,7 @@ def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_conn 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -898,7 +898,7 @@ def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_co 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb index 3e2a713113..c149639a22 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -114,7 +114,7 @@ def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -241,7 +241,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -290,6 +290,100 @@ def list_async(resource_group_name, custom_headers = nil) promise.execute end + # + # Gets all the connections in a virtual network gateway. + # + # @param resource_group_name [String] The name of the resource group. + # @param virtual_network_gateway_name [String] The name of the virtual network + # gateway. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the connections in a virtual network gateway. + # + # @param resource_group_name [String] The name of the resource group. + # @param virtual_network_gateway_name [String] The name of the virtual network + # gateway. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the connections in a virtual network gateway. + # + # @param resource_group_name [String] The name of the resource group. + # @param virtual_network_gateway_name [String] The name of the virtual network + # gateway. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + api_version = '2017-08-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListConnectionsResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Resets the primary of the virtual network gateway in the specified resource # group. @@ -639,7 +733,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_gateway_na 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -751,7 +845,7 @@ def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_nam 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -844,7 +938,7 @@ def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -948,7 +1042,7 @@ def begin_generatevpnclientpackage_async(resource_group_name, virtual_network_ga 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1067,7 +1161,7 @@ def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gatewa 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1179,7 +1273,7 @@ def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_networ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1276,7 +1370,7 @@ def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1377,7 +1471,7 @@ def begin_get_advertised_routes_async(resource_group_name, virtual_network_gatew 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1513,6 +1607,93 @@ def list_next_async(next_page_link, custom_headers = nil) promise.execute end + # + # Gets all the connections in a virtual network gateway. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets all the connections in a virtual network gateway. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the connections in a virtual network gateway. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListConnectionsResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Gets all virtual network gateways by resource group. # @@ -1534,5 +1715,28 @@ def list_as_lazy(resource_group_name, custom_headers = nil) end end + # + # Gets all the connections in a virtual network gateway. + # + # @param resource_group_name [String] The name of the resource group. + # @param virtual_network_gateway_name [String] The name of the virtual network + # gateway. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_connections_next_async(next_page_link, custom_headers) + end + page + end + end + end end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb index 4dc23305b2..d3d5603c9b 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -112,7 +112,7 @@ def get_async(resource_group_name, virtual_network_name, virtual_network_peering 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -251,7 +251,7 @@ def list_with_http_info(resource_group_name, virtual_network_name, custom_header 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -348,7 +348,7 @@ def begin_delete_async(resource_group_name, virtual_network_name, virtual_networ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -440,7 +440,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_name, virt 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? fail ArgumentError, 'virtual_network_peering_parameters is nil' if virtual_network_peering_parameters.nil? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb index d94fc784d9..60315e4cbf 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, virtual_network_name, expand = 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -414,7 +414,7 @@ def check_ipaddress_availability_with_http_info(resource_group_name, virtual_net 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -505,7 +505,7 @@ def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_ 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -595,7 +595,7 @@ def begin_delete_with_http_info(resource_group_name, virtual_network_name, custo 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -683,7 +683,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_name, para 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? - api_version = '2017-06-01' + api_version = '2017-08-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup.rb index 5e9ceeaded..55ea35b800 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup.rb @@ -24,6 +24,8 @@ require 'ms_rest_azure' module Azure::ARM::RecoveryServicesBackup + autoload :BackupJobs, 'generated/azure_mgmt_recovery_services_backup/backup_jobs.rb' + autoload :JobDetails, 'generated/azure_mgmt_recovery_services_backup/job_details.rb' autoload :BackupResourceVaultConfigs, 'generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb' autoload :BackupEngines, 'generated/azure_mgmt_recovery_services_backup/backup_engines.rb' autoload :ProtectionContainerRefreshOperationResults, 'generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb' @@ -36,8 +38,6 @@ module Azure::ARM::RecoveryServicesBackup autoload :RecoveryPoints, 'generated/azure_mgmt_recovery_services_backup/recovery_points.rb' autoload :ItemLevelRecoveryConnections, 'generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb' autoload :Restores, 'generated/azure_mgmt_recovery_services_backup/restores.rb' - autoload :BackupJobs, 'generated/azure_mgmt_recovery_services_backup/backup_jobs.rb' - autoload :JobDetails, 'generated/azure_mgmt_recovery_services_backup/job_details.rb' autoload :JobCancellations, 'generated/azure_mgmt_recovery_services_backup/job_cancellations.rb' autoload :JobOperationResults, 'generated/azure_mgmt_recovery_services_backup/job_operation_results.rb' autoload :ExportJobsOperationResults, 'generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb' @@ -58,89 +58,93 @@ module Azure::ARM::RecoveryServicesBackup autoload :RecoveryServicesBackupClient, 'generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb' module Models - autoload :KeyAndSecretDetails, 'generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb' - autoload :RecoveryPointTierInformation, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_information.rb' + autoload :OperationWorkerResponse, 'generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb' + autoload :AzureIaaSVMErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb' + autoload :BackupResourceVaultConfig, 'generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb' + autoload :AzureIaaSVMJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb' + autoload :OperationStatus, 'generated/azure_mgmt_recovery_services_backup/models/operation_status.rb' + autoload :DpmErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb' + autoload :BEKDetails, 'generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb' + autoload :DpmJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb' autoload :BMSBackupEngineQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb' + autoload :Job, 'generated/azure_mgmt_recovery_services_backup/models/job.rb' autoload :BMSBackupEnginesQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engines_query_object.rb' - autoload :ClientDiscoveryResponse, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_response.rb' + autoload :BackupManagementUsageList, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_usage_list.rb' + autoload :OperationResultInfoBase, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb' + autoload :BackupRequest, 'generated/azure_mgmt_recovery_services_backup/models/backup_request.rb' + autoload :MabJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb' + autoload :WorkloadProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb' + autoload :ProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/protected_item.rb' + autoload :BackupResourceConfig, 'generated/azure_mgmt_recovery_services_backup/models/backup_resource_config.rb' + autoload :ResourceList, 'generated/azure_mgmt_recovery_services_backup/models/resource_list.rb' + autoload :AzureIaaSVMJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb' + autoload :ProtectedItemQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb' + autoload :ProtectionContainer, 'generated/azure_mgmt_recovery_services_backup/models/protection_container.rb' + autoload :MabFileFolderProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb' + autoload :KeyAndSecretDetails, 'generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb' + autoload :MabContainerExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb' + autoload :DpmJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb' + autoload :RecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb' + autoload :KEKDetails, 'generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb' + autoload :AzureIaaSVMHealthDetails, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb' + autoload :JobQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb' + autoload :MonthlyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb' + autoload :RecoveryPointTierInformation, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_information.rb' + autoload :RetentionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb' autoload :BMSBackupSummariesQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmsbackup_summaries_query_object.rb' - autoload :ClientDiscoveryForProperties, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_properties.rb' + autoload :WeeklyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb' autoload :BMSContainerQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb' - autoload :ClientDiscoveryForLogSpecification, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_log_specification.rb' + autoload :InstantItemRecoveryTarget, 'generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb' autoload :BMSPOQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb' - autoload :AzureIaaSVMErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb' + autoload :BackupEngineExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_extended_info.rb' autoload :BMSRPQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb' - autoload :AzureIaaSVMJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb' + autoload :ILRRequest, 'generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb' autoload :ClientScriptForConnect, 'generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb' - autoload :WorkloadProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb' + autoload :NameInfo, 'generated/azure_mgmt_recovery_services_backup/models/name_info.rb' autoload :Day, 'generated/azure_mgmt_recovery_services_backup/models/day.rb' - autoload :TokenInformation, 'generated/azure_mgmt_recovery_services_backup/models/token_information.rb' + autoload :MabErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb' autoload :DailyRetentionFormat, 'generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb' - autoload :RetentionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb' + autoload :Resource, 'generated/azure_mgmt_recovery_services_backup/models/resource.rb' autoload :RetentionDuration, 'generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb' - autoload :ResourceList, 'generated/azure_mgmt_recovery_services_backup/models/resource_list.rb' + autoload :ProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb' autoload :DailyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb' - autoload :Resource, 'generated/azure_mgmt_recovery_services_backup/models/resource.rb' - autoload :OperationWorkerResponse, 'generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb' - autoload :BackupEngineExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_extended_info.rb' - autoload :OperationStatus, 'generated/azure_mgmt_recovery_services_backup/models/operation_status.rb' - autoload :ProtectionPolicyQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb' - autoload :DpmErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb' - autoload :NameInfo, 'generated/azure_mgmt_recovery_services_backup/models/name_info.rb' - autoload :DpmJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb' - autoload :BackupManagementUsageList, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_usage_list.rb' - autoload :DpmJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb' - autoload :ProtectionContainer, 'generated/azure_mgmt_recovery_services_backup/models/protection_container.rb' + autoload :YearlyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb' autoload :OperationStatusExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb' - autoload :ProtectedItemQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb' - autoload :DPMProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb' - autoload :ProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/protected_item.rb' + autoload :SchedulePolicy, 'generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb' autoload :OperationStatusError, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb' + autoload :AzureSqlProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb' + autoload :DPMProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb' + autoload :BackupEngineBase, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb' + autoload :BackupManagementUsage, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_usage.rb' autoload :EncryptionDetails, 'generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb' - autoload :ClientDiscoveryForServiceSpecification, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_service_specification.rb' - autoload :OperationResultInfoBase, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb' - autoload :AzureIaaSVMHealthDetails, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb' - autoload :MabJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb' + autoload :DPMContainerExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpmcontainer_extended_info.rb' + autoload :ClientDiscoveryResponse, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_response.rb' autoload :AzureIaaSVMProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb' - autoload :GetProtectedItemQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb' - autoload :RestoreRequest, 'generated/azure_mgmt_recovery_services_backup/models/restore_request.rb' - autoload :MabJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb' - autoload :RecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb' - autoload :MabFileFolderProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb' - autoload :ProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb' - autoload :MabErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb' - autoload :BackupRequest, 'generated/azure_mgmt_recovery_services_backup/models/backup_request.rb' - autoload :MabContainerExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb' - autoload :BackupResourceVaultConfig, 'generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb' - autoload :KEKDetails, 'generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb' autoload :ClientDiscoveryValueForSingleApi, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_value_for_single_api.rb' - autoload :DPMContainerExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpmcontainer_extended_info.rb' - autoload :AzureIaaSVMJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb' - autoload :YearlyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb' - autoload :AzureSqlProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb' - autoload :MonthlyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb' - autoload :BackupManagementUsage, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_usage.rb' + autoload :RestoreRequest, 'generated/azure_mgmt_recovery_services_backup/models/restore_request.rb' + autoload :GetProtectedItemQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb' + autoload :MabJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb' + autoload :ClientDiscoveryForProperties, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_properties.rb' autoload :WeeklyRetentionFormat, 'generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb' - autoload :BEKDetails, 'generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb' - autoload :ILRRequest, 'generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb' - autoload :SchedulePolicy, 'generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb' - autoload :WeeklyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb' - autoload :BackupResourceConfig, 'generated/azure_mgmt_recovery_services_backup/models/backup_resource_config.rb' - autoload :InstantItemRecoveryTarget, 'generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb' - autoload :BackupEngineBase, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb' - autoload :Job, 'generated/azure_mgmt_recovery_services_backup/models/job.rb' + autoload :ClientDiscoveryForServiceSpecification, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_service_specification.rb' + autoload :ProtectionPolicyQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb' + autoload :ClientDiscoveryForLogSpecification, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_log_specification.rb' + autoload :TokenInformation, 'generated/azure_mgmt_recovery_services_backup/models/token_information.rb' autoload :ClientDiscoveryDisplay, 'generated/azure_mgmt_recovery_services_backup/models/client_discovery_display.rb' - autoload :JobQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb' + autoload :AzureIaaSVMJob, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb' + autoload :DpmJob, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb' + autoload :JobResource, 'generated/azure_mgmt_recovery_services_backup/models/job_resource.rb' + autoload :JobResourceList, 'generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb' + autoload :MabJob, 'generated/azure_mgmt_recovery_services_backup/models/mab_job.rb' autoload :AzureBackupServerContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_container.rb' autoload :AzureBackupServerEngine, 'generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb' autoload :AzureIaaSClassicComputeVMContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb' autoload :AzureIaaSClassicComputeVMProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb' - autoload :AzureIaaSClassicComputeVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb' autoload :AzureIaaSComputeVMContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb' autoload :AzureIaaSComputeVMProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb' - autoload :AzureIaaSComputeVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb' - autoload :AzureIaaSVMJob, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb' autoload :AzureIaaSVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb' + autoload :AzureIaaSClassicComputeVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb' + autoload :AzureIaaSComputeVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb' autoload :AzureIaaSVMProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb' autoload :AzureSqlContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb' autoload :AzureSqlProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb' @@ -152,7 +156,6 @@ module Models autoload :BackupResourceVaultConfigResource, 'generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config_resource.rb' autoload :DpmBackupEngine, 'generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb' autoload :DpmContainer, 'generated/azure_mgmt_recovery_services_backup/models/dpm_container.rb' - autoload :DpmJob, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb' autoload :DPMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb' autoload :ExportJobsOperationResultInfo, 'generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb' autoload :GenericRecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb' @@ -163,13 +166,10 @@ module Models autoload :IaasVMRecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb' autoload :IaasVMRestoreRequest, 'generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb' autoload :ILRRequestResource, 'generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb' - autoload :JobResource, 'generated/azure_mgmt_recovery_services_backup/models/job_resource.rb' - autoload :JobResourceList, 'generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb' autoload :LongTermRetentionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb' autoload :LongTermSchedulePolicy, 'generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb' autoload :MabContainer, 'generated/azure_mgmt_recovery_services_backup/models/mab_container.rb' autoload :MabFileFolderProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb' - autoload :MabJob, 'generated/azure_mgmt_recovery_services_backup/models/mab_job.rb' autoload :MabProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb' autoload :OperationResultInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb' autoload :OperationResultInfoBaseResource, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb' @@ -190,10 +190,14 @@ module Models autoload :WorkloadProtectableItemResource, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb' autoload :WorkloadProtectableItemResourceList, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb' autoload :JobSupportedAction, 'generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb' + autoload :BackupManagementType, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb' + autoload :JobStatus, 'generated/azure_mgmt_recovery_services_backup/models/job_status.rb' + autoload :JobOperationType, 'generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb' + autoload :MabServerType, 'generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb' + autoload :WorkloadType, 'generated/azure_mgmt_recovery_services_backup/models/workload_type.rb' autoload :ProtectionState, 'generated/azure_mgmt_recovery_services_backup/models/protection_state.rb' autoload :HealthStatus, 'generated/azure_mgmt_recovery_services_backup/models/health_status.rb' autoload :ProtectedItemState, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb' - autoload :BackupManagementType, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb' autoload :UsagesUnit, 'generated/azure_mgmt_recovery_services_backup/models/usages_unit.rb' autoload :StorageType, 'generated/azure_mgmt_recovery_services_backup/models/storage_type.rb' autoload :StorageTypeState, 'generated/azure_mgmt_recovery_services_backup/models/storage_type_state.rb' @@ -204,15 +208,11 @@ module Models autoload :RecoveryPointTierType, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_type.rb' autoload :RecoveryPointTierStatus, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_status.rb' autoload :RecoveryType, 'generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb' - autoload :JobStatus, 'generated/azure_mgmt_recovery_services_backup/models/job_status.rb' - autoload :JobOperationType, 'generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb' autoload :DayOfWeek, 'generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb' autoload :RetentionScheduleFormat, 'generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb' autoload :WeekOfMonth, 'generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb' autoload :MonthOfYear, 'generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb' autoload :BackupItemType, 'generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb' - autoload :MabServerType, 'generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb' - autoload :WorkloadType, 'generated/azure_mgmt_recovery_services_backup/models/workload_type.rb' autoload :OperationStatusValues, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb' autoload :HttpStatusCode, 'generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb' autoload :DataSourceType, 'generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb' diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb index 2e88ad1cc9..8eba4bc1b4 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb @@ -74,7 +74,7 @@ def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_toke # @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) - api_version = '2016-12-01' + api_version = '2017-07-01' fail ArgumentError, 'vault_name is nil' if vault_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? diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb index 269b9ea7a2..42fc25c3b0 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb @@ -26,8 +26,7 @@ def initialize(client) attr_reader :client # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param vault_name [String] The name of the recovery services vault. # @param resource_group_name [String] The name of the resource group where the @@ -45,8 +44,7 @@ def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom end # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param vault_name [String] The name of the recovery services vault. # @param resource_group_name [String] The name of the resource group where the @@ -63,8 +61,7 @@ def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_toke end # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param vault_name [String] The name of the recovery services vault. # @param resource_group_name [String] The name of the resource group where the @@ -129,8 +126,7 @@ def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, end # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -145,8 +141,7 @@ def list_next(next_page_link, custom_headers = nil) end # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -160,8 +155,7 @@ def list_next_with_http_info(next_page_link, custom_headers = nil) end # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -219,8 +213,7 @@ def list_next_async(next_page_link, custom_headers = nil) end # - # Provides a pageable list of all items that can be backed up within a - # subscription. + # Provides a pageable list of all items that are backed up within a vault. # # @param vault_name [String] The name of the recovery services vault. # @param resource_group_name [String] The name of the resource group where the diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb index 89da9300b3..243023fb0e 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb @@ -203,7 +203,7 @@ def update_async(vault_name, resource_group_name, parameters, custom_headers = n http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb index bf926d7dc8..8487efd30a 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb @@ -71,7 +71,7 @@ def get_with_http_info(vault_name, resource_group_name, job_name, custom_headers # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def get_async(vault_name, resource_group_name, job_name, custom_headers = nil) - api_version = '2016-12-01' + api_version = '2017-07-01' fail ArgumentError, 'vault_name is nil' if vault_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? diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb index 61a5466f58..d43fbf1fb2 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb @@ -59,6 +59,9 @@ def initialize # @return [String] Virtual Machine Size attr_accessor :virtual_machine_size + # @return [Boolean] Original SA Option + attr_accessor :original_storage_account_option + # # Mapper for IaasVMRecoveryPoint class as Ruby Hash. @@ -157,6 +160,13 @@ def self.mapper() type: { name: 'String' } + }, + original_storage_account_option: { + required: false, + serialized_name: 'originalStorageAccountOption', + type: { + name: 'Boolean' + } } } } diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb index e6b632918b..51f068cd65 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb @@ -79,6 +79,9 @@ def initialize # as it was at the time of backup. attr_accessor :create_new_cloud_service + # @return [Boolean] + attr_accessor :original_storage_account_option + # @return [EncryptionDetails] Details needed if the VM was encrypted at # the time of backup. attr_accessor :encryption_details @@ -187,6 +190,13 @@ def self.mapper() name: 'Boolean' } }, + original_storage_account_option: { + required: false, + serialized_name: 'originalStorageAccountOption', + type: { + name: 'Boolean' + } + }, encryption_details: { required: false, serialized_name: 'encryptionDetails', diff --git a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb index 535de0e33d..3130465af9 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb @@ -35,6 +35,12 @@ class RecoveryServicesBackupClient < MsRestAzure::AzureServiceClient # is generated and included in each request. Default is true. attr_accessor :generate_client_request_id + # @return [BackupJobs] backup_jobs + attr_reader :backup_jobs + + # @return [JobDetails] job_details + attr_reader :job_details + # @return [BackupResourceVaultConfigs] backup_resource_vault_configs attr_reader :backup_resource_vault_configs @@ -74,12 +80,6 @@ class RecoveryServicesBackupClient < MsRestAzure::AzureServiceClient # @return [Restores] restores attr_reader :restores - # @return [BackupJobs] backup_jobs - attr_reader :backup_jobs - - # @return [JobDetails] job_details - attr_reader :job_details - # @return [JobCancellations] job_cancellations attr_reader :job_cancellations @@ -146,6 +146,8 @@ def initialize(credentials = nil, base_url = nil, options = nil) fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil? @credentials = credentials + @backup_jobs = BackupJobs.new(self) + @job_details = JobDetails.new(self) @backup_resource_vault_configs = BackupResourceVaultConfigs.new(self) @backup_engines = BackupEngines.new(self) @protection_container_refresh_operation_results = ProtectionContainerRefreshOperationResults.new(self) @@ -158,8 +160,6 @@ def initialize(credentials = nil, base_url = nil, options = nil) @recovery_points = RecoveryPoints.new(self) @item_level_recovery_connections = ItemLevelRecoveryConnections.new(self) @restores = Restores.new(self) - @backup_jobs = BackupJobs.new(self) - @job_details = JobDetails.new(self) @job_cancellations = JobCancellations.new(self) @job_operation_results = JobOperationResults.new(self) @export_jobs_operation_results = ExportJobsOperationResults.new(self) diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus.rb old mode 100755 new mode 100644 index d55c666e3d..00ffb16040 --- a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus.rb +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus.rb @@ -26,29 +26,37 @@ module Azure::ARM::ServiceBus autoload :Topics, 'generated/azure_mgmt_service_bus/topics.rb' autoload :Subscriptions, 'generated/azure_mgmt_service_bus/subscriptions.rb' autoload :Rules, 'generated/azure_mgmt_service_bus/rules.rb' + autoload :Regions, 'generated/azure_mgmt_service_bus/regions.rb' + autoload :PremiumMessagingRegionsOperations, 'generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb' + autoload :EventHubs, 'generated/azure_mgmt_service_bus/event_hubs.rb' autoload :ServiceBusManagementClient, 'generated/azure_mgmt_service_bus/service_bus_management_client.rb' module Models - autoload :CorrelationFilter, 'generated/azure_mgmt_service_bus/models/correlation_filter.rb' - autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb' - autoload :MessageCountDetails, 'generated/azure_mgmt_service_bus/models/message_count_details.rb' - autoload :SBSku, 'generated/azure_mgmt_service_bus/models/sbsku.rb' - autoload :Operation, 'generated/azure_mgmt_service_bus/models/operation.rb' - autoload :SBNamespaceListResult, 'generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb' + autoload :CheckNameAvailability, 'generated/azure_mgmt_service_bus/models/check_name_availability.rb' + autoload :PremiumMessagingRegionsListResult, 'generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb' autoload :SBQueueListResult, 'generated/azure_mgmt_service_bus/models/sbqueue_list_result.rb' - autoload :OperationListResult, 'generated/azure_mgmt_service_bus/models/operation_list_result.rb' - autoload :AuthorizationRuleProperties, 'generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb' + autoload :PremiumMessagingRegionsProperties, 'generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb' + autoload :EventHubListResult, 'generated/azure_mgmt_service_bus/models/event_hub_list_result.rb' autoload :SBTopicListResult, 'generated/azure_mgmt_service_bus/models/sbtopic_list_result.rb' - autoload :SqlFilter, 'generated/azure_mgmt_service_bus/models/sql_filter.rb' + autoload :CaptureDescription, 'generated/azure_mgmt_service_bus/models/capture_description.rb' autoload :RuleListResult, 'generated/azure_mgmt_service_bus/models/rule_list_result.rb' - autoload :ErrorResponse, 'generated/azure_mgmt_service_bus/models/error_response.rb' + autoload :SBAuthorizationRuleListResult, 'generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb' autoload :SBSubscriptionListResult, 'generated/azure_mgmt_service_bus/models/sbsubscription_list_result.rb' autoload :AccessKeys, 'generated/azure_mgmt_service_bus/models/access_keys.rb' - autoload :CheckNameAvailability, 'generated/azure_mgmt_service_bus/models/check_name_availability.rb' - autoload :SBAuthorizationRuleListResult, 'generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb' + autoload :CorrelationFilter, 'generated/azure_mgmt_service_bus/models/correlation_filter.rb' + autoload :MessageCountDetails, 'generated/azure_mgmt_service_bus/models/message_count_details.rb' autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_service_bus/models/check_name_availability_result.rb' - autoload :Action, 'generated/azure_mgmt_service_bus/models/action.rb' + autoload :SBSku, 'generated/azure_mgmt_service_bus/models/sbsku.rb' autoload :OperationDisplay, 'generated/azure_mgmt_service_bus/models/operation_display.rb' + autoload :Destination, 'generated/azure_mgmt_service_bus/models/destination.rb' + autoload :Operation, 'generated/azure_mgmt_service_bus/models/operation.rb' + autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb' + autoload :OperationListResult, 'generated/azure_mgmt_service_bus/models/operation_list_result.rb' + autoload :SBNamespaceListResult, 'generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb' + autoload :ErrorResponse, 'generated/azure_mgmt_service_bus/models/error_response.rb' + autoload :Action, 'generated/azure_mgmt_service_bus/models/action.rb' + autoload :AuthorizationRuleProperties, 'generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb' + autoload :SqlFilter, 'generated/azure_mgmt_service_bus/models/sql_filter.rb' autoload :TrackedResource, 'generated/azure_mgmt_service_bus/models/tracked_resource.rb' autoload :ResourceNamespacePatch, 'generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb' autoload :SBNamespace, 'generated/azure_mgmt_service_bus/models/sbnamespace.rb' @@ -59,6 +67,8 @@ module Models autoload :SBSubscription, 'generated/azure_mgmt_service_bus/models/sbsubscription.rb' autoload :Rule, 'generated/azure_mgmt_service_bus/models/rule.rb' autoload :SqlRuleAction, 'generated/azure_mgmt_service_bus/models/sql_rule_action.rb' + autoload :PremiumMessagingRegions, 'generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb' + autoload :Eventhub, 'generated/azure_mgmt_service_bus/models/eventhub.rb' autoload :SkuName, 'generated/azure_mgmt_service_bus/models/sku_name.rb' autoload :SkuTier, 'generated/azure_mgmt_service_bus/models/sku_tier.rb' autoload :AccessRights, 'generated/azure_mgmt_service_bus/models/access_rights.rb' @@ -66,5 +76,6 @@ module Models autoload :EntityStatus, 'generated/azure_mgmt_service_bus/models/entity_status.rb' autoload :UnavailableReason, 'generated/azure_mgmt_service_bus/models/unavailable_reason.rb' autoload :FilterType, 'generated/azure_mgmt_service_bus/models/filter_type.rb' + autoload :EncodingCaptureDescription, 'generated/azure_mgmt_service_bus/models/encoding_capture_description.rb' end end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/event_hubs.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/event_hubs.rb new file mode 100644 index 0000000000..66edd1f24d --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/event_hubs.rb @@ -0,0 +1,229 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + # + # Azure Service Bus client + # + class EventHubs + include MsRestAzure + + # + # Creates and initializes a new instance of the EventHubs class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ServiceBusManagementClient] reference to the ServiceBusManagementClient + attr_reader :client + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param resource_group_name [String] Name of the Resource group within the + # Azure subscription. + # @param namespace_name [String] The namespace name + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param resource_group_name [String] Name of the Resource group within the + # Azure subscription. + # @param namespace_name [String] The namespace name + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param resource_group_name [String] Name of the Resource group within the + # Azure subscription. + # @param namespace_name [String] The namespace name + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'namespace_name is nil' if namespace_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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/eventhubs' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::ServiceBus::Models::EventHubListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::ServiceBus::Models::EventHubListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the Event Hubs in a service bus Namespace. + # + # @param resource_group_name [String] Name of the Resource group within the + # Azure subscription. + # @param namespace_name [String] The namespace name + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + 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) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/access_rights.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/access_rights.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/capture_description.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/capture_description.rb new file mode 100644 index 0000000000..41b8f79e27 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/capture_description.rb @@ -0,0 +1,103 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # Properties to configure capture description for eventhub + # + class CaptureDescription + + include MsRestAzure + + include MsRest::JSONable + # @return [Boolean] A value that indicates whether capture description is + # enabled. + attr_accessor :enabled + + # @return [EncodingCaptureDescription] Enumerates the possible values for + # the encoding format of capture description. Possible values include: + # 'Avro', 'AvroDeflate' + attr_accessor :encoding + + # @return [Integer] The time window allows you to set the frequency with + # which the capture to Azure Blobs will happen, value should between 60 + # to 900 seconds + attr_accessor :interval_in_seconds + + # @return [Integer] The size window defines the amount of data built up + # in your Event Hub before an capture operation, value should be between + # 10485760 and 524288000 bytes + attr_accessor :size_limit_in_bytes + + # @return [Destination] Properties of Destination where capture will be + # stored. (Storage Account, Blob Names) + attr_accessor :destination + + + # + # Mapper for CaptureDescription class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CaptureDescription', + type: { + name: 'Composite', + class_name: 'CaptureDescription', + model_properties: { + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'Boolean' + } + }, + encoding: { + required: false, + serialized_name: 'encoding', + type: { + name: 'Enum', + module: 'EncodingCaptureDescription' + } + }, + interval_in_seconds: { + required: false, + serialized_name: 'intervalInSeconds', + constraints: { + InclusiveMaximum: 900, + InclusiveMinimum: 60 + }, + type: { + name: 'Number' + } + }, + size_limit_in_bytes: { + required: false, + serialized_name: 'sizeLimitInBytes', + constraints: { + InclusiveMaximum: 524288000, + InclusiveMinimum: 10485760 + }, + type: { + name: 'Number' + } + }, + destination: { + required: false, + serialized_name: 'destination', + type: { + name: 'Composite', + class_name: 'Destination' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/destination.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/destination.rb new file mode 100644 index 0000000000..b3be732c61 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/destination.rb @@ -0,0 +1,79 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # Capture storage details for capture description + # + class Destination + + include MsRestAzure + + include MsRest::JSONable + # @return [String] Name for capture destination + attr_accessor :name + + # @return [String] Resource id of the storage account to be used to + # create the blobs + attr_accessor :storage_account_resource_id + + # @return [String] Blob container Name + attr_accessor :blob_container + + # @return [String] Blob naming convention for archive, e.g. + # {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. + # Here all the parameters (Namespace,EventHub .. etc) are mandatory + # irrespective of order + attr_accessor :archive_name_format + + + # + # Mapper for Destination class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Destination', + type: { + name: 'Composite', + class_name: 'Destination', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + storage_account_resource_id: { + required: false, + serialized_name: 'properties.storageAccountResourceId', + type: { + name: 'String' + } + }, + blob_container: { + required: false, + serialized_name: 'properties.blobContainer', + type: { + name: 'String' + } + }, + archive_name_format: { + required: false, + serialized_name: 'properties.archiveNameFormat', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/encoding_capture_description.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/encoding_capture_description.rb new file mode 100644 index 0000000000..0509d285aa --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/encoding_capture_description.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # Defines values for EncodingCaptureDescription + # + module EncodingCaptureDescription + Avro = "Avro" + AvroDeflate = "AvroDeflate" + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/entity_status.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/entity_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb new file mode 100644 index 0000000000..20038bd0c2 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # The result of the List EventHubs operation. + # + class EventHubListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Result of the List EventHubs operation. + attr_accessor :value + + # @return [String] Link to the next set of results. Not empty if Value + # contains incomplete list of EventHubs. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [EventHubListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for EventHubListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EventHubListResult', + type: { + name: 'Composite', + class_name: 'EventHubListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EventhubElementType', + type: { + name: 'Composite', + class_name: 'Eventhub' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/eventhub.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/eventhub.rb new file mode 100644 index 0000000000..2fcd905079 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/eventhub.rb @@ -0,0 +1,154 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # Single item in List or Get Event Hub operation + # + class Eventhub < MsRestAzure::Resource + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Current number of shards on the Event Hub. + attr_accessor :partition_ids + + # @return [DateTime] Exact time the Event Hub was created. + attr_accessor :created_at + + # @return [DateTime] The exact time the message was updated. + attr_accessor :updated_at + + # @return [Integer] Number of days to retain the events for this Event + # Hub, value should be 1 to 7 days + attr_accessor :message_retention_in_days + + # @return [Integer] Number of partitions created for the Event Hub, + # allowed values are from 1 to 32 partitions. + attr_accessor :partition_count + + # @return [EntityStatus] Enumerates the possible values for the status of + # the Event Hub. Possible values include: 'Active', 'Disabled', + # 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + # 'Renaming', 'Unknown' + attr_accessor :status + + # @return [CaptureDescription] Properties of capture description + attr_accessor :capture_description + + + # + # Mapper for Eventhub class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Eventhub', + type: { + name: 'Composite', + class_name: 'Eventhub', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + partition_ids: { + required: false, + read_only: true, + serialized_name: 'properties.partitionIds', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + created_at: { + required: false, + read_only: true, + serialized_name: 'properties.createdAt', + type: { + name: 'DateTime' + } + }, + updated_at: { + required: false, + read_only: true, + serialized_name: 'properties.updatedAt', + type: { + name: 'DateTime' + } + }, + message_retention_in_days: { + required: false, + serialized_name: 'properties.messageRetentionInDays', + constraints: { + InclusiveMaximum: 7, + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + partition_count: { + required: false, + serialized_name: 'properties.partitionCount', + constraints: { + InclusiveMaximum: 32, + InclusiveMinimum: 1 + }, + type: { + name: 'Number' + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'Enum', + module: 'EntityStatus' + } + }, + capture_description: { + required: false, + serialized_name: 'properties.captureDescription', + type: { + name: 'Composite', + class_name: 'CaptureDescription' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation_display.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation_display.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb old mode 100755 new mode 100644 similarity index 57% rename from management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb rename to management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb index 44d52bdefe..88c31454fd --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb @@ -3,38 +3,31 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. -module Azure::ARM::Web +module Azure::ARM::ServiceBus module Models # - # Used for getting ResourceHealthCheck settings. + # Premium Messaging Region # - class ResourceHealthMetadata < MsRestAzure::Resource + class PremiumMessagingRegions < ResourceNamespacePatch include MsRestAzure include MsRest::JSONable - # @return [String] ARM Resource Id - attr_accessor :resource_health_metadata_id - - # @return [String] The category that the resource matches in the RHC - # Policy File - attr_accessor :category - - # @return [Boolean] Is there a health signal for the resource - attr_accessor :signal_availability + # @return [PremiumMessagingRegionsProperties] + attr_accessor :properties # - # Mapper for ResourceHealthMetadata class as Ruby Hash. + # Mapper for PremiumMessagingRegions class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, - serialized_name: 'ResourceHealthMetadata', + serialized_name: 'PremiumMessagingRegions', type: { name: 'Composite', - class_name: 'ResourceHealthMetadata', + class_name: 'PremiumMessagingRegions', model_properties: { id: { required: false, @@ -46,28 +39,23 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' } }, - kind: { + type: { required: false, - serialized_name: 'kind', + read_only: true, + serialized_name: 'type', type: { name: 'String' } }, location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, - type: { required: false, - serialized_name: 'type', + serialized_name: 'location', type: { name: 'String' } @@ -86,25 +74,12 @@ def self.mapper() } } }, - resource_health_metadata_id: { - required: false, - serialized_name: 'properties.id', - type: { - name: 'String' - } - }, - category: { - required: false, - serialized_name: 'properties.category', - type: { - name: 'String' - } - }, - signal_availability: { + properties: { required: false, - serialized_name: 'properties.signalAvailability', + serialized_name: 'properties', type: { - name: 'Boolean' + name: 'Composite', + class_name: 'PremiumMessagingRegionsProperties' } } } diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb new file mode 100644 index 0000000000..ca61e34910 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb @@ -0,0 +1,97 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # The response of the List PremiumMessagingRegions operation. + # + class PremiumMessagingRegionsListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Result of the List + # PremiumMessagingRegions type. + attr_accessor :value + + # @return [String] Link to the next set of results. Not empty if Value + # contains incomplete list of PremiumMessagingRegions. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [PremiumMessagingRegionsListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for PremiumMessagingRegionsListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PremiumMessagingRegionsListResult', + type: { + name: 'Composite', + class_name: 'PremiumMessagingRegionsListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PremiumMessagingRegionsElementType', + type: { + name: 'Composite', + class_name: 'PremiumMessagingRegions' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb new file mode 100644 index 0000000000..063590ae98 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb @@ -0,0 +1,58 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + module Models + # + # Model object. + # + # + class PremiumMessagingRegionsProperties + + include MsRestAzure + + include MsRest::JSONable + # @return [String] Region code + attr_accessor :code + + # @return [String] Full name of the region + attr_accessor :full_name + + + # + # Mapper for PremiumMessagingRegionsProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PremiumMessagingRegions_properties', + type: { + name: 'Composite', + class_name: 'PremiumMessagingRegionsProperties', + model_properties: { + code: { + required: false, + read_only: true, + serialized_name: 'code', + type: { + name: 'String' + } + }, + full_name: { + required: false, + read_only: true, + serialized_name: 'fullName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/sku_name.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/sku_name.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb old mode 100755 new mode 100644 index e928f7e80b..bf217d2aee --- a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb @@ -13,7 +13,7 @@ class TrackedResource < MsRestAzure::Resource include MsRestAzure include MsRest::JSONable - # @return [String] The Geo-location where the resource live + # @return [String] The Geo-location where the resource lives attr_accessor :location # @return [Hash{String => String}] Resource tags diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/module_definition.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/module_definition.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/namespaces.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/namespaces.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/operations.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/operations.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb similarity index 70% rename from management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb rename to management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb index 229be36f42..4a5ad28895 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb @@ -3,66 +3,59 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. -module Azure::ARM::Network +module Azure::ARM::ServiceBus # - # Network Client + # Azure Service Bus client # - class AvailablePrivateAccessServices + class PremiumMessagingRegionsOperations include MsRestAzure # - # Creates and initializes a new instance of the AvailablePrivateAccessServices class. + # Creates and initializes a new instance of the PremiumMessagingRegionsOperations class. # @param client service class for accessing basic functionality. # def initialize(client) @client = client end - # @return [NetworkManagementClient] reference to the NetworkManagementClient + # @return [ServiceBusManagementClient] reference to the ServiceBusManagementClient attr_reader :client # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # - # @param location [String] The location to check available private access - # values. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # - # @param location [String] The location to check available private access - # values. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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(custom_headers = nil) + list_async(custom_headers).value! end # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # - # @param location [String] The location to check available private access - # values. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) - fail ArgumentError, 'location is nil' if location.nil? - api_version = '2017-06-01' + 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? @@ -71,14 +64,14 @@ def list_async(location, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/privateAccessServices' + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/premiumMessagingRegions' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'location' => location,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, + path_params: {'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -90,7 +83,7 @@ def list_async(location, custom_headers = nil) response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) - fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? @@ -98,7 +91,7 @@ def list_async(location, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Network::Models::PrivateAccessServicesListResult.mapper() + result_mapper = Azure::ARM::ServiceBus::Models::PremiumMessagingRegionsListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -112,14 +105,14 @@ def list_async(location, custom_headers = nil) end # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PrivateAccessServicesListResult] operation results. + # @return [PremiumMessagingRegionsListResult] operation results. # def list_next(next_page_link, custom_headers = nil) response = list_next_async(next_page_link, custom_headers).value! @@ -127,7 +120,7 @@ def list_next(next_page_link, custom_headers = nil) end # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -141,7 +134,7 @@ def list_next_with_http_info(next_page_link, custom_headers = nil) end # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -177,7 +170,7 @@ def list_next_async(next_page_link, custom_headers = nil) response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) - fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? @@ -185,7 +178,7 @@ def list_next_async(next_page_link, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Network::Models::PrivateAccessServicesListResult.mapper() + result_mapper = Azure::ARM::ServiceBus::Models::PremiumMessagingRegionsListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -199,18 +192,16 @@ def list_next_async(next_page_link, custom_headers = nil) end # - # List what values of private access services are available for use. + # Gets the available premium messaging regions for servicebus # - # @param location [String] The location to check available private access - # values. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PrivateAccessServicesListResult] which provide lazy access to pages - # of the response. + # @return [PremiumMessagingRegionsListResult] 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(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/queues.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/queues.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/regions.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/regions.rb new file mode 100644 index 0000000000..cd6fff2147 --- /dev/null +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/regions.rb @@ -0,0 +1,220 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::ServiceBus + # + # Azure Service Bus client + # + class Regions + include MsRestAzure + + # + # Creates and initializes a new instance of the Regions class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ServiceBusManagementClient] reference to the ServiceBusManagementClient + attr_reader :client + + # + # Gets the available Regions for a given sku + # + # @param sku [String] The sku type. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_sku(sku, custom_headers = nil) + first_page = list_by_sku_as_lazy(sku, custom_headers) + first_page.get_all_items + end + + # + # Gets the available Regions for a given sku + # + # @param sku [String] The sku type. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the available Regions for a given sku + # + # @param sku [String] The sku type. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/sku/{sku}/regions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'sku' => sku}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::ServiceBus::Models::PremiumMessagingRegionsListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the available Regions for a given sku + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the available Regions for a given sku + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the available Regions for a given sku + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::ServiceBus::Models::PremiumMessagingRegionsListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the available Regions for a given sku + # + # @param sku [String] The sku type. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + 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) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb old mode 100755 new mode 100644 index b34de37758..3742ac9c05 --- a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +++ b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb @@ -54,6 +54,16 @@ class ServiceBusManagementClient < MsRestAzure::AzureServiceClient # @return [Rules] rules attr_reader :rules + # @return [Regions] regions + attr_reader :regions + + # @return [PremiumMessagingRegionsOperations] + # premium_messaging_regions_operations + attr_reader :premium_messaging_regions_operations + + # @return [EventHubs] event_hubs + attr_reader :event_hubs + # # Creates initializes a new instance of the ServiceBusManagementClient class. # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client. @@ -73,6 +83,9 @@ def initialize(credentials = nil, base_url = nil, options = nil) @topics = Topics.new(self) @subscriptions = Subscriptions.new(self) @rules = Rules.new(self) + @regions = Regions.new(self) + @premium_messaging_regions_operations = PremiumMessagingRegionsOperations.new(self) + @event_hubs = EventHubs.new(self) @api_version = '2017-04-01' @accept_language = 'en-US' @long_running_operation_retry_timeout = 30 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/subscriptions.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/subscriptions.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/topics.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/topics.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/version.rb b/management/azure_mgmt_service_bus/lib/generated/azure_mgmt_service_bus/version.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb old mode 100755 new mode 100644 index 41051e2de4..f2a0603e02 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb @@ -33,131 +33,140 @@ module Azure::ARM::Web autoload :WebSiteManagementClient, 'generated/azure_mgmt_web/web_site_management_client.rb' module Models - autoload :ResourceNameAvailabilityRequest, 'generated/azure_mgmt_web/models/resource_name_availability_request.rb' + autoload :ConnStringValueTypePair, 'generated/azure_mgmt_web/models/conn_string_value_type_pair.rb' autoload :AppServiceCertificate, 'generated/azure_mgmt_web/models/app_service_certificate.rb' - autoload :SkuInfos, 'generated/azure_mgmt_web/models/sku_infos.rb' - autoload :AppServiceCertificateCollection, 'generated/azure_mgmt_web/models/app_service_certificate_collection.rb' - autoload :ResourceMetricAvailability, 'generated/azure_mgmt_web/models/resource_metric_availability.rb' autoload :GeoRegionCollection, 'generated/azure_mgmt_web/models/geo_region_collection.rb' - autoload :AppServiceCertificateOrderCollection, 'generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb' autoload :SkuCapacity, 'generated/azure_mgmt_web/models/sku_capacity.rb' - autoload :SiteCloneabilityCriterion, 'generated/azure_mgmt_web/models/site_cloneability_criterion.rb' + autoload :CertificateDetails, 'generated/azure_mgmt_web/models/certificate_details.rb' autoload :GlobalCsmSkuDescription, 'generated/azure_mgmt_web/models/global_csm_sku_description.rb' - autoload :VirtualIPMapping, 'generated/azure_mgmt_web/models/virtual_ipmapping.rb' - autoload :ResourceMetric, 'generated/azure_mgmt_web/models/resource_metric.rb' + autoload :AppServiceCertificateOrderCollection, 'generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb' + autoload :SiteConfigResourceCollection, 'generated/azure_mgmt_web/models/site_config_resource_collection.rb' + autoload :CsmMoveResourceEnvelope, 'generated/azure_mgmt_web/models/csm_move_resource_envelope.rb' + autoload :ResourceMetricValue, 'generated/azure_mgmt_web/models/resource_metric_value.rb' + autoload :ProxyOnlyResource, 'generated/azure_mgmt_web/models/proxy_only_resource.rb' + autoload :AppServiceCertificateCollection, 'generated/azure_mgmt_web/models/app_service_certificate_collection.rb' + autoload :WebAppCollection, 'generated/azure_mgmt_web/models/web_app_collection.rb' autoload :Resource, 'generated/azure_mgmt_web/models/resource.rb' + autoload :SiteSeal, 'generated/azure_mgmt_web/models/site_seal.rb' + autoload :ResourceMetricName, 'generated/azure_mgmt_web/models/resource_metric_name.rb' + autoload :Address, 'generated/azure_mgmt_web/models/address.rb' + autoload :AddressResponse, 'generated/azure_mgmt_web/models/address_response.rb' + autoload :HostName, 'generated/azure_mgmt_web/models/host_name.rb' + autoload :ResourceMetricProperty, 'generated/azure_mgmt_web/models/resource_metric_property.rb' + autoload :WebAppInstanceCollection, 'generated/azure_mgmt_web/models/web_app_instance_collection.rb' autoload :PremierAddOnOfferCollection, 'generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb' - autoload :SiteSealRequest, 'generated/azure_mgmt_web/models/site_seal_request.rb' + autoload :DomainCollection, 'generated/azure_mgmt_web/models/domain_collection.rb' autoload :ResourceNameAvailability, 'generated/azure_mgmt_web/models/resource_name_availability.rb' - autoload :Contact, 'generated/azure_mgmt_web/models/contact.rb' - autoload :ResourceMetricValue, 'generated/azure_mgmt_web/models/resource_metric_value.rb' - autoload :DomainPurchaseConsent, 'generated/azure_mgmt_web/models/domain_purchase_consent.rb' - autoload :CertificateDetails, 'generated/azure_mgmt_web/models/certificate_details.rb' - autoload :DomainAvailablilityCheckResult, 'generated/azure_mgmt_web/models/domain_availablility_check_result.rb' + autoload :ResourceMetricDefinitionCollection, 'generated/azure_mgmt_web/models/resource_metric_definition_collection.rb' + autoload :ResourceNameAvailabilityRequest, 'generated/azure_mgmt_web/models/resource_name_availability_request.rb' + autoload :DomainRecommendationSearchParameters, 'generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb' + autoload :SkuInfos, 'generated/azure_mgmt_web/models/sku_infos.rb' + autoload :TldLegalAgreement, 'generated/azure_mgmt_web/models/tld_legal_agreement.rb' autoload :SlotDifferenceCollection, 'generated/azure_mgmt_web/models/slot_difference_collection.rb' - autoload :DomainControlCenterSsoRequest, 'generated/azure_mgmt_web/models/domain_control_center_sso_request.rb' + autoload :VirtualIPMapping, 'generated/azure_mgmt_web/models/virtual_ipmapping.rb' autoload :SourceControlCollection, 'generated/azure_mgmt_web/models/source_control_collection.rb' - autoload :DomainOwnershipIdentifierCollection, 'generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb' - autoload :SnapshotCollection, 'generated/azure_mgmt_web/models/snapshot_collection.rb' - autoload :NameIdentifierCollection, 'generated/azure_mgmt_web/models/name_identifier_collection.rb' + autoload :TopLevelDomainCollection, 'generated/azure_mgmt_web/models/top_level_domain_collection.rb' + autoload :SiteCloneability, 'generated/azure_mgmt_web/models/site_cloneability.rb' + autoload :ResourceMetricCollection, 'generated/azure_mgmt_web/models/resource_metric_collection.rb' autoload :ValidateRequest, 'generated/azure_mgmt_web/models/validate_request.rb' - autoload :TldLegalAgreementCollection, 'generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb' + autoload :ApiDefinitionInfo, 'generated/azure_mgmt_web/models/api_definition_info.rb' autoload :ValidateResponseError, 'generated/azure_mgmt_web/models/validate_response_error.rb' - autoload :TopLevelDomainAgreementOption, 'generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb' + autoload :AutoHealActions, 'generated/azure_mgmt_web/models/auto_heal_actions.rb' autoload :ValidateResponse, 'generated/azure_mgmt_web/models/validate_response.rb' - autoload :HostingEnvironmentProfile, 'generated/azure_mgmt_web/models/hosting_environment_profile.rb' + autoload :StatusCodesBasedTrigger, 'generated/azure_mgmt_web/models/status_codes_based_trigger.rb' autoload :FileSystemApplicationLogsConfig, 'generated/azure_mgmt_web/models/file_system_application_logs_config.rb' - autoload :CertificateCollection, 'generated/azure_mgmt_web/models/certificate_collection.rb' + autoload :AutoHealTriggers, 'generated/azure_mgmt_web/models/auto_heal_triggers.rb' autoload :AzureTableStorageApplicationLogsConfig, 'generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb' - autoload :AutoHealCustomAction, 'generated/azure_mgmt_web/models/auto_heal_custom_action.rb' + autoload :CloningInfo, 'generated/azure_mgmt_web/models/cloning_info.rb' autoload :AzureBlobStorageApplicationLogsConfig, 'generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb' - autoload :RequestsBasedTrigger, 'generated/azure_mgmt_web/models/requests_based_trigger.rb' + autoload :CorsSettings, 'generated/azure_mgmt_web/models/cors_settings.rb' autoload :ApplicationLogsConfig, 'generated/azure_mgmt_web/models/application_logs_config.rb' - autoload :SlowRequestsBasedTrigger, 'generated/azure_mgmt_web/models/slow_requests_based_trigger.rb' + autoload :NameValuePair, 'generated/azure_mgmt_web/models/name_value_pair.rb' autoload :AzureBlobStorageHttpLogsConfig, 'generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb' - autoload :AutoHealRules, 'generated/azure_mgmt_web/models/auto_heal_rules.rb' + autoload :HandlerMapping, 'generated/azure_mgmt_web/models/handler_mapping.rb' autoload :DatabaseBackupSetting, 'generated/azure_mgmt_web/models/database_backup_setting.rb' - autoload :ConnStringInfo, 'generated/azure_mgmt_web/models/conn_string_info.rb' - autoload :WebAppCollection, 'generated/azure_mgmt_web/models/web_app_collection.rb' - autoload :HostNameSslState, 'generated/azure_mgmt_web/models/host_name_ssl_state.rb' + autoload :VirtualApplication, 'generated/azure_mgmt_web/models/virtual_application.rb' + autoload :SiteCloneabilityCriterion, 'generated/azure_mgmt_web/models/site_cloneability_criterion.rb' + autoload :Experiments, 'generated/azure_mgmt_web/models/experiments.rb' autoload :BackupItemCollection, 'generated/azure_mgmt_web/models/backup_item_collection.rb' - autoload :SiteMachineKey, 'generated/azure_mgmt_web/models/site_machine_key.rb' + autoload :ResourceMetricAvailability, 'generated/azure_mgmt_web/models/resource_metric_availability.rb' autoload :BackupSchedule, 'generated/azure_mgmt_web/models/backup_schedule.rb' - autoload :VirtualDirectory, 'generated/azure_mgmt_web/models/virtual_directory.rb' - autoload :SiteConfigResourceCollection, 'generated/azure_mgmt_web/models/site_config_resource_collection.rb' - autoload :RampUpRule, 'generated/azure_mgmt_web/models/ramp_up_rule.rb' - autoload :ConnStringValueTypePair, 'generated/azure_mgmt_web/models/conn_string_value_type_pair.rb' - autoload :SiteLimits, 'generated/azure_mgmt_web/models/site_limits.rb' - autoload :IpSecurityRestriction, 'generated/azure_mgmt_web/models/ip_security_restriction.rb' - autoload :CsmPublishingProfileOptions, 'generated/azure_mgmt_web/models/csm_publishing_profile_options.rb' - autoload :SlotSwapStatus, 'generated/azure_mgmt_web/models/slot_swap_status.rb' - autoload :CsmSiteRecoveryEntity, 'generated/azure_mgmt_web/models/csm_site_recovery_entity.rb' + autoload :SiteConfig, 'generated/azure_mgmt_web/models/site_config.rb' + autoload :SnapshotCollection, 'generated/azure_mgmt_web/models/snapshot_collection.rb' + autoload :ResourceMetric, 'generated/azure_mgmt_web/models/resource_metric.rb' autoload :DeletedWebAppCollection, 'generated/azure_mgmt_web/models/deleted_web_app_collection.rb' + autoload :PublicCertificateCollection, 'generated/azure_mgmt_web/models/public_certificate_collection.rb' + autoload :Dimension, 'generated/azure_mgmt_web/models/dimension.rb' + autoload :MetricSpecification, 'generated/azure_mgmt_web/models/metric_specification.rb' + autoload :CsmPublishingProfileOptions, 'generated/azure_mgmt_web/models/csm_publishing_profile_options.rb' + autoload :CsmOperationDescriptionProperties, 'generated/azure_mgmt_web/models/csm_operation_description_properties.rb' autoload :CsmSlotEntity, 'generated/azure_mgmt_web/models/csm_slot_entity.rb' - autoload :RecommendationRule, 'generated/azure_mgmt_web/models/recommendation_rule.rb' + autoload :CsmOperationCollection, 'generated/azure_mgmt_web/models/csm_operation_collection.rb' autoload :LocalizableString, 'generated/azure_mgmt_web/models/localizable_string.rb' - autoload :CsmMoveResourceEnvelope, 'generated/azure_mgmt_web/models/csm_move_resource_envelope.rb' + autoload :RecommendationRule, 'generated/azure_mgmt_web/models/recommendation_rule.rb' autoload :CsmUsageQuota, 'generated/azure_mgmt_web/models/csm_usage_quota.rb' - autoload :SiteCloneability, 'generated/azure_mgmt_web/models/site_cloneability.rb' + autoload :NameIdentifier, 'generated/azure_mgmt_web/models/name_identifier.rb' autoload :CsmUsageQuotaCollection, 'generated/azure_mgmt_web/models/csm_usage_quota_collection.rb' - autoload :AddressResponse, 'generated/azure_mgmt_web/models/address_response.rb' + autoload :SiteSealRequest, 'generated/azure_mgmt_web/models/site_seal_request.rb' autoload :ErrorEntity, 'generated/azure_mgmt_web/models/error_entity.rb' - autoload :Address, 'generated/azure_mgmt_web/models/address.rb' + autoload :DomainPurchaseConsent, 'generated/azure_mgmt_web/models/domain_purchase_consent.rb' autoload :ResourceCollection, 'generated/azure_mgmt_web/models/resource_collection.rb' - autoload :VirtualNetworkProfile, 'generated/azure_mgmt_web/models/virtual_network_profile.rb' + autoload :DomainControlCenterSsoRequest, 'generated/azure_mgmt_web/models/domain_control_center_sso_request.rb' autoload :HybridConnectionCollection, 'generated/azure_mgmt_web/models/hybrid_connection_collection.rb' - autoload :WorkerPool, 'generated/azure_mgmt_web/models/worker_pool.rb' + autoload :NameIdentifierCollection, 'generated/azure_mgmt_web/models/name_identifier_collection.rb' autoload :DeploymentCollection, 'generated/azure_mgmt_web/models/deployment_collection.rb' - autoload :TldLegalAgreement, 'generated/azure_mgmt_web/models/tld_legal_agreement.rb' + autoload :TopLevelDomainAgreementOption, 'generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb' autoload :EnabledConfig, 'generated/azure_mgmt_web/models/enabled_config.rb' - autoload :TopLevelDomainCollection, 'generated/azure_mgmt_web/models/top_level_domain_collection.rb' + autoload :CertificateCollection, 'generated/azure_mgmt_web/models/certificate_collection.rb' autoload :FileSystemHttpLogsConfig, 'generated/azure_mgmt_web/models/file_system_http_logs_config.rb' - autoload :ApiDefinitionInfo, 'generated/azure_mgmt_web/models/api_definition_info.rb' + autoload :RequestsBasedTrigger, 'generated/azure_mgmt_web/models/requests_based_trigger.rb' autoload :WorkerPoolCollection, 'generated/azure_mgmt_web/models/worker_pool_collection.rb' - autoload :StatusCodesBasedTrigger, 'generated/azure_mgmt_web/models/status_codes_based_trigger.rb' + autoload :AutoHealRules, 'generated/azure_mgmt_web/models/auto_heal_rules.rb' autoload :HostNameBindingCollection, 'generated/azure_mgmt_web/models/host_name_binding_collection.rb' - autoload :CloningInfo, 'generated/azure_mgmt_web/models/cloning_info.rb' + autoload :HostNameSslState, 'generated/azure_mgmt_web/models/host_name_ssl_state.rb' autoload :HttpLogsConfig, 'generated/azure_mgmt_web/models/http_logs_config.rb' - autoload :NameValuePair, 'generated/azure_mgmt_web/models/name_value_pair.rb' + autoload :VirtualDirectory, 'generated/azure_mgmt_web/models/virtual_directory.rb' autoload :UsageCollection, 'generated/azure_mgmt_web/models/usage_collection.rb' - autoload :VirtualApplication, 'generated/azure_mgmt_web/models/virtual_application.rb' + autoload :SiteLimits, 'generated/azure_mgmt_web/models/site_limits.rb' autoload :StampCapacityCollection, 'generated/azure_mgmt_web/models/stamp_capacity_collection.rb' - autoload :PushSettings, 'generated/azure_mgmt_web/models/push_settings.rb' + autoload :SlotSwapStatus, 'generated/azure_mgmt_web/models/slot_swap_status.rb' autoload :SkuInfoCollection, 'generated/azure_mgmt_web/models/sku_info_collection.rb' - autoload :ResourceMetricCollection, 'generated/azure_mgmt_web/models/resource_metric_collection.rb' + autoload :MetricAvailability, 'generated/azure_mgmt_web/models/metric_availability.rb' autoload :IdentifierCollection, 'generated/azure_mgmt_web/models/identifier_collection.rb' - autoload :Capability, 'generated/azure_mgmt_web/models/capability.rb' + autoload :CsmOperationDescription, 'generated/azure_mgmt_web/models/csm_operation_description.rb' autoload :SkuInfo, 'generated/azure_mgmt_web/models/sku_info.rb' - autoload :NameIdentifier, 'generated/azure_mgmt_web/models/name_identifier.rb' + autoload :Capability, 'generated/azure_mgmt_web/models/capability.rb' + autoload :MSDeployLogEntry, 'generated/azure_mgmt_web/models/msdeploy_log_entry.rb' + autoload :Contact, 'generated/azure_mgmt_web/models/contact.rb' autoload :MetricAvailabilily, 'generated/azure_mgmt_web/models/metric_availabilily.rb' - autoload :HostName, 'generated/azure_mgmt_web/models/host_name.rb' + autoload :DomainOwnershipIdentifierCollection, 'generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb' autoload :HostingEnvironmentDiagnostics, 'generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb' - autoload :DomainRecommendationSearchParameters, 'generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb' - autoload :VnetInfo, 'generated/azure_mgmt_web/models/vnet_info.rb' - autoload :StampCapacity, 'generated/azure_mgmt_web/models/stamp_capacity.rb' + autoload :HostingEnvironmentProfile, 'generated/azure_mgmt_web/models/hosting_environment_profile.rb' autoload :AppServicePlanCollection, 'generated/azure_mgmt_web/models/app_service_plan_collection.rb' - autoload :AutoHealTriggers, 'generated/azure_mgmt_web/models/auto_heal_triggers.rb' + autoload :SlowRequestsBasedTrigger, 'generated/azure_mgmt_web/models/slow_requests_based_trigger.rb' autoload :SkuDescription, 'generated/azure_mgmt_web/models/sku_description.rb' - autoload :HandlerMapping, 'generated/azure_mgmt_web/models/handler_mapping.rb' + autoload :SiteMachineKey, 'generated/azure_mgmt_web/models/site_machine_key.rb' + autoload :AppServiceEnvironmentCollection, 'generated/azure_mgmt_web/models/app_service_environment_collection.rb' + autoload :IpSecurityRestriction, 'generated/azure_mgmt_web/models/ip_security_restriction.rb' + autoload :AppServiceEnvironment, 'generated/azure_mgmt_web/models/app_service_environment.rb' + autoload :ServiceSpecification, 'generated/azure_mgmt_web/models/service_specification.rb' + autoload :NetworkAccessControlEntry, 'generated/azure_mgmt_web/models/network_access_control_entry.rb' + autoload :SnapshotRecoveryTarget, 'generated/azure_mgmt_web/models/snapshot_recovery_target.rb' + autoload :StampCapacity, 'generated/azure_mgmt_web/models/stamp_capacity.rb' + autoload :TldLegalAgreementCollection, 'generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb' autoload :Operation, 'generated/azure_mgmt_web/models/operation.rb' - autoload :SiteConfig, 'generated/azure_mgmt_web/models/site_config.rb' + autoload :ConnStringInfo, 'generated/azure_mgmt_web/models/conn_string_info.rb' autoload :PerfMonSample, 'generated/azure_mgmt_web/models/perf_mon_sample.rb' - autoload :WebAppInstanceCollection, 'generated/azure_mgmt_web/models/web_app_instance_collection.rb' + autoload :CsmOperationDisplay, 'generated/azure_mgmt_web/models/csm_operation_display.rb' autoload :PerfMonSet, 'generated/azure_mgmt_web/models/perf_mon_set.rb' - autoload :DomainCollection, 'generated/azure_mgmt_web/models/domain_collection.rb' + autoload :DomainAvailablilityCheckResult, 'generated/azure_mgmt_web/models/domain_availablility_check_result.rb' autoload :PerfMonResponse, 'generated/azure_mgmt_web/models/perf_mon_response.rb' - autoload :AutoHealActions, 'generated/azure_mgmt_web/models/auto_heal_actions.rb' + autoload :RampUpRule, 'generated/azure_mgmt_web/models/ramp_up_rule.rb' autoload :PerfMonCounterCollection, 'generated/azure_mgmt_web/models/perf_mon_counter_collection.rb' - autoload :Experiments, 'generated/azure_mgmt_web/models/experiments.rb' - autoload :AppServiceEnvironmentCollection, 'generated/azure_mgmt_web/models/app_service_environment_collection.rb' - autoload :SiteSeal, 'generated/azure_mgmt_web/models/site_seal.rb' - autoload :AppServiceEnvironment, 'generated/azure_mgmt_web/models/app_service_environment.rb' - autoload :CorsSettings, 'generated/azure_mgmt_web/models/cors_settings.rb' - autoload :NetworkAccessControlEntry, 'generated/azure_mgmt_web/models/network_access_control_entry.rb' - autoload :ResourceMetricDefinitionCollection, 'generated/azure_mgmt_web/models/resource_metric_definition_collection.rb' - autoload :ResourceMetricName, 'generated/azure_mgmt_web/models/resource_metric_name.rb' + autoload :AutoHealCustomAction, 'generated/azure_mgmt_web/models/auto_heal_custom_action.rb' + autoload :WorkerPool, 'generated/azure_mgmt_web/models/worker_pool.rb' autoload :Recommendation, 'generated/azure_mgmt_web/models/recommendation.rb' - autoload :ResourceMetricProperty, 'generated/azure_mgmt_web/models/resource_metric_property.rb' + autoload :VirtualNetworkProfile, 'generated/azure_mgmt_web/models/virtual_network_profile.rb' autoload :AppServiceCertificateResource, 'generated/azure_mgmt_web/models/app_service_certificate_resource.rb' autoload :AppServiceCertificateOrder, 'generated/azure_mgmt_web/models/app_service_certificate_order.rb' autoload :CertificateEmail, 'generated/azure_mgmt_web/models/certificate_email.rb' @@ -168,6 +177,7 @@ module Models autoload :DomainOwnershipIdentifier, 'generated/azure_mgmt_web/models/domain_ownership_identifier.rb' autoload :TopLevelDomain, 'generated/azure_mgmt_web/models/top_level_domain.rb' autoload :Certificate, 'generated/azure_mgmt_web/models/certificate.rb' + autoload :PushSettings, 'generated/azure_mgmt_web/models/push_settings.rb' autoload :DeletedSite, 'generated/azure_mgmt_web/models/deleted_site.rb' autoload :GeoRegion, 'generated/azure_mgmt_web/models/geo_region.rb' autoload :PremierAddOnOffer, 'generated/azure_mgmt_web/models/premier_add_on_offer.rb' @@ -182,14 +192,18 @@ module Models autoload :HybridConnection, 'generated/azure_mgmt_web/models/hybrid_connection.rb' autoload :HybridConnectionKey, 'generated/azure_mgmt_web/models/hybrid_connection_key.rb' autoload :Identifier, 'generated/azure_mgmt_web/models/identifier.rb' + autoload :MSDeploy, 'generated/azure_mgmt_web/models/msdeploy.rb' + autoload :MSDeployLog, 'generated/azure_mgmt_web/models/msdeploy_log.rb' + autoload :MSDeployStatus, 'generated/azure_mgmt_web/models/msdeploy_status.rb' autoload :MigrateMySqlRequest, 'generated/azure_mgmt_web/models/migrate_my_sql_request.rb' autoload :MigrateMySqlStatus, 'generated/azure_mgmt_web/models/migrate_my_sql_status.rb' autoload :VnetRoute, 'generated/azure_mgmt_web/models/vnet_route.rb' + autoload :VnetInfo, 'generated/azure_mgmt_web/models/vnet_info.rb' autoload :RelayServiceConnectionEntity, 'generated/azure_mgmt_web/models/relay_service_connection_entity.rb' autoload :NetworkFeatures, 'generated/azure_mgmt_web/models/network_features.rb' autoload :PremierAddOn, 'generated/azure_mgmt_web/models/premier_add_on.rb' + autoload :PublicCertificate, 'generated/azure_mgmt_web/models/public_certificate.rb' autoload :RecoverResponse, 'generated/azure_mgmt_web/models/recover_response.rb' - autoload :ResourceHealthMetadata, 'generated/azure_mgmt_web/models/resource_health_metadata.rb' autoload :ResourceMetricDefinition, 'generated/azure_mgmt_web/models/resource_metric_definition.rb' autoload :RestoreRequest, 'generated/azure_mgmt_web/models/restore_request.rb' autoload :RestoreResponse, 'generated/azure_mgmt_web/models/restore_response.rb' @@ -204,6 +218,7 @@ module Models autoload :SlotConfigNamesResource, 'generated/azure_mgmt_web/models/slot_config_names_resource.rb' autoload :SlotDifference, 'generated/azure_mgmt_web/models/slot_difference.rb' autoload :Snapshot, 'generated/azure_mgmt_web/models/snapshot.rb' + autoload :SnapshotRecoveryRequest, 'generated/azure_mgmt_web/models/snapshot_recovery_request.rb' autoload :StorageMigrationOptions, 'generated/azure_mgmt_web/models/storage_migration_options.rb' autoload :StorageMigrationResponse, 'generated/azure_mgmt_web/models/storage_migration_response.rb' autoload :StringDictionary, 'generated/azure_mgmt_web/models/string_dictionary.rb' @@ -248,8 +263,12 @@ module Models autoload :BackupRestoreOperationType, 'generated/azure_mgmt_web/models/backup_restore_operation_type.rb' autoload :PublishingProfileFormat, 'generated/azure_mgmt_web/models/publishing_profile_format.rb' autoload :DnsVerificationTestResult, 'generated/azure_mgmt_web/models/dns_verification_test_result.rb' + autoload :MSDeployLogEntryType, 'generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb' + autoload :MSDeployProvisioningState, 'generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb' + autoload :MySqlMigrationType, 'generated/azure_mgmt_web/models/my_sql_migration_type.rb' autoload :OperationStatus, 'generated/azure_mgmt_web/models/operation_status.rb' autoload :RouteType, 'generated/azure_mgmt_web/models/route_type.rb' + autoload :PublicCertificateLocation, 'generated/azure_mgmt_web/models/public_certificate_location.rb' autoload :UnauthenticatedClientAction, 'generated/azure_mgmt_web/models/unauthenticated_client_action.rb' autoload :BuiltInAuthenticationProvider, 'generated/azure_mgmt_web/models/built_in_authentication_provider.rb' autoload :CloneAbilityResult, 'generated/azure_mgmt_web/models/clone_ability_result.rb' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_environments.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_environments.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_plans.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_plans.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/certificates.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/certificates.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/deleted_web_apps.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/deleted_web_apps.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/domains.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/domains.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/access_control_entry_action.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/access_control_entry_action.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/address.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/address.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/address_response.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/address_response.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/api_definition_info.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/api_definition_info.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb old mode 100755 new mode 100644 index a8b77d707a..fc1400e782 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb @@ -107,6 +107,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -128,6 +129,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_resource.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_resource.rb old mode 100755 new mode 100644 index b29aa8d2f1..27abcd223f --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_certificate_resource.rb @@ -52,6 +52,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -73,6 +74,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_resource.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_resource.rb old mode 100755 new mode 100644 index 626504688c..dbf167d12a --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_resource.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_environment_resource.rb @@ -170,6 +170,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -191,6 +192,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan.rb old mode 100755 new mode 100644 index cb0bb82f98..3ddf7582f9 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan.rb @@ -92,6 +92,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -113,6 +114,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/application_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/application_logs_config.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_action_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_action_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb old mode 100755 new mode 100644 index d84ec6c101..b38a1f3e23 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb @@ -22,7 +22,8 @@ class AzureBlobStorageHttpLogsConfig # 0 or lower means no retention. attr_accessor :retention_in_days - # @return [Boolean] Enabled. + # @return [Boolean] True if configuration is enabled, false if it is + # disabled and null if configuration is not set. attr_accessor :enabled diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_resource_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_resource_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item.rb old mode 100755 new mode 100644 index cbd0b21cd4..4aae341795 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item.rb @@ -8,7 +8,7 @@ module Models # # Backup description. # - class BackupItem < MsRestAzure::Resource + class BackupItem < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -87,6 +87,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -99,34 +100,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, backup_id: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_item_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_request.rb old mode 100755 new mode 100644 index 99ac8081be..1e4a7c5629 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_request.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_request.rb @@ -8,7 +8,7 @@ module Models # # Description of a backup which will be performed. # - class BackupRequest < MsRestAzure::Resource + class BackupRequest < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -33,7 +33,7 @@ class BackupRequest < MsRestAzure::Resource attr_accessor :databases # @return [BackupRestoreOperationType] Type of the backup. Possible - # values include: 'Default', 'Clone', 'Relocation' + # values include: 'Default', 'Clone', 'Relocation', 'Snapshot' attr_accessor :backup_request_type @@ -59,6 +59,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -71,34 +72,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, backup_request_name: { required: false, serialized_name: 'properties.name', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb old mode 100755 new mode 100644 index 33c69bd33d..bd4b6a4826 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb @@ -12,6 +12,7 @@ module BackupRestoreOperationType Default = "Default" Clone = "Clone" Relocation = "Relocation" + Snapshot = "Snapshot" end end end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_schedule.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/backup_schedule.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/built_in_authentication_provider.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/built_in_authentication_provider.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/capability.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/capability.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate.rb old mode 100755 new mode 100644 index 6cbf43fed5..b6a20d870a --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate.rb @@ -108,6 +108,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -129,6 +130,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_details.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_details.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_email.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_email.rb old mode 100755 new mode 100644 index 64f10583a3..a1aa97ab53 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_email.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_email.rb @@ -8,7 +8,7 @@ module Models # # SSL certificate email. # - class CertificateEmail < MsRestAzure::Resource + class CertificateEmail < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -42,6 +42,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -54,34 +55,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, email_id: { required: false, serialized_name: 'properties.emailId', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action.rb old mode 100755 new mode 100644 index cba2c9202c..b6286be8fc --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action.rb @@ -48,6 +48,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -69,6 +70,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_order_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_product_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/certificate_product_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/channels.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/channels.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/check_name_resource_types.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/check_name_resource_types.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/clone_ability_result.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/clone_ability_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/cloning_info.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/cloning_info.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/compute_mode_options.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/compute_mode_options.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/conn_string_info.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/conn_string_info.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb old mode 100755 new mode 100644 index a675ecf57c..48066e8fb9 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb @@ -8,7 +8,7 @@ module Models # # String dictionary resource. # - class ConnectionStringDictionary < MsRestAzure::Resource + class ConnectionStringDictionary < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -51,34 +52,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, properties: { required: false, serialized_name: 'properties', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/connection_string_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/contact.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/contact.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/cors_settings.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/cors_settings.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_collection.rb new file mode 100644 index 0000000000..bdf47a3d48 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Collection of Azure resource manager operation metadata. + # + class CsmOperationCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Collection of resources. + attr_accessor :value + + # @return [String] Link to next page of resources. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [CsmOperationCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for CsmOperationCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CsmOperationCollection', + type: { + name: 'Composite', + class_name: 'CsmOperationCollection', + model_properties: { + value: { + required: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CsmOperationDescriptionElementType', + type: { + name: 'Composite', + class_name: 'CsmOperationDescription' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description.rb new file mode 100644 index 0000000000..d40f5f6a5d --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description.rb @@ -0,0 +1,78 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class CsmOperationDescription + + include MsRestAzure + + include MsRest::JSONable + # @return [String] + attr_accessor :name + + # @return [CsmOperationDisplay] + attr_accessor :display + + # @return [String] + attr_accessor :origin + + # @return [CsmOperationDescriptionProperties] + attr_accessor :properties + + + # + # Mapper for CsmOperationDescription class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CsmOperationDescription', + type: { + name: 'Composite', + class_name: 'CsmOperationDescription', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + display: { + required: false, + serialized_name: 'display', + type: { + name: 'Composite', + class_name: 'CsmOperationDisplay' + } + }, + origin: { + required: false, + serialized_name: 'origin', + type: { + name: 'String' + } + }, + properties: { + required: false, + serialized_name: 'properties', + type: { + name: 'Composite', + class_name: 'CsmOperationDescriptionProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description_properties.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description_properties.rb new file mode 100644 index 0000000000..d7634367bd --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_description_properties.rb @@ -0,0 +1,47 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class CsmOperationDescriptionProperties + + include MsRestAzure + + include MsRest::JSONable + # @return [ServiceSpecification] + attr_accessor :service_specification + + + # + # Mapper for CsmOperationDescriptionProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CsmOperationDescriptionProperties', + type: { + name: 'Composite', + class_name: 'CsmOperationDescriptionProperties', + model_properties: { + service_specification: { + required: false, + serialized_name: 'serviceSpecification', + type: { + name: 'Composite', + class_name: 'ServiceSpecification' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_display.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_display.rb new file mode 100644 index 0000000000..3fe8d2c8ae --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_operation_display.rb @@ -0,0 +1,76 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class CsmOperationDisplay + + include MsRestAzure + + include MsRest::JSONable + # @return [String] + attr_accessor :provider + + # @return [String] + attr_accessor :resource + + # @return [String] + attr_accessor :operation + + # @return [String] + attr_accessor :description + + + # + # Mapper for CsmOperationDisplay class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CsmOperationDisplay', + type: { + name: 'Composite', + class_name: 'CsmOperationDisplay', + model_properties: { + provider: { + required: false, + serialized_name: 'provider', + type: { + name: 'String' + } + }, + resource: { + required: false, + serialized_name: 'resource', + type: { + name: 'String' + } + }, + operation: { + required: false, + serialized_name: 'operation', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb deleted file mode 100755 index ff7633abcb..0000000000 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb +++ /dev/null @@ -1,68 +0,0 @@ -# encoding: utf-8 -# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. - -module Azure::ARM::Web - module Models - # - # Details about app recovery operation. - # - class CsmSiteRecoveryEntity - - include MsRestAzure - - include MsRest::JSONable - # @return [DateTime] Point in time in which the app recovery should be - # attempted. - attr_accessor :snapshot_time - - # @return [String] [Optional] Destination app name into which app should - # be recovered. This is case when new app should be created instead. - attr_accessor :site_name - - # @return [String] [Optional] Destination app slot name into which app - # should be recovered. - attr_accessor :slot_name - - - # - # Mapper for CsmSiteRecoveryEntity class as Ruby Hash. - # This will be used for serialization/deserialization. - # - def self.mapper() - { - required: false, - serialized_name: 'CsmSiteRecoveryEntity', - type: { - name: 'Composite', - class_name: 'CsmSiteRecoveryEntity', - model_properties: { - snapshot_time: { - required: false, - serialized_name: 'snapshotTime', - type: { - name: 'DateTime' - } - }, - site_name: { - required: false, - serialized_name: 'siteName', - type: { - name: 'String' - } - }, - slot_name: { - required: false, - serialized_name: 'slotName', - type: { - name: 'String' - } - } - } - } - } - end - end - end -end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb old mode 100755 new mode 100644 index 84bec5fb1f..ac02c80f76 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb @@ -8,7 +8,7 @@ module Models # # Custom domain analysis. # - class CustomHostnameAnalysisResult < MsRestAzure::Resource + class CustomHostnameAnalysisResult < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -79,6 +79,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -91,34 +92,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, is_hostname_already_verified: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/database_backup_setting.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/database_backup_setting.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/database_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/database_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_site.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_site.rb old mode 100755 new mode 100644 index b31dd48337..ca9011a135 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_site.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_site.rb @@ -168,6 +168,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -189,6 +190,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment.rb old mode 100755 new mode 100644 index 1584a7b76b..aec77f5a65 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment.rb @@ -8,24 +8,24 @@ module Models # # User crendentials used for publishing activity. # - class Deployment < MsRestAzure::Resource + class Deployment < MsRestAzure::ProxyOnlyResource include MsRestAzure include MsRest::JSONable - # @return [String] ID. + # @return [String] Identifier for deployment. attr_accessor :deployment_id - # @return [Integer] Status. + # @return [Integer] Deployment status. attr_accessor :status - # @return [String] Message. + # @return [String] Details about deployment status. attr_accessor :message - # @return [String] Author. + # @return [String] Who authored the deployment. attr_accessor :author - # @return [String] Deployer. + # @return [String] Who performed the deployment. attr_accessor :deployer # @return [String] Author email. @@ -37,10 +37,11 @@ class Deployment < MsRestAzure::Resource # @return [DateTime] End time. attr_accessor :end_time - # @return [Boolean] Active. + # @return [Boolean] True if deployment is currently active, false if + # completed and null if not started. attr_accessor :active - # @return [String] Detail. + # @return [String] Details on deployment. attr_accessor :details @@ -66,6 +67,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -78,34 +80,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, deployment_id: { required: false, serialized_name: 'properties.id', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/deployment_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dimension.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dimension.rb new file mode 100644 index 0000000000..30433b25ee --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dimension.rb @@ -0,0 +1,76 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class Dimension + + include MsRestAzure + + include MsRest::JSONable + # @return [String] + attr_accessor :name + + # @return [String] + attr_accessor :display_name + + # @return [String] + attr_accessor :internal_name + + # @return [Boolean] + attr_accessor :to_be_exported_for_shoebox + + + # + # Mapper for Dimension class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Dimension', + type: { + name: 'Composite', + class_name: 'Dimension', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'displayName', + type: { + name: 'String' + } + }, + internal_name: { + required: false, + serialized_name: 'internalName', + type: { + name: 'String' + } + }, + to_be_exported_for_shoebox: { + required: false, + serialized_name: 'toBeExportedForShoebox', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dns_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dns_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dns_verification_test_result.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/dns_verification_test_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain.rb old mode 100755 new mode 100644 index 72ad8046e2..b57bb0598d --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain.rb @@ -110,6 +110,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -131,6 +132,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb old mode 100755 new mode 100644 index 3d64f5fdfc..e670a44873 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -60,6 +61,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/domain_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/enabled_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/enabled_config.rb old mode 100755 new mode 100644 index 3731d10f0e..a416a1e8f7 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/enabled_config.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/enabled_config.rb @@ -13,7 +13,8 @@ class EnabledConfig include MsRestAzure include MsRest::JSONable - # @return [Boolean] Enabled. + # @return [Boolean] True if configuration is enabled, false if it is + # disabled and null if configuration is not set. attr_accessor :enabled diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/error_entity.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/error_entity.rb old mode 100755 new mode 100644 index a3d4439649..48773333f0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/error_entity.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/error_entity.rb @@ -13,6 +13,12 @@ class ErrorEntity include MsRestAzure include MsRest::JSONable + # @return [String] Basic error code. + attr_accessor :code + + # @return [String] Any details of the error. + attr_accessor :message + # @return [String] Type of error. attr_accessor :extended_code @@ -25,12 +31,6 @@ class ErrorEntity # @return [Array] Inner errors. attr_accessor :inner_errors - # @return [String] Basic error code. - attr_accessor :code - - # @return [String] Any details of the error. - attr_accessor :message - # # Mapper for ErrorEntity class as Ruby Hash. @@ -44,6 +44,20 @@ def self.mapper() name: 'Composite', class_name: 'ErrorEntity', model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + }, extended_code: { required: false, serialized_name: 'extendedCode', @@ -86,20 +100,6 @@ def self.mapper() } } } - }, - code: { - required: false, - serialized_name: 'code', - type: { - name: 'String' - } - }, - message: { - required: false, - serialized_name: 'message', - type: { - name: 'String' - } } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/experiments.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/experiments.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb old mode 100755 new mode 100644 index 77e1829848..84963bfef0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb @@ -24,7 +24,8 @@ class FileSystemHttpLogsConfig # 0 or lower means no retention. attr_accessor :retention_in_days - # @return [Boolean] Enabled. + # @return [Boolean] True if configuration is enabled, false if it is + # disabled and null if configuration is not set. attr_accessor :enabled diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/frequency_unit.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/frequency_unit.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region.rb old mode 100755 new mode 100644 index b4978f9349..b64e57f93b --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region.rb @@ -8,7 +8,7 @@ module Models # # Geographical region. # - class GeoRegion < MsRestAzure::Resource + class GeoRegion < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -45,6 +45,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -57,34 +58,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, geo_region_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/geo_region_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/handler_mapping.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/handler_mapping.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding.rb old mode 100755 new mode 100644 index ab974e914f..7b120725d0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding.rb @@ -8,7 +8,7 @@ module Models # # A hostname binding object. # - class HostNameBinding < MsRestAzure::Resource + class HostNameBinding < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -71,6 +71,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -83,34 +84,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, host_name_binding_name: { required: false, serialized_name: 'properties.name', @@ -180,6 +161,7 @@ def self.mapper() }, virtual_ip: { required: false, + read_only: true, serialized_name: 'properties.virtualIP', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hosting_environment_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/http_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/http_logs_config.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection.rb old mode 100755 new mode 100644 index b880ab6712..1493ec2557 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection.rb @@ -9,7 +9,7 @@ module Models # Hybrid Connection contract. This is used to configure a Hybrid # Connection. # - class HybridConnection < MsRestAzure::Resource + class HybridConnection < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -38,6 +38,10 @@ class HybridConnection < MsRestAzure::Resource # normally, use the POST /listKeys API instead. attr_accessor :send_key_value + # @return [String] The suffix for the service bus endpoint. By default + # this is .servicebus.windows.net + attr_accessor :service_bus_suffix + # # Mapper for HybridConnection class as Ruby Hash. @@ -61,6 +65,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -73,34 +78,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, service_bus_namespace: { required: false, serialized_name: 'properties.serviceBusNamespace', @@ -149,6 +134,13 @@ def self.mapper() type: { name: 'String' } + }, + service_bus_suffix: { + required: false, + serialized_name: 'properties.serviceBusSuffix', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb old mode 100755 new mode 100644 index bbc3a3fa09..5eac114f08 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb @@ -9,7 +9,7 @@ module Models # Hybrid Connection key contract. This has the send key name and value for # a Hybrid Connection. # - class HybridConnectionKey < MsRestAzure::Resource + class HybridConnectionKey < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -43,6 +43,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -55,34 +56,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, send_key_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb old mode 100755 new mode 100644 index a9ac0f5e7b..9419139fda --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb @@ -9,7 +9,7 @@ module Models # Hybrid Connection limits contract. This is used to return the plan limits # of Hybrid Connections. # - class HybridConnectionLimits < MsRestAzure::Resource + class HybridConnectionLimits < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -43,6 +43,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -55,34 +56,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, current: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier.rb old mode 100755 new mode 100644 index d6a03f45be..81dbc377a7 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier.rb @@ -8,12 +8,12 @@ module Models # # Identifier. # - class Identifier < MsRestAzure::Resource + class Identifier < MsRestAzure::ProxyOnlyResource include MsRestAzure include MsRest::JSONable - # @return [String] ID. + # @return [String] String representation of the identity. attr_accessor :identifier_id @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -51,34 +52,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, identifier_id: { required: false, serialized_name: 'properties.id', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/identifier_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/key_vault_secret_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/key_vault_secret_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/localizable_string.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/localizable_string.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/log_level.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/log_level.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/managed_pipeline_mode.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/managed_pipeline_mode.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availabilily.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availabilily.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availability.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availability.rb new file mode 100644 index 0000000000..1eb9df156d --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_availability.rb @@ -0,0 +1,56 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class MetricAvailability + + include MsRestAzure + + include MsRest::JSONable + # @return [String] + attr_accessor :time_grain + + # @return [String] + attr_accessor :blob_duration + + + # + # Mapper for MetricAvailability class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'MetricAvailability', + type: { + name: 'Composite', + class_name: 'MetricAvailability', + model_properties: { + time_grain: { + required: false, + serialized_name: 'timeGrain', + type: { + name: 'String' + } + }, + blob_duration: { + required: false, + serialized_name: 'blobDuration', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_definition.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_definition.rb old mode 100755 new mode 100644 index 74d0578610..c5f4e83643 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_definition.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_definition.rb @@ -8,7 +8,7 @@ module Models # # Metadata for a metric. # - class MetricDefinition < MsRestAzure::Resource + class MetricDefinition < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -52,6 +52,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -64,34 +65,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, metric_definition_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_specification.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_specification.rb new file mode 100644 index 0000000000..c28691fdc5 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/metric_specification.rb @@ -0,0 +1,202 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class MetricSpecification + + include MsRestAzure + + include MsRest::JSONable + # @return [String] + attr_accessor :name + + # @return [String] + attr_accessor :display_name + + # @return [String] + attr_accessor :display_description + + # @return [String] + attr_accessor :unit + + # @return [String] + attr_accessor :aggregation_type + + # @return [Boolean] + attr_accessor :supports_instance_level_aggregation + + # @return [Boolean] + attr_accessor :enable_regional_mdm_account + + # @return [String] + attr_accessor :source_mdm_account + + # @return [String] + attr_accessor :source_mdm_namespace + + # @return [String] + attr_accessor :metric_filter_pattern + + # @return [Boolean] + attr_accessor :fill_gap_with_zero + + # @return [Boolean] + attr_accessor :is_internal + + # @return [Array] + attr_accessor :dimensions + + # @return [String] + attr_accessor :category + + # @return [Array] + attr_accessor :availabilities + + + # + # Mapper for MetricSpecification class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'MetricSpecification', + type: { + name: 'Composite', + class_name: 'MetricSpecification', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'displayName', + type: { + name: 'String' + } + }, + display_description: { + required: false, + serialized_name: 'displayDescription', + type: { + name: 'String' + } + }, + unit: { + required: false, + serialized_name: 'unit', + type: { + name: 'String' + } + }, + aggregation_type: { + required: false, + serialized_name: 'aggregationType', + type: { + name: 'String' + } + }, + supports_instance_level_aggregation: { + required: false, + serialized_name: 'supportsInstanceLevelAggregation', + type: { + name: 'Boolean' + } + }, + enable_regional_mdm_account: { + required: false, + serialized_name: 'enableRegionalMdmAccount', + type: { + name: 'Boolean' + } + }, + source_mdm_account: { + required: false, + serialized_name: 'sourceMdmAccount', + type: { + name: 'String' + } + }, + source_mdm_namespace: { + required: false, + serialized_name: 'sourceMdmNamespace', + type: { + name: 'String' + } + }, + metric_filter_pattern: { + required: false, + serialized_name: 'metricFilterPattern', + type: { + name: 'String' + } + }, + fill_gap_with_zero: { + required: false, + serialized_name: 'fillGapWithZero', + type: { + name: 'Boolean' + } + }, + is_internal: { + required: false, + serialized_name: 'isInternal', + type: { + name: 'Boolean' + } + }, + dimensions: { + required: false, + serialized_name: 'dimensions', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DimensionElementType', + type: { + name: 'Composite', + class_name: 'Dimension' + } + } + } + }, + category: { + required: false, + serialized_name: 'category', + type: { + name: 'String' + } + }, + availabilities: { + required: false, + serialized_name: 'availabilities', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'MetricAvailabilityElementType', + type: { + name: 'Composite', + class_name: 'MetricAvailability' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb old mode 100755 new mode 100644 index ee46a4db9d..134a53f65a --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb @@ -8,15 +8,18 @@ module Models # # MySQL migration request. # - class MigrateMySqlRequest < MsRestAzure::Resource + class MigrateMySqlRequest < MsRestAzure::ProxyOnlyResource include MsRestAzure include MsRest::JSONable - # @return [String] Connection string to the remote MySQL database to - # which data should be migrated. + # @return [String] Connection string to the remote MySQL database. attr_accessor :connection_string + # @return [MySqlMigrationType] The type of migration operation to be + # done. Possible values include: 'LocalToRemote', 'RemoteToLocal' + attr_accessor :migration_type + # # Mapper for MigrateMySqlRequest class as Ruby Hash. @@ -40,6 +43,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -52,39 +56,27 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { + connection_string: { required: false, - serialized_name: 'tags', + serialized_name: 'properties.connectionString', type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } + name: 'String' } }, - connection_string: { + migration_type: { required: false, - serialized_name: 'properties.connectionString', + serialized_name: 'properties.migrationType', type: { - name: 'String' + name: 'Enum', + module: 'MySqlMigrationType' } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_status.rb old mode 100755 new mode 100644 index 382ed0c2d3..dc52e936a3 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/migrate_my_sql_status.rb @@ -8,7 +8,7 @@ module Models # # MySQL migration status. # - class MigrateMySqlStatus < MsRestAzure::Resource + class MigrateMySqlStatus < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -46,6 +46,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -58,34 +59,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, migration_operation_status: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy.rb new file mode 100644 index 0000000000..4317af8d16 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy.rb @@ -0,0 +1,148 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # MSDeploy ARM PUT information + # + class MSDeploy < MsRestAzure::ProxyOnlyResource + + include MsRestAzure + + include MsRest::JSONable + # @return [String] Package URI + attr_accessor :package_uri + + # @return [String] SQL Connection String + attr_accessor :connection_string + + # @return [String] Database Type + attr_accessor :db_type + + # @return [String] URI of MSDeploy Parameters file. Must not be set if + # SetParameters is used. + attr_accessor :set_parameters_xml_file_uri + + # @return [Hash{String => String}] MSDeploy Parameters. Must not be set + # if SetParametersXmlFileUri is used. + attr_accessor :set_parameters + + # @return [Boolean] Controls whether the MSDeploy operation skips the + # AppData directory. If set to true, the existing AppData directory on + # the destination will not be deleted and overwritten. + attr_accessor :skip_app_data + + # @return [Boolean] Sets the AppOffline rule while the MSDeploy operation + # executes. + attr_accessor :app_offline + + + # + # Mapper for MSDeploy class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'MSDeploy', + type: { + name: 'Composite', + class_name: 'MSDeploy', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + package_uri: { + required: false, + serialized_name: 'properties.packageUri', + type: { + name: 'String' + } + }, + connection_string: { + required: false, + serialized_name: 'properties.connectionString', + type: { + name: 'String' + } + }, + db_type: { + required: false, + serialized_name: 'properties.dbType', + type: { + name: 'String' + } + }, + set_parameters_xml_file_uri: { + required: false, + serialized_name: 'properties.setParametersXmlFileUri', + type: { + name: 'String' + } + }, + set_parameters: { + required: false, + serialized_name: 'properties.setParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + skip_app_data: { + required: false, + serialized_name: 'properties.skipAppData', + type: { + name: 'Boolean' + } + }, + app_offline: { + required: false, + serialized_name: 'properties.appOffline', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log.rb new file mode 100644 index 0000000000..6d2fe4ac99 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log.rb @@ -0,0 +1,85 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # MSDeploy log + # + class MSDeployLog < MsRestAzure::ProxyOnlyResource + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] List of log entry messages + attr_accessor :entries + + + # + # Mapper for MSDeployLog class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'MSDeployLog', + type: { + name: 'Composite', + class_name: 'MSDeployLog', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + entries: { + required: false, + read_only: true, + serialized_name: 'properties.entries', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'MSDeployLogEntryElementType', + type: { + name: 'Composite', + class_name: 'MSDeployLogEntry' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry.rb new file mode 100644 index 0000000000..7e256ebb68 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry.rb @@ -0,0 +1,70 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # MSDeploy log entry + # + class MSDeployLogEntry + + include MsRestAzure + + include MsRest::JSONable + # @return [DateTime] Timestamp of log entry + attr_accessor :time + + # @return [MSDeployLogEntryType] Log entry type. Possible values include: + # 'Message', 'Warning', 'Error' + attr_accessor :type + + # @return [String] Log entry message + attr_accessor :message + + + # + # Mapper for MSDeployLogEntry class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'MSDeployLogEntry', + type: { + name: 'Composite', + class_name: 'MSDeployLogEntry', + model_properties: { + time: { + required: false, + read_only: true, + serialized_name: 'time', + type: { + name: 'DateTime' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'Enum', + module: 'MSDeployLogEntryType' + } + }, + message: { + required: false, + read_only: true, + serialized_name: 'message', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb new file mode 100644 index 0000000000..a672823e9c --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Defines values for MSDeployLogEntryType + # + module MSDeployLogEntryType + Message = "Message" + Warning = "Warning" + Error = "Error" + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb new file mode 100644 index 0000000000..8f376150a0 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb @@ -0,0 +1,19 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Defines values for MSDeployProvisioningState + # + module MSDeployProvisioningState + Accepted = "accepted" + Running = "running" + Succeeded = "succeeded" + Failed = "failed" + Canceled = "canceled" + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_status.rb new file mode 100644 index 0000000000..a394f832d8 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/msdeploy_status.rb @@ -0,0 +1,123 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # MSDeploy ARM response + # + class MSDeployStatus < MsRestAzure::ProxyOnlyResource + + include MsRestAzure + + include MsRest::JSONable + # @return [String] Username of deployer + attr_accessor :deployer + + # @return [MSDeployProvisioningState] Provisioning state. Possible values + # include: 'accepted', 'running', 'succeeded', 'failed', 'canceled' + attr_accessor :provisioning_state + + # @return [DateTime] Start time of deploy operation + attr_accessor :start_time + + # @return [DateTime] End time of deploy operation + attr_accessor :end_time + + # @return [Boolean] Whether the deployment operation has completed + attr_accessor :complete + + + # + # Mapper for MSDeployStatus class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'MSDeployStatus', + type: { + name: 'Composite', + class_name: 'MSDeployStatus', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + deployer: { + required: false, + read_only: true, + serialized_name: 'properties.deployer', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'Enum', + module: 'MSDeployProvisioningState' + } + }, + start_time: { + required: false, + read_only: true, + serialized_name: 'properties.startTime', + type: { + name: 'DateTime' + } + }, + end_time: { + required: false, + read_only: true, + serialized_name: 'properties.endTime', + type: { + name: 'DateTime' + } + }, + complete: { + required: false, + read_only: true, + serialized_name: 'properties.complete', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/my_sql_migration_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/my_sql_migration_type.rb new file mode 100644 index 0000000000..e37e69ada1 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/my_sql_migration_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Defines values for MySqlMigrationType + # + module MySqlMigrationType + LocalToRemote = "LocalToRemote" + RemoteToLocal = "RemoteToLocal" + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_identifier.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_identifier.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_value_pair.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/name_value_pair.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_features.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_features.rb old mode 100755 new mode 100644 index 6070172681..9742110f63 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_features.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/network_features.rb @@ -9,7 +9,7 @@ module Models # Full view of network features for an app (presently VNET integration and # Hybrid Connections). # - class NetworkFeatures < MsRestAzure::Resource + class NetworkFeatures < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -51,6 +51,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -63,34 +64,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, virtual_network_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/notification_level.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/notification_level.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/operation.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/operation.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/operation_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/operation_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_response.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_response.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb old mode 100755 new mode 100644 index 44c040c7b8..59bcd5fb95 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb @@ -22,6 +22,9 @@ class PerfMonSample # @return [Float] Value of counter at a certain time. attr_accessor :value + # @return [Integer] Core Count of worker. Not a data member + attr_accessor :core_count + # # Mapper for PerfMonSample class as Ruby Hash. @@ -55,6 +58,13 @@ def self.mapper() type: { name: 'Double' } + }, + core_count: { + required: false, + serialized_name: 'coreCount', + type: { + name: 'Number' + } } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_set.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/perf_mon_set.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on.rb old mode 100755 new mode 100644 index f332db7d6b..72d1bcc5ae --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on.rb @@ -60,6 +60,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -81,6 +82,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb old mode 100755 new mode 100644 index c459468d1d..0e1c00432f --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb @@ -8,7 +8,7 @@ module Models # # Premier add-on offer. # - class PremierAddOnOffer < MsRestAzure::Resource + class PremierAddOnOffer < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -72,6 +72,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -84,34 +85,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, sku: { required: false, serialized_name: 'properties.sku', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/provisioning_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/provisioning_state.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/proxy_only_resource.rb similarity index 62% rename from management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb rename to management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/proxy_only_resource.rb index 456528a804..080812dffe 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/proxy_only_resource.rb @@ -3,37 +3,45 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. -module Azure::ARM::Network +module Azure::ARM::Web module Models # - # Private access service. + # Azure proxy only resource. This resource is not tracked by Azure Resource + # Manager. # - class PrivateAccessServiceResult < MsRestAzure::SubResource + class ProxyOnlyResource include MsRestAzure include MsRest::JSONable - # @return [String] Name of the private access value. + # @return [String] Resource Id. + attr_accessor :id + + # @return [String] Resource Name. attr_accessor :name - # @return [String] Type of the private access value. + # @return [String] Kind of resource. + attr_accessor :kind + + # @return [String] Resource type. attr_accessor :type # - # Mapper for PrivateAccessServiceResult class as Ruby Hash. + # Mapper for ProxyOnlyResource class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, - serialized_name: 'PrivateAccessServiceResult', + serialized_name: 'ProxyOnlyResource', type: { name: 'Composite', - class_name: 'PrivateAccessServiceResult', + class_name: 'ProxyOnlyResource', model_properties: { id: { required: false, + read_only: true, serialized_name: 'id', type: { name: 'String' @@ -47,6 +55,13 @@ def self.mapper() name: 'String' } }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, type: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate.rb new file mode 100644 index 0000000000..a5fb51953f --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate.rb @@ -0,0 +1,99 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Public certificate object + # + class PublicCertificate < MsRestAzure::ProxyOnlyResource + + include MsRestAzure + + include MsRest::JSONable + # @return [String] Public Certificate byte array + attr_accessor :blob + + # @return [PublicCertificateLocation] Public Certificate Location. + # Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + attr_accessor :public_certificate_location + + # @return [String] Certificate Thumbprint + attr_accessor :thumbprint + + + # + # Mapper for PublicCertificate class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PublicCertificate', + type: { + name: 'Composite', + class_name: 'PublicCertificate', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + blob: { + required: false, + serialized_name: 'properties.blob', + type: { + name: 'String' + } + }, + public_certificate_location: { + required: false, + serialized_name: 'properties.publicCertificateLocation', + type: { + name: 'Enum', + module: 'PublicCertificateLocation' + } + }, + thumbprint: { + required: false, + read_only: true, + serialized_name: 'properties.thumbprint', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_collection.rb new file mode 100644 index 0000000000..86329937fe --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Collection of public certificates + # + class PublicCertificateCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Collection of resources. + attr_accessor :value + + # @return [String] Link to next page of resources. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [PublicCertificateCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for PublicCertificateCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PublicCertificateCollection', + type: { + name: 'Composite', + class_name: 'PublicCertificateCollection', + model_properties: { + value: { + required: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PublicCertificateElementType', + type: { + name: 'Composite', + class_name: 'PublicCertificate' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_location.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_location.rb new file mode 100644 index 0000000000..3e634479e7 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/public_certificate_location.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Defines values for PublicCertificateLocation + # + module PublicCertificateLocation + CurrentUserMy = "CurrentUserMy" + LocalMachineMy = "LocalMachineMy" + Unknown = "Unknown" + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/push_settings.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/push_settings.rb old mode 100755 new mode 100644 index dd82f0e402..a30f981fb0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/push_settings.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/push_settings.rb @@ -8,7 +8,7 @@ module Models # # Push settings for the App. # - class PushSettings + class PushSettings < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -34,6 +34,27 @@ class PushSettings # registration endpoint. attr_accessor :dynamic_tags_json + # @return [Boolean] Gets or sets a flag indicating whether the Push + # endpoint is enabled. + attr_accessor :is_push_enabled1 + + # @return [String] Gets or sets a JSON string containing a list of tags + # that are whitelisted for use by the push registration endpoint. + attr_accessor :tag_whitelist_json1 + + # @return [String] Gets or sets a JSON string containing a list of tags + # that require user authentication to be used in the push registration + # endpoint. + # Tags can consist of alphanumeric characters and the following: + # '_', '@', '#', '.', ':', '-'. + # Validation should be performed at the PushRequestHandler. + attr_accessor :tags_requiring_auth1 + + # @return [String] Gets or sets a JSON string containing a list of + # dynamic tags that will be evaluated from user claims in the push + # registration endpoint. + attr_accessor :dynamic_tags_json1 + # # Mapper for PushSettings class as Ruby Hash. @@ -47,6 +68,37 @@ def self.mapper() name: 'Composite', class_name: 'PushSettings', model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, is_push_enabled: { required: true, serialized_name: 'isPushEnabled', @@ -74,6 +126,34 @@ def self.mapper() type: { name: 'String' } + }, + is_push_enabled1: { + required: false, + serialized_name: 'properties.isPushEnabled', + type: { + name: 'Boolean' + } + }, + tag_whitelist_json1: { + required: false, + serialized_name: 'properties.tagWhitelistJson', + type: { + name: 'String' + } + }, + tags_requiring_auth1: { + required: false, + serialized_name: 'properties.tagsRequiringAuth', + type: { + name: 'String' + } + }, + dynamic_tags_json1: { + required: false, + serialized_name: 'properties.dynamicTagsJson', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recommendation.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recommendation.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recommendation_rule.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recommendation_rule.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recover_response.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recover_response.rb old mode 100755 new mode 100644 index e378baebd2..43184028f2 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recover_response.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/recover_response.rb @@ -40,6 +40,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -61,6 +62,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb old mode 100755 new mode 100644 index 8c3b7f1bd7..20888594d0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb @@ -50,6 +50,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -71,6 +72,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb old mode 100755 new mode 100644 index 38c48a5a1e..3aa8c41f1b --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb @@ -8,7 +8,7 @@ module Models # # Hybrid Connection for an App Service app. # - class RelayServiceConnectionEntity < MsRestAzure::Resource + class RelayServiceConnectionEntity < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -57,6 +57,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -69,34 +70,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, entity_name: { required: false, serialized_name: 'properties.entityName', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb old mode 100755 new mode 100644 index 6b4d343bd2..e9e5e41c14 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb @@ -46,6 +46,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -67,6 +68,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource.rb old mode 100755 new mode 100644 index 5f4dfa292f..0d43d12048 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource.rb @@ -6,7 +6,7 @@ module Azure::ARM::Web module Models # - # Azure resource. + # Azure resource. This resource is tracked in Azure Resource Manager # class Resource < MsRestAzure::Resource @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -60,6 +61,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb old mode 100755 new mode 100644 index dac5ed9a81..a7b0a4101e --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb @@ -8,7 +8,7 @@ module Models # # Metadata for the metrics. # - class ResourceMetricDefinition < MsRestAzure::Resource + class ResourceMetricDefinition < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -58,6 +58,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -70,34 +71,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, resource_metric_definition_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_name.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_name.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_property.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_property.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_value.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_metric_value.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_name_availability.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_name_availability.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_scope_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_scope_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_request.rb old mode 100755 new mode 100644 index 9294cb7392..4f302cedc3 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_request.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_request.rb @@ -8,7 +8,7 @@ module Models # # Description of a restore request. # - class RestoreRequest < MsRestAzure::Resource + class RestoreRequest < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -39,8 +39,13 @@ class RestoreRequest < MsRestAzure::Resource # conflicts during the operation. Default value: false . attr_accessor :ignore_conflicting_host_names + # @return [Boolean] Ignore the databases and only restore the site + # content. Default value: false . + attr_accessor :ignore_databases + # @return [BackupRestoreOperationType] Operation type. Possible values - # include: 'Default', 'Clone', 'Relocation'. Default value: 'Default' . + # include: 'Default', 'Clone', 'Relocation', 'Snapshot'. Default value: + # 'Default' . attr_accessor :operation_type # @return [Boolean] true if SiteConfig.ConnectionStrings @@ -74,6 +79,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -86,34 +92,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, storage_account_url: { required: false, serialized_name: 'properties.storageAccountUrl', @@ -165,6 +151,14 @@ def self.mapper() name: 'Boolean' } }, + ignore_databases: { + required: false, + serialized_name: 'properties.ignoreDatabases', + default_value: false, + type: { + name: 'Boolean' + } + }, operation_type: { required: false, serialized_name: 'properties.operationType', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_response.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_response.rb old mode 100755 new mode 100644 index 50e603f94f..7a72a68023 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_response.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/restore_response.rb @@ -8,7 +8,7 @@ module Models # # Response for an app restore request. # - class RestoreResponse < MsRestAzure::Resource + class RestoreResponse < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -40,6 +40,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -52,34 +53,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, operation_id: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/route_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/route_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/scm_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/scm_type.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/service_specification.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/service_specification.rb new file mode 100644 index 0000000000..6604b76098 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/service_specification.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Model object. + # + # + class ServiceSpecification + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] + attr_accessor :metric_specifications + + + # + # Mapper for ServiceSpecification class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ServiceSpecification', + type: { + name: 'Composite', + class_name: 'ServiceSpecification', + model_properties: { + metric_specifications: { + required: false, + serialized_name: 'metricSpecifications', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'MetricSpecificationElementType', + type: { + name: 'Composite', + class_name: 'MetricSpecification' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site.rb old mode 100755 new mode 100644 index a3ffe2d9cb..4c9fe5f1a0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site.rb @@ -64,9 +64,6 @@ class Site < MsRestAzure::Resource # the app. Read-only. attr_accessor :traffic_manager_host_names - # @return [Boolean] Indicates whether app is deployed as a premium app. - attr_accessor :premium_app_deployed - # @return [Boolean] true to stop SCM (KUDU) site when the # app is stopped; otherwise, false. The default is # false. Default value: false . @@ -80,13 +77,6 @@ class Site < MsRestAzure::Resource # the app. attr_accessor :hosting_environment_profile - # @return [String] Micro services like apps, logic apps. Default value: - # 'WebSites' . - attr_accessor :micro_service - - # @return [String] Name of gateway app associated with the app. - attr_accessor :gateway_site_name - # @return [Boolean] true to enable client affinity; # false to stop sending session affinity cookies, which # route client requests in the same session to the same instance. Default @@ -142,6 +132,16 @@ class Site < MsRestAzure::Resource # operation. attr_accessor :slot_swap_status + # @return [Boolean] Indicates whether app is deployed as a premium app. + attr_accessor :premium_app_deployed + + # @return [String] Micro services like apps, logic apps. Default value: + # 'WebSites' . + attr_accessor :micro_service + + # @return [String] Name of gateway app associated with the app. + attr_accessor :gateway_site_name + # # Mapper for Site class as Ruby Hash. @@ -165,6 +165,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -186,6 +187,7 @@ def self.mapper() }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' @@ -337,14 +339,6 @@ def self.mapper() } } }, - premium_app_deployed: { - required: false, - read_only: true, - serialized_name: 'properties.premiumAppDeployed', - type: { - name: 'Boolean' - } - }, scm_site_also_stopped: { required: false, serialized_name: 'properties.scmSiteAlsoStopped', @@ -369,21 +363,6 @@ def self.mapper() class_name: 'HostingEnvironmentProfile' } }, - micro_service: { - required: false, - serialized_name: 'properties.microService', - default_value: 'WebSites', - type: { - name: 'String' - } - }, - gateway_site_name: { - required: false, - serialized_name: 'properties.gatewaySiteName', - type: { - name: 'String' - } - }, client_affinity_enabled: { required: false, serialized_name: 'properties.clientAffinityEnabled', @@ -483,6 +462,29 @@ def self.mapper() name: 'Composite', class_name: 'SlotSwapStatus' } + }, + premium_app_deployed: { + required: false, + read_only: true, + serialized_name: 'properties.premiumAppDeployed', + type: { + name: 'Boolean' + } + }, + micro_service: { + required: false, + serialized_name: 'properties.microService', + default_value: 'WebSites', + type: { + name: 'String' + } + }, + gateway_site_name: { + required: false, + serialized_name: 'properties.gatewaySiteName', + type: { + name: 'String' + } } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_auth_settings.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_auth_settings.rb old mode 100755 new mode 100644 index 0c4ac3326e..468a0141fa --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_auth_settings.rb @@ -9,7 +9,7 @@ module Models # Configuration settings for the Azure App Service Authentication / # Authorization feature. # - class SiteAuthSettings < MsRestAzure::Resource + class SiteAuthSettings < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -197,6 +197,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -209,34 +210,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, enabled: { required: false, serialized_name: 'properties.enabled', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_availability_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_availability_state.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_cloneability.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_cloneability.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource.rb old mode 100755 new mode 100644 index 2af2b7d454..c150f89c80 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource.rb @@ -8,7 +8,7 @@ module Models # # Web app configuration ARM resource. # - class SiteConfigResource < MsRestAzure::Resource + class SiteConfigResource < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -181,6 +181,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -193,34 +194,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, number_of_workers: { required: false, serialized_name: 'properties.numberOfWorkers', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_config_resource_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb old mode 100755 new mode 100644 index 7bca650451..8b0d0ea5c2 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb @@ -8,7 +8,7 @@ module Models # # A snapshot of a web app configuration. # - class SiteConfigurationSnapshotInfo < MsRestAzure::Resource + class SiteConfigurationSnapshotInfo < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -42,6 +42,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -54,34 +55,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, time: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_instance.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_instance.rb old mode 100755 new mode 100644 index 9454aa12a1..a1c333c4bd --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_instance.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_instance.rb @@ -8,7 +8,7 @@ module Models # # Instance of an app. # - class SiteInstance < MsRestAzure::Resource + class SiteInstance < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -51,34 +52,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, site_instance_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_limits.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_limits.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_load_balancing.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_load_balancing.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_logs_config.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_logs_config.rb old mode 100755 new mode 100644 index 4dfd47e574..4d4df1fabf --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_logs_config.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_logs_config.rb @@ -8,7 +8,7 @@ module Models # # Configuration of App Service site logs. # - class SiteLogsConfig < MsRestAzure::Resource + class SiteLogsConfig < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -48,6 +48,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -60,34 +61,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, application_logs: { required: false, serialized_name: 'properties.applicationLogs', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_machine_key.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_machine_key.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb old mode 100755 new mode 100644 index 34ce470603..25618b12c9 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb @@ -8,7 +8,7 @@ module Models # # Used for getting PHP error logging flag. # - class SitePhpErrorLogFlag < MsRestAzure::Resource + class SitePhpErrorLogFlag < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -48,6 +48,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -60,34 +61,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, local_log_errors: { required: false, serialized_name: 'properties.localLogErrors', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_seal.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_seal.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_seal_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_seal_request.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_source_control.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_source_control.rb old mode 100755 new mode 100644 index c8026985e2..bc44b598a3 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_source_control.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/site_source_control.rb @@ -8,7 +8,7 @@ module Models # # Source control configuration for an app. # - class SiteSourceControl < MsRestAzure::Resource + class SiteSourceControl < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -55,6 +55,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -67,34 +68,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, repo_url: { required: false, serialized_name: 'properties.repoUrl', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_capacity.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_capacity.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_description.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_description.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_info.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_info.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_info_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_info_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_infos.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_infos.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_name.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/sku_name.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb old mode 100755 new mode 100644 index 2cfbe3c1c2..ca1bdefcf1 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb @@ -8,7 +8,7 @@ module Models # # Slot Config names azure resource. # - class SlotConfigNamesResource < MsRestAzure::Resource + class SlotConfigNamesResource < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -42,6 +42,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -54,34 +55,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, connection_string_names: { required: false, serialized_name: 'properties.connectionStringNames', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference.rb old mode 100755 new mode 100644 index 5de32d0f52..82ee72f19d --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference.rb @@ -8,7 +8,7 @@ module Models # # A setting difference between two deployment slots of an app. # - class SlotDifference < MsRestAzure::Resource + class SlotDifference < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -59,6 +59,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -71,34 +72,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, slot_difference_type: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_swap_status.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slot_swap_status.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot.rb old mode 100755 new mode 100644 index 9539c708ec..bef456e3b1 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot.rb @@ -8,7 +8,7 @@ module Models # # A snapshot of an app. # - class Snapshot < MsRestAzure::Resource + class Snapshot < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -51,34 +52,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, time: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_request.rb new file mode 100644 index 0000000000..7eb04ca581 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_request.rb @@ -0,0 +1,111 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Details about app recovery operation. + # + class SnapshotRecoveryRequest < MsRestAzure::ProxyOnlyResource + + include MsRestAzure + + include MsRest::JSONable + # @return [DateTime] Point in time in which the app recovery should be + # attempted. + attr_accessor :snapshot_time + + # @return [SnapshotRecoveryTarget] Specifies the web app that snapshot + # contents will be written to. + attr_accessor :recovery_target + + # @return [Boolean] true if the recovery operation can + # overwrite source app; otherwise, false. + attr_accessor :overwrite + + # @return [Boolean] Site configuration, in addition to content, will be + # reverted if this is true. + attr_accessor :recover_configuration + + + # + # Mapper for SnapshotRecoveryRequest class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SnapshotRecoveryRequest', + type: { + name: 'Composite', + class_name: 'SnapshotRecoveryRequest', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + snapshot_time: { + required: false, + serialized_name: 'properties.snapshotTime', + type: { + name: 'DateTime' + } + }, + recovery_target: { + required: false, + serialized_name: 'properties.recoveryTarget', + type: { + name: 'Composite', + class_name: 'SnapshotRecoveryTarget' + } + }, + overwrite: { + required: false, + serialized_name: 'properties.overwrite', + type: { + name: 'Boolean' + } + }, + recover_configuration: { + required: false, + serialized_name: 'properties.recoverConfiguration', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_target.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_target.rb new file mode 100644 index 0000000000..3d0471f8bb --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/snapshot_recovery_target.rb @@ -0,0 +1,60 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Specifies the web app that snapshot contents will be written to. + # + class SnapshotRecoveryTarget + + include MsRestAzure + + include MsRest::JSONable + # @return [String] Geographical location of the target web app, e.g. + # SouthEastAsia, SouthCentralUS + attr_accessor :location + + # @return [String] ARM resource ID of the target app. + # /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} + # for production slots and + # /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} + # for other slots. + attr_accessor :id + + + # + # Mapper for SnapshotRecoveryTarget class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SnapshotRecoveryTarget', + type: { + name: 'Composite', + class_name: 'SnapshotRecoveryTarget', + model_properties: { + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control.rb old mode 100755 new mode 100644 index 19b35330af..98882133a4 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control.rb @@ -8,7 +8,7 @@ module Models # # The source control OAuth token. # - class SourceControl < MsRestAzure::Resource + class SourceControl < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -51,6 +51,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -63,34 +64,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, source_control_name: { required: false, serialized_name: 'properties.name', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/source_control_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ssl_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/ssl_state.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/stamp_capacity.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/stamp_capacity.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/status_options.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/status_options.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_options.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_options.rb old mode 100755 new mode 100644 index f0b043afd4..b287b17b15 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_options.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_options.rb @@ -8,7 +8,7 @@ module Models # # Options for app content migration. # - class StorageMigrationOptions < MsRestAzure::Resource + class StorageMigrationOptions < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -51,6 +51,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -63,34 +64,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, azurefiles_connection_string: { required: false, serialized_name: 'properties.azurefilesConnectionString', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_response.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_response.rb old mode 100755 new mode 100644 index 9c8620d690..fa92f86bbf --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/storage_migration_response.rb @@ -8,7 +8,7 @@ module Models # # Response for a migration of app content request. # - class StorageMigrationResponse < MsRestAzure::Resource + class StorageMigrationResponse < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -40,6 +40,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -52,34 +53,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, operation_id: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/string_dictionary.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/string_dictionary.rb old mode 100755 new mode 100644 index a4bc740378..9fbae777d4 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/string_dictionary.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/string_dictionary.rb @@ -8,7 +8,7 @@ module Models # # String dictionary resource. # - class StringDictionary < MsRestAzure::Resource + class StringDictionary < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -39,6 +39,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -51,34 +52,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, properties: { required: false, serialized_name: 'properties', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain.rb old mode 100755 new mode 100644 index bb7cf58f0f..84dd2193c0 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain.rb @@ -8,7 +8,7 @@ module Models # # A top level domain object. # - class TopLevelDomain < MsRestAzure::Resource + class TopLevelDomain < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -43,6 +43,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -55,34 +56,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, domain_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/unauthenticated_client_action.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/unauthenticated_client_action.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage.rb old mode 100755 new mode 100644 index 67a1e3756e..4a15311a93 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage.rb @@ -8,7 +8,7 @@ module Models # # Usage of the quota resource. # - class Usage < MsRestAzure::Resource + class Usage < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -64,6 +64,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -76,34 +77,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, display_name: { required: false, read_only: true, diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/usage_state.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/user.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/user.rb old mode 100755 new mode 100644 index 99cf3dc3d2..89b75f87f6 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/user.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/user.rb @@ -8,7 +8,7 @@ module Models # # User crendentials used for publishing activity. # - class User < MsRestAzure::Resource + class User < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -51,6 +51,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -63,34 +64,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, user_name: { required: false, serialized_name: 'properties.name', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_request.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_request.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_resource_types.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_resource_types.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_response.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_response.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_response_error.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/validate_response_error.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_application.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_application.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_directory.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_directory.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_gateway.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_gateway.rb old mode 100755 new mode 100644 index 610cf06f5b..76cd363fa5 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_gateway.rb @@ -9,7 +9,7 @@ module Models # The Virtual Network gateway contract. This is used to give the Virtual # Network gateway access to the VPN package. # - class VnetGateway < MsRestAzure::Resource + class VnetGateway < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -43,6 +43,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -55,34 +56,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, vnet_name: { required: false, serialized_name: 'properties.vnetName', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_info.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_info.rb old mode 100755 new mode 100644 index 038b45a8fe..d280365c73 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_info.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_info.rb @@ -8,7 +8,7 @@ module Models # # Virtual Network information contract. # - class VnetInfo + class VnetInfo < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -49,9 +49,40 @@ def self.mapper() name: 'Composite', class_name: 'VnetInfo', model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + kind: { + required: false, + serialized_name: 'kind', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, vnet_resource_id: { required: false, - serialized_name: 'vnetResourceId', + serialized_name: 'properties.vnetResourceId', type: { name: 'String' } @@ -59,14 +90,14 @@ def self.mapper() cert_thumbprint: { required: false, read_only: true, - serialized_name: 'certThumbprint', + serialized_name: 'properties.certThumbprint', type: { name: 'String' } }, cert_blob: { required: false, - serialized_name: 'certBlob', + serialized_name: 'properties.certBlob', type: { name: 'String' } @@ -74,7 +105,7 @@ def self.mapper() routes: { required: false, read_only: true, - serialized_name: 'routes', + serialized_name: 'properties.routes', type: { name: 'Sequence', element: { @@ -90,14 +121,14 @@ def self.mapper() resync_required: { required: false, read_only: true, - serialized_name: 'resyncRequired', + serialized_name: 'properties.resyncRequired', type: { name: 'Boolean' } }, dns_servers: { required: false, - serialized_name: 'dnsServers', + serialized_name: 'properties.dnsServers', type: { name: 'String' } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_route.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_route.rb old mode 100755 new mode 100644 index 5a4438d3e7..5175ed3f43 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_route.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/vnet_route.rb @@ -9,7 +9,7 @@ module Models # Virtual Network route contract used to pass routing information for a # Virtual Network. # - class VnetRoute < MsRestAzure::Resource + class VnetRoute < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -61,6 +61,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -73,34 +74,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, vnet_route_name: { required: false, serialized_name: 'properties.name', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/web_app_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/web_app_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/web_app_instance_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/web_app_instance_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_resource.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_resource.rb old mode 100755 new mode 100644 index d8c60c0efe..dc2546611b --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_resource.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_pool_resource.rb @@ -8,7 +8,7 @@ module Models # # Worker pool of an App Service Environment ARM resource. # - class WorkerPoolResource < MsRestAzure::Resource + class WorkerPoolResource < MsRestAzure::ProxyOnlyResource include MsRestAzure @@ -56,6 +56,7 @@ def self.mapper() }, name: { required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' @@ -68,34 +69,14 @@ def self.mapper() name: 'String' } }, - location: { - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, type: { required: false, + read_only: true, serialized_name: 'type', type: { name: 'String' } }, - tags: { - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, worker_size_id: { required: false, serialized_name: 'properties.workerSizeId', diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_size_options.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/worker_size_options.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/module_definition.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/module_definition.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/provider.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/provider.rb old mode 100755 new mode 100644 index fcfcf3c969..8d9e180e27 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/provider.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/provider.rb @@ -98,6 +98,81 @@ def get_available_stacks_async(custom_headers = nil) promise.execute end + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_operations(custom_headers = nil) + first_page = list_operations_as_lazy(custom_headers) + first_page.get_all_items + end + + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_operations_with_http_info(custom_headers = nil) + list_operations_async(custom_headers).value! + end + + # + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_operations_async(custom_headers = nil) + api_version = '2016-03-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'providers/Microsoft.Web/operations' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::CsmOperationCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get available application frameworks and their versions # @@ -177,5 +252,104 @@ def get_available_stacks_on_prem_async(custom_headers = nil) promise.execute end + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::CsmOperationCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_operations_next_async(next_page_link, custom_headers) + end + page + end + end + end end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/recommendations.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/recommendations.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/top_level_domains.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/top_level_domains.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/version.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/version.rb old mode 100755 new mode 100644 diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_apps.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_apps.rb old mode 100755 new mode 100644 index e0f6bb81bb..f074acd40d --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_apps.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_apps.rb @@ -5046,54 +5046,54 @@ def update_domain_ownership_identifier_async(resource_group_name, name, domain_o end # - # Get hostname bindings for an app or a deployment slot. + # Invoke the MSDeploy web app extension as pass-through API # - # Get hostname bindings for an app or a deployment slot. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Name of web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [MSDeployStatus] 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) - first_page.get_all_items + def get_msdeploy_status(resource_group_name, name, custom_headers = nil) + response = get_msdeploy_status_async(resource_group_name, name, custom_headers).value! + response.body unless response.nil? end # - # Get hostname bindings for an app or a deployment slot. + # Invoke the MSDeploy web app extension as pass-through API # - # Get hostname bindings for an app or a deployment slot. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Name of web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 get_msdeploy_status_with_http_info(resource_group_name, name, custom_headers = nil) + get_msdeploy_status_async(resource_group_name, name, custom_headers).value! end # - # Get hostname bindings for an app or a deployment slot. + # Invoke the MSDeploy web app extension as pass-through API # - # Get hostname bindings for an app or a deployment slot. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Name of web app # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_host_name_bindings_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, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -5105,7 +5105,7 @@ def list_host_name_bindings_async(resource_group_name, name, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy' request_url = @base_url || @client.base_url @@ -5132,7 +5132,7 @@ def list_host_name_bindings_async(resource_group_name, name, custom_headers = ni if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HostNameBindingCollection.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -5146,60 +5146,104 @@ def list_host_name_bindings_async(resource_group_name, name, custom_headers = ni end # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Invoke the MSDeploy web app extension as pass-through API # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] Name of web app + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HostNameBinding] operation results. + # @return [MSDeployStatus] 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 create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers = nil) + response = create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers).value! response.body unless response.nil? end # - # Get the named hostname binding for an app (or deployment slot, if specified). + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. # - # Get the named hostname binding for an app (or deployment slot, if specified). + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + 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 = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] Name of web app + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_msdeploy_log_with_http_info(resource_group_name, name, custom_headers = nil) + get_msdeploy_log_async(resource_group_name, name, custom_headers).value! end # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Invoke the MSDeploy Log web app extension as pass-through API # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] Name of web app # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_msdeploy_log_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, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5209,13 +5253,13 @@ def get_host_name_binding_async(resource_group_name, name, host_name, custom_hea # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy/log' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -5236,7 +5280,7 @@ def get_host_name_binding_async(resource_group_name, name, host_name, custom_hea if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployLog.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -5250,67 +5294,56 @@ def get_host_name_binding_async(resource_group_name, name, host_name, custom_hea end # - # Creates a hostname binding for an app. + # Fetch a short lived token that can be exchanged for a master key. # - # Creates a hostname binding for an app. + # Fetch a short lived token that can be exchanged for a master key. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. - # @param host_name_binding [HostNameBinding] Binding details. This is the JSON - # representation of a HostNameBinding object. + # @param name [String] Name of web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HostNameBinding] operation results. + # @return [String] 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 get_functions_admin_token(resource_group_name, name, custom_headers = nil) + response = get_functions_admin_token_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end # - # Creates a hostname binding for an app. + # Fetch a short lived token that can be exchanged for a master key. # - # Creates a hostname binding for an app. + # Fetch a short lived token that can be exchanged for a master key. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. - # @param host_name_binding [HostNameBinding] Binding details. This is the JSON - # representation of a HostNameBinding object. + # @param name [String] Name of web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a hostname binding for an app. + # Fetch a short lived token that can be exchanged for a master key. # - # Creates a hostname binding for an app. + # Fetch a short lived token that can be exchanged for a master key. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. - # @param host_name_binding [HostNameBinding] Binding details. This is the JSON - # representation of a HostNameBinding object. + # @param name [String] Name of web app # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'host_name is nil' if host_name.nil? - fail ArgumentError, 'host_name_binding is nil' if host_name_binding.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5320,27 +5353,18 @@ def create_or_update_host_name_binding_async(resource_group_name, name, host_nam # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() - request_content = @client.serialize(request_mapper, host_name_binding) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/admin/token' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -5356,7 +5380,13 @@ def create_or_update_host_name_binding_async(resource_group_name, name, host_nam if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -5370,59 +5400,56 @@ def create_or_update_host_name_binding_async(resource_group_name, name, host_nam end # - # Deletes a hostname binding for an app. + # Get hostname bindings for an app or a deployment slot. # - # Deletes a hostname binding for an app. + # Get hostname bindings for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Array] operation results. # - 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! - nil + 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) + first_page.get_all_items end # - # Deletes a hostname binding for an app. + # Get hostname bindings for an app or a deployment slot. # - # Deletes a hostname binding for an app. + # Get hostname bindings for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Deletes a hostname binding for an app. + # Get hostname bindings for an app or a deployment slot. # - # Deletes a hostname binding for an app. + # Get hostname bindings for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5432,29 +5459,39 @@ def delete_host_name_binding_async(resource_group_name, name, host_name, custom_ # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::HostNameBindingCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -5463,64 +5500,60 @@ def delete_host_name_binding_async(resource_group_name, name, host_name, custom_ end # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Get the named hostname binding for an app (or deployment slot, if specified). # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Get the named hostname binding for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnection] operation results. + # @return [HostNameBinding] 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_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! response.body unless response.nil? end # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Get the named hostname binding for an app (or deployment slot, if specified). # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Get the named hostname binding for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Get the named hostname binding for an app (or deployment slot, if specified). # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Get the named hostname binding for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5530,13 +5563,13 @@ def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -5557,7 +5590,7 @@ def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -5571,71 +5604,67 @@ def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Creates a hostname binding for an app. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. + # @param host_name_binding [HostNameBinding] Binding details. This is the JSON + # representation of a HostNameBinding object. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnection] operation results. + # @return [HostNameBinding] 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_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! response.body unless response.nil? end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Creates a hostname binding for an app. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. + # @param host_name_binding [HostNameBinding] Binding details. This is the JSON + # representation of a HostNameBinding object. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Creates a hostname binding for an app. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. + # @param host_name_binding [HostNameBinding] Binding details. This is the JSON + # representation of a HostNameBinding object. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? + fail ArgumentError, 'host_name is nil' if host_name.nil? + fail ArgumentError, 'host_name_binding is nil' if host_name_binding.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5649,17 +5678,17 @@ def create_or_update_hybrid_connection_async(resource_group_name, name, namespac request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) + request_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() + request_content = @client.serialize(request_mapper, host_name_binding) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -5681,7 +5710,7 @@ def create_or_update_hybrid_connection_async(resource_group_name, name, namespac if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -5695,63 +5724,59 @@ def create_or_update_hybrid_connection_async(resource_group_name, name, namespac end # - # Removes a Hybrid Connection from this site. + # Deletes a hostname binding for an app. # - # Removes a Hybrid Connection from this site. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # 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_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! nil end # - # Removes a Hybrid Connection from this site. + # Deletes a hostname binding for an app. # - # Removes a Hybrid Connection from this site. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Removes a Hybrid Connection from this site. + # Deletes a hostname binding for an app. # - # Removes a Hybrid Connection from this site. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection + # @param name [String] Name of the app. + # @param host_name [String] Hostname in the hostname binding. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5761,13 +5786,13 @@ def delete_hybrid_connection_async(resource_group_name, name, namespace_name, re # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -5778,7 +5803,7 @@ def delete_hybrid_connection_async(resource_group_name, name, namespace_name, re http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -5792,71 +5817,64 @@ def delete_hybrid_connection_async(resource_group_name, name, namespace_name, re end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app # @param namespace_name [String] The namespace for this hybrid connection # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! response.body unless response.nil? end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app # @param namespace_name [String] The namespace for this hybrid connection # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app # @param namespace_name [String] The namespace for this hybrid connection # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5866,14 +5884,6 @@ def update_hybrid_connection_async(resource_group_name, name, namespace_name, re # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url @@ -5882,11 +5892,10 @@ def update_hybrid_connection_async(resource_group_name, name, namespace_name, re middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -5916,64 +5925,71 @@ def update_hybrid_connection_async(resource_group_name, name, namespace_name, re end # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new Hybrid Connection using a Service Bus relay. # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app # @param namespace_name [String] The namespace for this hybrid connection # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnectionKey] operation results. + # @return [HybridConnection] 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 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! response.body unless response.nil? end # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new Hybrid Connection using a Service Bus relay. # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app # @param namespace_name [String] The namespace for this hybrid connection # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new Hybrid Connection using a Service Bus relay. # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app # @param namespace_name [String] The namespace for this hybrid connection # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -5983,7 +5999,15 @@ def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url @@ -5991,10 +6015,11 @@ def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -6010,7 +6035,7 @@ def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnectionKey.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -6024,56 +6049,63 @@ def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, end # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Removes a Hybrid Connection from this site. # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Removes a Hybrid Connection from this site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Removes a Hybrid Connection from this site. # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Removes a Hybrid Connection from this site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Removes a Hybrid Connection from this site. # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Removes a Hybrid Connection from this site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connections_async(resource_group_name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6083,39 +6115,29 @@ def list_hybrid_connections_async(resource_group_name, name, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionRelays' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -6124,62 +6146,71 @@ def list_hybrid_connections_async(resource_group_name, name, custom_headers = ni end # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # Creates a new Hybrid Connection using a Service Bus relay. # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [HybridConnection] 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 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! response.body unless response.nil? end # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # Creates a new Hybrid Connection using a Service Bus relay. # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # Creates a new Hybrid Connection using a Service Bus relay. # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_relay_service_connections_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6189,18 +6220,27 @@ def list_relay_service_connections_async(resource_group_name, name, custom_heade # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response @@ -6216,7 +6256,7 @@ def list_relay_service_connections_async(resource_group_name, name, custom_heade if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -6230,60 +6270,64 @@ def list_relay_service_connections_async(resource_group_name, name, custom_heade end # - # Gets a hybrid connection configuration by its name. + # Gets the send key name and value for a Hybrid Connection. # - # Gets a hybrid connection configuration by its name. + # Gets the send key name and value for a Hybrid Connection. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [HybridConnectionKey] 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 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! response.body unless response.nil? end # - # Gets a hybrid connection configuration by its name. + # Gets the send key name and value for a Hybrid Connection. # - # Gets a hybrid connection configuration by its name. + # Gets the send key name and value for a Hybrid Connection. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets a hybrid connection configuration by its name. + # Gets the send key name and value for a Hybrid Connection. # - # Gets a hybrid connection configuration by its name. + # Gets the send key name and value for a Hybrid Connection. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6293,18 +6337,18 @@ def get_relay_service_connection_async(resource_group_name, name, entity_name, c # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -6320,7 +6364,7 @@ def get_relay_service_connection_async(resource_group_name, name, entity_name, c if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnectionKey.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -6334,73 +6378,56 @@ def get_relay_service_connection_async(resource_group_name, name, entity_name, c end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Retrieves all Service Bus Hybrid Connections used by this Web App. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Retrieves all Service Bus Hybrid Connections used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param name [String] The name of the web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [HybridConnection] 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 list_hybrid_connections(resource_group_name, name, custom_headers = nil) + response = list_hybrid_connections_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Retrieves all Service Bus Hybrid Connections used by this Web App. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Retrieves all Service Bus Hybrid Connections used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param name [String] The name of the web app # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers = nil) + list_hybrid_connections_async(resource_group_name, name, custom_headers).value! end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Retrieves all Service Bus Hybrid Connections used by this Web App. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Retrieves all Service Bus Hybrid Connections used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param name [String] The name of the web app # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'entity_name is nil' if entity_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6410,27 +6437,18 @@ def create_or_update_relay_service_connection_async(resource_group_name, name, e # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionRelays' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -6446,7 +6464,7 @@ def create_or_update_relay_service_connection_async(resource_group_name, name, e if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -6460,59 +6478,62 @@ def create_or_update_relay_service_connection_async(resource_group_name, name, e end # - # Deletes a relay service connection by its name. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # - # Deletes a relay service connection by its name. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [RelayServiceConnectionEntity] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Deletes a relay service connection by its name. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # - # Deletes a relay service connection by its name. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Deletes a relay service connection by its name. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # - # Deletes a relay service connection by its name. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'entity_name is nil' if entity_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6522,29 +6543,39 @@ def delete_relay_service_connection_async(resource_group_name, name, entity_name # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -6553,73 +6584,60 @@ def delete_relay_service_connection_async(resource_group_name, name, entity_name end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Gets a hybrid connection configuration by its name. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Gets a hybrid connection configuration by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param entity_name [String] Name of the hybrid connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! response.body unless response.nil? end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Gets a hybrid connection configuration by its name. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Gets a hybrid connection configuration by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param entity_name [String] Name of the hybrid connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Gets a hybrid connection configuration by its name. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Gets a hybrid connection configuration by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param entity_name [String] Name of the hybrid connection. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'entity_name is nil' if entity_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6629,14 +6647,6 @@ def update_relay_service_connection_async(resource_group_name, name, entity_name # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url @@ -6645,11 +6655,10 @@ def update_relay_service_connection_async(resource_group_name, name, entity_name middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -6679,56 +6688,73 @@ def update_relay_service_connection_async(resource_group_name, name, entity_name end # - # Gets all scale-out instances of an app. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Gets all scale-out instances of an app. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [RelayServiceConnectionEntity] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Gets all scale-out instances of an app. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Gets all scale-out instances of an app. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets all scale-out instances of an app. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Gets all scale-out instances of an app. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_identifiers_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6738,18 +6764,27 @@ def list_instance_identifiers_async(resource_group_name, name, custom_headers = # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -6765,7 +6800,7 @@ def list_instance_identifiers_async(resource_group_name, name, custom_headers = if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::WebAppInstanceCollection.mapper() + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -6779,72 +6814,59 @@ def list_instance_identifiers_async(resource_group_name, name, custom_headers = end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Deletes a relay service connection by its name. # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Deletes a relay service connection by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param instance_id [String] The ID of a specific scaled-out instance. This is - # the value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param entity_name [String] Name of the hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. # - def list_instance_deployments(resource_group_name, name, instance_id, custom_headers = nil) - first_page = list_instance_deployments_as_lazy(resource_group_name, name, instance_id, custom_headers) - first_page.get_all_items + 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! + nil end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Deletes a relay service connection by its name. # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Deletes a relay service connection by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param instance_id [String] The ID of a specific scaled-out instance. This is - # the value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param entity_name [String] Name of the hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_deployments_with_http_info(resource_group_name, name, instance_id, custom_headers = nil) - list_instance_deployments_async(resource_group_name, name, instance_id, 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).value! end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Deletes a relay service connection by its name. # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Deletes a relay service connection by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param instance_id [String] The ID of a specific scaled-out instance. This is - # the value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param entity_name [String] Name of the hybrid connection configuration. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_deployments_async(resource_group_name, name, instance_id, 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, 'name is nil' if name.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6854,39 +6876,29 @@ def list_instance_deployments_async(resource_group_name, name, instance_id, cust # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::DeploymentCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -6895,76 +6907,73 @@ def list_instance_deployments_async(resource_group_name, name, instance_id, cust end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [RelayServiceConnectionEntity] operation results. # - def get_instance_deployment(resource_group_name, name, id, instance_id, custom_headers = nil) - response = get_instance_deployment_async(resource_group_name, name, id, instance_id, 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).value! response.body unless response.nil? end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_deployment_with_http_info(resource_group_name, name, id, instance_id, custom_headers = nil) - get_instance_deployment_async(resource_group_name, name, id, instance_id, 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).value! end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_deployment_async(resource_group_name, name, id, instance_id, 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -6974,18 +6983,27 @@ def get_instance_deployment_async(resource_group_name, name, id, instance_id, cu # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments/{id}' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response @@ -7001,7 +7019,7 @@ def get_instance_deployment_async(resource_group_name, name, id, instance_id, cu if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Deployment.mapper() + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -7015,80 +7033,56 @@ def get_instance_deployment_async(resource_group_name, name, id, instance_id, cu end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets all scale-out instances of an app. # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets all scale-out instances of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" - # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [Array] operation results. # - def create_instance_deployment(resource_group_name, name, id, instance_id, deployment, custom_headers = nil) - response = create_instance_deployment_async(resource_group_name, name, id, instance_id, deployment, custom_headers).value! - response.body unless response.nil? + def list_instance_identifiers(resource_group_name, name, custom_headers = nil) + first_page = list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets all scale-out instances of an app. # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets all scale-out instances of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" - # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_instance_deployment_with_http_info(resource_group_name, name, id, instance_id, deployment, custom_headers = nil) - create_instance_deployment_async(resource_group_name, name, id, instance_id, deployment, 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).value! end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets all scale-out instances of an app. # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets all scale-out instances of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" - # @param deployment [Deployment] Deployment details. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_instance_deployment_async(resource_group_name, name, id, instance_id, deployment, 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? - fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7098,27 +7092,18 @@ def create_instance_deployment_async(resource_group_name, name, id, instance_id, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances' - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::Deployment.mapper() - request_content = @client.serialize(request_mapper, deployment) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments/{id}' - - request_url = @base_url || @client.base_url + request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -7134,7 +7119,7 @@ def create_instance_deployment_async(resource_group_name, name, id, instance_id, if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Deployment.mapper() + result_mapper = Azure::ARM::Web::Models::WebAppInstanceCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -7148,74 +7133,71 @@ def create_instance_deployment_async(resource_group_name, name, id, instance_id, end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET + # @param instance_id [String] The ID of a specific scaled-out instance. This is + # the value of the name property in the JSON response from "GET # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Array] operation results. # - def delete_instance_deployment(resource_group_name, name, id, instance_id, custom_headers = nil) - response = delete_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers).value! - nil + def list_instance_deployments(resource_group_name, name, instance_id, custom_headers = nil) + first_page = list_instance_deployments_as_lazy(resource_group_name, name, instance_id, custom_headers) + first_page.get_all_items end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET + # @param instance_id [String] The ID of a specific scaled-out instance. This is + # the value of the name property in the JSON response from "GET # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_instance_deployment_with_http_info(resource_group_name, name, id, instance_id, custom_headers = nil) - delete_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers).value! + def list_instance_deployments_with_http_info(resource_group_name, name, instance_id, custom_headers = nil) + list_instance_deployments_async(resource_group_name, name, instance_id, custom_headers).value! end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET + # @param instance_id [String] The ID of a specific scaled-out instance. This is + # the value of the name property in the JSON response from "GET # api/sites/{siteName}/instances" # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers = nil) + def list_instance_deployments_async(resource_group_name, name, instance_id, 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, 'id is nil' if id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7226,29 +7208,39 @@ def delete_instance_deployment_async(resource_group_name, name, id, instance_id, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::DeploymentCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -7257,56 +7249,76 @@ def delete_instance_deployment_async(resource_group_name, name, id, instance_id, end # - # Shows whether an app can be cloned to another resource group or subscription. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Shows whether an app can be cloned to another resource group or subscription. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteCloneability] operation results. + # @return [Deployment] operation results. # - def is_cloneable(resource_group_name, name, custom_headers = nil) - response = is_cloneable_async(resource_group_name, name, custom_headers).value! + def get_instance_deployment(resource_group_name, name, id, instance_id, custom_headers = nil) + response = get_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers).value! response.body unless response.nil? end # - # Shows whether an app can be cloned to another resource group or subscription. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Shows whether an app can be cloned to another resource group or subscription. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 get_instance_deployment_with_http_info(resource_group_name, name, id, instance_id, custom_headers = nil) + get_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers).value! end # - # Shows whether an app can be cloned to another resource group or subscription. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Shows whether an app can be cloned to another resource group or subscription. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def is_cloneable_async(resource_group_name, name, custom_headers = nil) + def get_instance_deployment_async(resource_group_name, name, id, instance_id, 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, 'id is nil' if id.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7316,18 +7328,18 @@ def is_cloneable_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -7343,7 +7355,7 @@ def is_cloneable_async(resource_group_name, name, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteCloneability.mapper() + result_mapper = Azure::ARM::Web::Models::Deployment.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -7357,56 +7369,80 @@ def is_cloneable_async(resource_group_name, name, custom_headers = nil) end # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] ID of an existing deployment. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [Deployment] 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) - first_page.get_all_items + def create_instance_deployment(resource_group_name, name, id, instance_id, deployment, custom_headers = nil) + response = create_instance_deployment_async(resource_group_name, name, id, instance_id, deployment, custom_headers).value! + response.body unless response.nil? end # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] ID of an existing deployment. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 create_instance_deployment_with_http_info(resource_group_name, name, id, instance_id, deployment, custom_headers = nil) + create_instance_deployment_async(resource_group_name, name, id, instance_id, deployment, custom_headers).value! end # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] ID of an existing deployment. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" + # @param deployment [Deployment] Deployment details. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_async(resource_group_name, name, custom_headers = nil) + def create_instance_deployment_async(resource_group_name, name, id, instance_id, deployment, 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, 'id is nil' if id.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7416,18 +7452,27 @@ def list_metric_definitions_async(resource_group_name, name, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metricdefinitions' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::Deployment.mapper() + request_content = @client.serialize(request_mapper, deployment) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -7443,7 +7488,7 @@ def list_metric_definitions_async(resource_group_name, name, custom_headers = ni if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ResourceMetricDefinitionCollection.mapper() + result_mapper = Azure::ARM::Web::Models::Deployment.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -7457,74 +7502,75 @@ def list_metric_definitions_async(resource_group_name, name, custom_headers = ni end # - # Gets performance metrics of an app (or deployment slot, if specified). + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Gets performance metrics of an app (or deployment slot, if specified). + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param details [Boolean] Specify "true" to include metric details in the - # response. It is "false" by default. - # @param filter [String] Return only metrics specified in the filter (using - # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq - # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq - # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param id [String] Deployment ID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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) - first_page.get_all_items + def delete_instance_deployment(resource_group_name, name, id, instance_id, custom_headers = nil) + response = delete_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers).value! + nil end # - # Gets performance metrics of an app (or deployment slot, if specified). + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Gets performance metrics of an app (or deployment slot, if specified). + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param details [Boolean] Specify "true" to include metric details in the - # response. It is "false" by default. - # @param filter [String] Return only metrics specified in the filter (using - # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq - # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq - # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param id [String] Deployment ID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 delete_instance_deployment_with_http_info(resource_group_name, name, id, instance_id, custom_headers = nil) + delete_instance_deployment_async(resource_group_name, name, id, instance_id, custom_headers).value! end # - # Gets performance metrics of an app (or deployment slot, if specified). + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Gets performance metrics of an app (or deployment slot, if specified). + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param details [Boolean] Specify "true" to include metric details in the - # response. It is "false" by default. - # @param filter [String] Return only metrics specified in the filter (using - # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq - # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq - # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param id [String] Deployment ID. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 delete_instance_deployment_async(resource_group_name, name, id, instance_id, 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, 'id is nil' if id.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7534,40 +7580,29 @@ def list_metrics_async(resource_group_name, name, details = nil, filter = nil, c # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, - query_params: {'details' => details,'api-version' => api_version}, - skip_encoding_query_params: {'$filter' => filter}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ResourceMetricCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -7576,72 +7611,126 @@ def list_metrics_async(resource_group_name, name, details = nil, filter = nil, c end # - # Restores a web app. + # Invoke the MSDeploy web app extension as pass-through API # - # Restores a web app. + # Invoke the MSDeploy web app extension as pass-through API # - # @param subscription_name [String] Azure subscription # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param migration_options [StorageMigrationOptions] Migration migrationOptions + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [StorageMigrationResponse] operation results. + # @return [MSDeployStatus] 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 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! response.body unless response.nil? end # - # @param subscription_name [String] Azure subscription + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param migration_options [StorageMigrationOptions] Migration migrationOptions + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Concurrent::Promise] promise which provides async access to http - # response. + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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) + 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! + end - promise = promise.then do |response| - # Defining deserialization method. - deserialize_method = lambda do |parsed_response| - result_mapper = Azure::ARM::Web::Models::StorageMigrationResponse.mapper() - parsed_response = @client.deserialize(result_mapper, parsed_response) + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end - # Waiting for response. - @client.get_long_running_operation_result(response, deserialize_method) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result end - promise + promise.execute end # - # Migrates a local (in-app) MySql database to a remote MySql database. + # Invoke the MSDeploy web app extension as pass-through API # - # Migrates a local (in-app) MySql database to a remote MySql database. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param migration_request_envelope [MigrateMySqlRequest] MySql migration - # options + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Operation] operation results. + # @return [MSDeployStatus] 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 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! response.body unless response.nil? end @@ -7649,22 +7738,22 @@ def migrate_my_sql(resource_group_name, name, migration_request_envelope, custom # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param migration_request_envelope [MigrateMySqlRequest] MySql migration - # options + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers = nil) # Send request - promise = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers) + promise = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| - result_mapper = Azure::ARM::Web::Models::Operation.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end @@ -7676,62 +7765,60 @@ def migrate_my_sql_async(resource_group_name, name, migration_request_envelope, end # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Invoke the MSDeploy Log web app extension as pass-through API # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [MigrateMySqlStatus] operation results. + # @return [MSDeployLog] 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_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! response.body unless response.nil? end # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Invoke the MSDeploy Log web app extension as pass-through API # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Invoke the MSDeploy Log web app extension as pass-through API # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7741,13 +7828,13 @@ def get_migrate_my_sql_status_async(resource_group_name, name, custom_headers = # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy/log' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -7768,7 +7855,7 @@ def get_migrate_my_sql_status_async(resource_group_name, name, custom_headers = if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::MigrateMySqlStatus.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployLog.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -7782,63 +7869,56 @@ def get_migrate_my_sql_status_async(resource_group_name, name, custom_headers = end # - # Gets all network features used by the app (or deployment slot, if specified). + # Shows whether an app can be cloned to another resource group or subscription. # - # Gets all network features used by the app (or deployment slot, if specified). + # Shows whether an app can be cloned to another resource group or subscription. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param view [String] The type of view. This can either be "summary" or - # "detailed". # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [NetworkFeatures] operation results. + # @return [SiteCloneability] 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 is_cloneable(resource_group_name, name, custom_headers = nil) + response = is_cloneable_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end # - # Gets all network features used by the app (or deployment slot, if specified). + # Shows whether an app can be cloned to another resource group or subscription. # - # Gets all network features used by the app (or deployment slot, if specified). + # Shows whether an app can be cloned to another resource group or subscription. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param view [String] The type of view. This can either be "summary" or - # "detailed". # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 is_cloneable_with_http_info(resource_group_name, name, custom_headers = nil) + is_cloneable_async(resource_group_name, name, custom_headers).value! end # - # Gets all network features used by the app (or deployment slot, if specified). + # Shows whether an app can be cloned to another resource group or subscription. # - # Gets all network features used by the app (or deployment slot, if specified). + # Shows whether an app can be cloned to another resource group or subscription. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param view [String] The type of view. This can either be "summary" or - # "detailed". # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_network_features_async(resource_group_name, name, view, 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, 'name is nil' if name.nil? - fail ArgumentError, 'view is nil' if view.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -7848,24 +7928,24 @@ def list_network_features_async(resource_group_name, name, view, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkFeatures/{view}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'view' => view,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -7875,7 +7955,7 @@ def list_network_features_async(resource_group_name, name, view, custom_headers if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::NetworkFeatures.mapper() + result_mapper = Azure::ARM::Web::Models::SiteCloneability.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -7889,69 +7969,54 @@ def list_network_features_async(resource_group_name, name, view, custom_headers end # - # Start capturing network packets for the site. + # Gets all metric definitions of an app (or deployment slot, if specified). # - # Start capturing network packets for the site. + # Gets all metric definitions of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param duration_in_seconds [Integer] The duration to keep capturing in - # seconds. - # @param max_frame_length [Integer] The maximum frame length in bytes - # (Optional). - # @param sas_url [String] The Blob URL to store capture file. + # @param name [String] Name of the app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [String] operation results. + # @return [Array] 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! - response.body unless response.nil? + def list_metric_definitions(resource_group_name, name, custom_headers = nil) + first_page = list_metric_definitions_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items end # - # Start capturing network packets for the site. + # Gets all metric definitions of an app (or deployment slot, if specified). # - # Start capturing network packets for the site. + # Gets all metric definitions of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param duration_in_seconds [Integer] The duration to keep capturing in - # seconds. - # @param max_frame_length [Integer] The maximum frame length in bytes - # (Optional). - # @param sas_url [String] The Blob URL to store capture file. + # @param name [String] Name of the app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 list_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) + list_metric_definitions_async(resource_group_name, name, custom_headers).value! end # - # Start capturing network packets for the site. + # Gets all metric definitions of an app (or deployment slot, if specified). # - # Start capturing network packets for the site. + # Gets all metric definitions of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param duration_in_seconds [Integer] The duration to keep capturing in - # seconds. - # @param max_frame_length [Integer] The maximum frame length in bytes - # (Optional). - # @param sas_url [String] The Blob URL to store capture file. + # @param name [String] Name of the app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -7963,18 +8028,18 @@ def start_web_site_network_trace_async(resource_group_name, name, duration_in_se # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/start' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metricdefinitions' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, - query_params: {'durationInSeconds' => duration_in_seconds,'maxFrameLength' => max_frame_length,'sasUrl' => sas_url,'api-version' => api_version}, + query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -7990,13 +8055,7 @@ def start_web_site_network_trace_async(resource_group_name, name, duration_in_se if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - required: false, - serialized_name: 'parsed_response', - type: { - name: 'String' - } - } + result_mapper = Azure::ARM::Web::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -8010,56 +8069,1873 @@ def start_web_site_network_trace_async(resource_group_name, name, duration_in_se end # - # Stop ongoing capturing network packets for the site. + # Gets performance metrics of an app (or deployment slot, if specified). # - # Stop ongoing capturing network packets for the site. + # Gets performance metrics of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. + # @param name [String] Name of the app. + # @param details [Boolean] Specify "true" to include metric details in the + # response. It is "false" by default. + # @param filter [String] Return only metrics specified in the filter (using + # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq + # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq + # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets performance metrics of an app (or deployment slot, if specified). + # + # Gets performance metrics of an app (or deployment slot, if specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param details [Boolean] Specify "true" to include metric details in the + # response. It is "false" by default. + # @param filter [String] Return only metrics specified in the filter (using + # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq + # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq + # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets performance metrics of an app (or deployment slot, if specified). + # + # Gets performance metrics of an app (or deployment slot, if specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param details [Boolean] Specify "true" to include metric details in the + # response. It is "false" by default. + # @param filter [String] Return only metrics specified in the filter (using + # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq + # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq + # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'details' => details,'api-version' => api_version}, + skip_encoding_query_params: {'$filter' => filter}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::ResourceMetricCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Restores a web app. + # + # Restores a web app. + # + # @param subscription_name [String] Azure subscription + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param migration_options [StorageMigrationOptions] Migration migrationOptions + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # @param subscription_name [String] Azure subscription + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param migration_options [StorageMigrationOptions] Migration migrationOptions + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # Send request + promise = begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::StorageMigrationResponse.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Migrates a local (in-app) MySql database to a remote MySql database. + # + # Migrates a local (in-app) MySql database to a remote MySql database. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param migration_request_envelope [MigrateMySqlRequest] MySql migration + # options + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param migration_request_envelope [MigrateMySqlRequest] MySql migration + # options + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # Send request + promise = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::Operation.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled + # + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled + # + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled + # + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::MigrateMySqlStatus.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all network features used by the app (or deployment slot, if specified). + # + # Gets all network features used by the app (or deployment slot, if specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param view [String] The type of view. This can either be "summary" or + # "detailed". + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets all network features used by the app (or deployment slot, if specified). + # + # Gets all network features used by the app (or deployment slot, if specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param view [String] The type of view. This can either be "summary" or + # "detailed". + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets all network features used by the app (or deployment slot, if specified). + # + # Gets all network features used by the app (or deployment slot, if specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param view [String] The type of view. This can either be "summary" or + # "detailed". + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, 'view is nil' if view.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkFeatures/{view}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'view' => view,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::NetworkFeatures.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Start capturing network packets for the site. + # + # Start capturing network packets for the site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app. + # @param duration_in_seconds [Integer] The duration to keep capturing in + # seconds. + # @param max_frame_length [Integer] The maximum frame length in bytes + # (Optional). + # @param sas_url [String] The Blob URL to store capture file. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Start capturing network packets for the site. + # + # Start capturing network packets for the site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app. + # @param duration_in_seconds [Integer] The duration to keep capturing in + # seconds. + # @param max_frame_length [Integer] The maximum frame length in bytes + # (Optional). + # @param sas_url [String] The Blob URL to store capture file. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Start capturing network packets for the site. + # + # Start capturing network packets for the site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app. + # @param duration_in_seconds [Integer] The duration to keep capturing in + # seconds. + # @param max_frame_length [Integer] The maximum frame length in bytes + # (Optional). + # @param sas_url [String] The Blob URL to store capture file. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/start' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'durationInSeconds' => duration_in_seconds,'maxFrameLength' => max_frame_length,'sasUrl' => sas_url,'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Stop ongoing capturing network packets for the site. + # + # Stop ongoing capturing network packets for the site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Stop ongoing capturing network packets for the site. + # + # Stop ongoing capturing network packets for the site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Stop ongoing capturing network packets for the site. + # + # Stop ongoing capturing network packets for the site. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Generates a new publishing password for an app (or deployment slot, if + # specified). + # + # Generates a new publishing password for an app (or deployment slot, if + # specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # 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! + nil + end + + # + # Generates a new publishing password for an app (or deployment slot, if + # specified). + # + # Generates a new publishing password for an app (or deployment slot, if + # specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Generates a new publishing password for an app (or deployment slot, if + # specified). + # + # Generates a new publishing password for an app (or deployment slot, if + # specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets perfmon counters for web app. + # + # Gets perfmon counters for web app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(startTime eq + # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq + # duration'[Hour|Minute|Day]'. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Gets perfmon counters for web app. + # + # Gets perfmon counters for web app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(startTime eq + # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq + # duration'[Hour|Minute|Day]'. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets perfmon counters for web app. + # + # Gets perfmon counters for web app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(startTime eq + # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq + # duration'[Hour|Minute|Day]'. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/perfcounters' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + skip_encoding_query_params: {'$filter' => filter}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PerfMonCounterCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets web app's event logs. + # + # Gets web app's event logs. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets web app's event logs. + # + # Gets web app's event logs. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets web app's event logs. + # + # Gets web app's event logs. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/phplogging' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::SitePhpErrorLogFlag.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the premier add-ons of an app. + # + # Gets the premier add-ons of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the premier add-ons of an app. + # + # Gets the premier add-ons of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the premier add-ons of an app. + # + # Gets the premier add-ons of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets a named add-on of an app. + # + # Gets a named add-on of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets a named add-on of an app. + # + # Gets a named add-on of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets a named add-on of an app. + # + # Gets a named add-on of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates a named add-on of an app. + # + # Updates a named add-on of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param premier_add_on [PremierAddOn] A JSON representation of the edited + # premier add-on. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Updates a named add-on of an app. + # + # Updates a named add-on of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param premier_add_on [PremierAddOn] A JSON representation of the edited + # premier add-on. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Updates a named add-on of an app. + # + # Updates a named add-on of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param premier_add_on [PremierAddOn] A JSON representation of the edited + # premier add-on. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? + fail ArgumentError, 'premier_add_on is nil' if premier_add_on.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + request_content = @client.serialize(request_mapper, premier_add_on) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Delete a premier add-on from an app. + # + # Delete a premier add-on from an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # 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! + nil + end + + # + # Delete a premier add-on from an app. + # + # Delete a premier add-on from an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Delete a premier add-on from an app. + # + # Delete a premier add-on from an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + first_page.get_all_items + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PublicCertificateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get the named public certificate for an app (or deployment slot, if + # specified). + # + # Get the named public certificate for an app (or deployment slot, if + # specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public CertificateName + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Get the named public certificate for an app (or deployment slot, if + # specified). + # + # Get the named public certificate for an app (or deployment slot, if + # specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public CertificateName + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get the named public certificate for an app (or deployment slot, if + # specified). + # + # Get the named public certificate for an app (or deployment slot, if + # specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public CertificateName + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'public_certificate_name is nil' if public_certificate_name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'publicCertificateName' => public_certificate_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PublicCertificate.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a hostname binding for an app. + # + # Creates a hostname binding for an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public certificate name. + # @param public_certificate [PublicCertificate] Public certificate details. + # This is the JSON representation of a PublicCertificate object. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Creates a hostname binding for an app. + # + # Creates a hostname binding for an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public certificate name. + # @param public_certificate [PublicCertificate] Public certificate details. + # This is the JSON representation of a PublicCertificate object. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Creates a hostname binding for an app. + # + # Creates a hostname binding for an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public certificate name. + # @param public_certificate [PublicCertificate] Public certificate details. + # This is the JSON representation of a PublicCertificate object. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'public_certificate_name is nil' if public_certificate_name.nil? + fail ArgumentError, 'public_certificate is nil' if public_certificate.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::PublicCertificate.mapper() + request_content = @client.serialize(request_mapper, public_certificate) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'publicCertificateName' => public_certificate_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PublicCertificate.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes a hostname binding for an app. + # + # Deletes a hostname binding for an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public Certificate Name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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 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! + nil + end + + # + # Deletes a hostname binding for an app. + # + # Deletes a hostname binding for an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public Certificate Name. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Deletes a hostname binding for an app. + # + # Deletes a hostname binding for an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param public_certificate_name [String] Public Certificate Name. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'public_certificate_name is nil' if public_certificate_name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'publicCertificateName' => public_certificate_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the publishing profile for an app (or deployment slot, if specified). + # + # Gets the publishing profile for an app (or deployment slot, if specified). + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param publishing_profile_options [CsmPublishingProfileOptions] Specifies + # publishingProfileOptions for publishing profile. For example, use {"format": + # "FileZilla3"} to get a FileZilla publishing profile. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! response.body unless response.nil? end # - # Stop ongoing capturing network packets for the site. + # Gets the publishing profile for an app (or deployment slot, if specified). # - # Stop ongoing capturing network packets for the site. + # Gets the publishing profile for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. + # @param name [String] Name of the app. + # @param publishing_profile_options [CsmPublishingProfileOptions] Specifies + # publishingProfileOptions for publishing profile. For example, use {"format": + # "FileZilla3"} to get a FileZilla publishing profile. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Stop ongoing capturing network packets for the site. + # Gets the publishing profile for an app (or deployment slot, if specified). # - # Stop ongoing capturing network packets for the site. + # Gets the publishing profile for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. + # @param name [String] Name of the app. + # @param publishing_profile_options [CsmPublishingProfileOptions] Specifies + # publishingProfileOptions for publishing profile. For example, use {"format": + # "FileZilla3"} to get a FileZilla publishing profile. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'publishing_profile_options is nil' if publishing_profile_options.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -8069,7 +9945,15 @@ def stop_web_site_network_trace_async(resource_group_name, name, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::CsmPublishingProfileOptions.mapper() + request_content = @client.serialize(request_mapper, publishing_profile_options) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml' request_url = @base_url || @client.base_url @@ -8077,6 +9961,7 @@ def stop_web_site_network_trace_async(resource_group_name, name, custom_headers middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -8100,7 +9985,7 @@ def stop_web_site_network_trace_async(resource_group_name, name, custom_headers required: false, serialized_name: 'parsed_response', type: { - name: 'String' + name: 'Stream' } } result.body = @client.deserialize(result_mapper, parsed_response) @@ -8116,11 +10001,63 @@ def stop_web_site_network_trace_async(resource_group_name, name, custom_headers end # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Recovers a deleted web app. + # + # Recovers a deleted web app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RecoverResponse] operation results. + # + def recover(resource_group_name, name, recovery_entity, custom_headers = nil) + response = recover_async(resource_group_name, name, recovery_entity, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + 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 = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::RecoverResponse.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -8129,17 +10066,17 @@ def stop_web_site_network_trace_async(resource_group_name, name, custom_headers # 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 reset_production_slot_config(resource_group_name, name, custom_headers = nil) + response = reset_production_slot_config_async(resource_group_name, name, custom_headers).value! nil end # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -8149,16 +10086,16 @@ def generate_new_site_publishing_password(resource_group_name, name, custom_head # # @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 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! end # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. @@ -8168,7 +10105,7 @@ def generate_new_site_publishing_password_with_http_info(resource_group_name, na # # @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 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, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -8180,7 +10117,7 @@ def generate_new_site_publishing_password_async(resource_group_name, name, custo # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resetSlotConfig' request_url = @base_url || @client.base_url @@ -8197,7 +10134,7 @@ def generate_new_site_publishing_password_async(resource_group_name, name, custo http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -8211,66 +10148,71 @@ def generate_new_site_publishing_password_async(resource_group_name, name, custo end # - # Gets perfmon counters for web app. + # Restarts an app (or deployment slot, if specified). # - # Gets perfmon counters for web app. + # Restarts an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param filter [String] Return only usages/metrics specified in the filter. - # Filter conforms to odata syntax. Example: $filter=(startTime eq - # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq - # duration'[Hour|Minute|Day]'. + # @param name [String] Name of the app. + # @param soft_restart [Boolean] Specify true to apply the configuration + # settings and restarts the app only if necessary. By default, the API always + # restarts and reprovisions the app. + # @param synchronous [Boolean] Specify true to block until the app is + # restarted. By default, it is set to false, and the API responds immediately + # (asynchronous). # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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) - first_page.get_all_items + 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! + nil end # - # Gets perfmon counters for web app. + # Restarts an app (or deployment slot, if specified). # - # Gets perfmon counters for web app. + # Restarts an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param filter [String] Return only usages/metrics specified in the filter. - # Filter conforms to odata syntax. Example: $filter=(startTime eq - # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq - # duration'[Hour|Minute|Day]'. + # @param name [String] Name of the app. + # @param soft_restart [Boolean] Specify true to apply the configuration + # settings and restarts the app only if necessary. By default, the API always + # restarts and reprovisions the app. + # @param synchronous [Boolean] Specify true to block until the app is + # restarted. By default, it is set to false, and the API responds immediately + # (asynchronous). # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets perfmon counters for web app. + # Restarts an app (or deployment slot, if specified). # - # Gets perfmon counters for web app. + # Restarts an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param filter [String] Return only usages/metrics specified in the filter. - # Filter conforms to odata syntax. Example: $filter=(startTime eq - # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq - # duration'[Hour|Minute|Day]'. + # @param name [String] Name of the app. + # @param soft_restart [Boolean] Specify true to apply the configuration + # settings and restarts the app only if necessary. By default, the API always + # restarts and reprovisions the app. + # @param synchronous [Boolean] Specify true to block until the app is + # restarted. By default, it is set to false, and the API responds immediately + # (asynchronous). # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -8282,19 +10224,18 @@ def list_perf_mon_counters_async(resource_group_name, name, filter = nil, custom # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/perfcounters' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, - skip_encoding_query_params: {'$filter' => filter}, + query_params: {'softRestart' => soft_restart,'synchronous' => synchronous,'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -8306,16 +10247,6 @@ def list_perf_mon_counters_async(resource_group_name, name, filter = nil, custom end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PerfMonCounterCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -8324,54 +10255,54 @@ def list_perf_mon_counters_async(resource_group_name, name, filter = nil, custom end # - # Gets web app's event logs. + # Gets an app's deployment slots. # - # Gets web app's event logs. + # Gets an app's deployment slots. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app + # @param name [String] Name of the app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SitePhpErrorLogFlag] operation results. + # @return [Array] 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! - response.body unless response.nil? + def list_slots(resource_group_name, name, custom_headers = nil) + first_page = list_slots_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items end # - # Gets web app's event logs. + # Gets an app's deployment slots. # - # Gets web app's event logs. + # Gets an app's deployment slots. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app + # @param name [String] Name of the app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 list_slots_with_http_info(resource_group_name, name, custom_headers = nil) + list_slots_async(resource_group_name, name, custom_headers).value! end # - # Gets web app's event logs. + # Gets an app's deployment slots. # - # Gets web app's event logs. + # Gets an app's deployment slots. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app + # @param name [String] Name of the app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 list_slots_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.subscription_id is nil' if @client.subscription_id.nil? @@ -8383,7 +10314,7 @@ def get_site_php_error_log_flag_async(resource_group_name, name, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/phplogging' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots' request_url = @base_url || @client.base_url @@ -8410,7 +10341,7 @@ def get_site_php_error_log_flag_async(resource_group_name, name, custom_headers if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SitePhpErrorLogFlag.mapper() + result_mapper = Azure::ARM::Web::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -8424,56 +10355,63 @@ def get_site_php_error_log_flag_async(resource_group_name, name, custom_headers end # - # Gets the premier add-ons of an app. + # Gets the details of a web, mobile, or API app. # - # Gets the premier add-ons of an app. + # Gets the details of a web, mobile, or API app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. By default, this API + # returns the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PremierAddOn] operation results. + # @return [Site] 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 get_slot(resource_group_name, name, slot, custom_headers = nil) + response = get_slot_async(resource_group_name, name, slot, custom_headers).value! response.body unless response.nil? end # - # Gets the premier add-ons of an app. + # Gets the details of a web, mobile, or API app. # - # Gets the premier add-ons of an app. + # Gets the details of a web, mobile, or API app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. By default, this API + # returns the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 get_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) + get_slot_async(resource_group_name, name, slot, custom_headers).value! end # - # Gets the premier add-ons of an app. + # Gets the details of a web, mobile, or API app. # - # Gets the premier add-ons of an app. + # Gets the details of a web, mobile, or API app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. By default, this API + # returns the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_premier_add_ons_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -8483,13 +10421,13 @@ def list_premier_add_ons_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -8510,74 +10448,167 @@ def list_premier_add_ons_async(resource_group_name, name, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result_mapper = Azure::ARM::Web::Models::Site.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) end end - result + result + end + + promise.execute + end + + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # Creates a new web, mobile, or API app in an existing resource group, or + # updates an existing app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [Site] A JSON representation of the app properties. See + # example. + # @param slot [String] Name of the deployment slot to create or update. By + # default, this API attempts to create or modify the production slot. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Unique name of the app to create or update. To create or + # update a deployment slot, use the {slot} parameter. + # @param site_envelope [Site] A JSON representation of the app properties. See + # example. + # @param slot [String] Name of the deployment slot to create or update. By + # default, this API attempts to create or modify the production slot. + # @param skip_dns_registration [Boolean] If true web app hostname is not + # registered with DNS on creation. This parameter is + # only used for app creation + # @param skip_custom_domain_verification [Boolean] If true, custom (non + # *.azurewebsites.net) domains associated with web app are not verified. + # @param force_dns_registration [Boolean] If true, web app hostname is force + # registered with DNS + # @param ttl_in_seconds [String] Time to live in seconds for web app's default + # domain name + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # 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 = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::Site.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) end - promise.execute + promise end # - # Gets a named add-on of an app. + # Deletes a web, mobile, or API app, or one of the deployment slots. # - # Gets a named add-on of an app. + # Deletes a web, mobile, or API app, or one of the deployment slots. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. + # @param name [String] Name of the app to delete. + # @param slot [String] Name of the deployment slot to delete. By default, the + # API deletes the production slot. + # @param delete_metrics [Boolean] If true, web app metrics are also deleted + # @param delete_empty_server_farm [Boolean] Specify true if the App Service + # plan will be empty after app deletion and you want to delete the empty App + # Service plan. By default, the empty App Service plan is not deleted. + # @param skip_dns_registration [Boolean] If true, DNS registration is skipped # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Gets a named add-on of an app. + # Deletes a web, mobile, or API app, or one of the deployment slots. # - # Gets a named add-on of an app. + # Deletes a web, mobile, or API app, or one of the deployment slots. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. + # @param name [String] Name of the app to delete. + # @param slot [String] Name of the deployment slot to delete. By default, the + # API deletes the production slot. + # @param delete_metrics [Boolean] If true, web app metrics are also deleted + # @param delete_empty_server_farm [Boolean] Specify true if the App Service + # plan will be empty after app deletion and you want to delete the empty App + # Service plan. By default, the empty App Service plan is not deleted. + # @param skip_dns_registration [Boolean] If true, DNS registration is skipped # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets a named add-on of an app. + # Deletes a web, mobile, or API app, or one of the deployment slots. # - # Gets a named add-on of an app. + # Deletes a web, mobile, or API app, or one of the deployment slots. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. + # @param name [String] Name of the app to delete. + # @param slot [String] Name of the deployment slot to delete. By default, the + # API deletes the production slot. + # @param delete_metrics [Boolean] If true, web app metrics are also deleted + # @param delete_empty_server_farm [Boolean] Specify true if the App Service + # plan will be empty after app deletion and you want to delete the empty App + # Service plan. By default, the empty App Service plan is not deleted. + # @param skip_dns_registration [Boolean] If true, DNS registration is skipped # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -8587,39 +10618,29 @@ def get_premier_add_on_async(resource_group_name, name, premier_add_on_name, cus # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'deleteMetrics' => delete_metrics,'deleteEmptyServerFarm' => delete_empty_server_farm,'skipDnsRegistration' => skip_dns_registration,'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -8628,67 +10649,66 @@ def get_premier_add_on_async(resource_group_name, name, premier_add_on_name, cus end # - # Updates a named add-on of an app. + # Analyze a custom hostname. # - # Updates a named add-on of an app. + # Analyze a custom hostname. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. - # @param premier_add_on [PremierAddOn] A JSON representation of the edited - # premier add-on. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param host_name [String] Custom hostname # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PremierAddOn] operation results. + # @return [CustomHostnameAnalysisResult] 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 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! response.body unless response.nil? end # - # Updates a named add-on of an app. + # Analyze a custom hostname. # - # Updates a named add-on of an app. + # Analyze a custom hostname. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. - # @param premier_add_on [PremierAddOn] A JSON representation of the edited - # premier add-on. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param host_name [String] Custom hostname # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Updates a named add-on of an app. + # Analyze a custom hostname. # - # Updates a named add-on of an app. + # Analyze a custom hostname. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. - # @param premier_add_on [PremierAddOn] A JSON representation of the edited - # premier add-on. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param host_name [String] Custom hostname # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? - fail ArgumentError, 'premier_add_on is nil' if premier_add_on.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -8698,27 +10718,18 @@ def add_premier_add_on_async(resource_group_name, name, premier_add_on_name, pre # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() - request_content = @client.serialize(request_mapper, premier_add_on) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/analyzeCustomHostname' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, - body: request_content, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'hostName' => host_name,'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -8734,7 +10745,7 @@ def add_premier_add_on_async(resource_group_name, name, premier_add_on_name, pre if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result_mapper = Azure::ARM::Web::Models::CustomHostnameAnalysisResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -8748,59 +10759,75 @@ def add_premier_add_on_async(resource_group_name, name, premier_add_on_name, pre end # - # Delete a premier add-on from an app. + # Applies the configuration settings from the target slot onto the current + # slot. # - # Delete a premier add-on from an app. + # Applies the configuration settings from the target slot onto the current + # slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. + # @param slot_swap_entity [CsmSlotEntity] JSON object that contains the target + # slot name. See example. + # @param slot [String] Name of the source slot. If a slot is not specified, the + # production slot is used as the source slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # 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 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! nil end # - # Delete a premier add-on from an app. + # Applies the configuration settings from the target slot onto the current + # slot. # - # Delete a premier add-on from an app. + # Applies the configuration settings from the target slot onto the current + # slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. + # @param slot_swap_entity [CsmSlotEntity] JSON object that contains the target + # slot name. See example. + # @param slot [String] Name of the source slot. If a slot is not specified, the + # production slot is used as the source slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Delete a premier add-on from an app. + # Applies the configuration settings from the target slot onto the current + # slot. # - # Delete a premier add-on from an app. + # Applies the configuration settings from the target slot onto the current + # slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. + # @param slot_swap_entity [CsmSlotEntity] JSON object that contains the target + # slot name. See example. + # @param slot [String] Name of the source slot. If a slot is not specified, the + # production slot is used as the source slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? + fail ArgumentError, 'slot_swap_entity is nil' if slot_swap_entity.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -8810,18 +10837,27 @@ def delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::CsmSlotEntity.mapper() + request_content = @client.serialize(request_mapper, slot_swap_entity) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/applySlotConfig' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -8841,66 +10877,70 @@ def delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, end # - # Gets the publishing profile for an app (or deployment slot, if specified). + # Creates a backup of an app. # - # Gets the publishing profile for an app (or deployment slot, if specified). + # Creates a backup of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param publishing_profile_options [CsmPublishingProfileOptions] Specifies - # publishingProfileOptions for publishing profile. For example, use {"format": - # "FileZilla3"} to get a FileZilla publishing profile. + # @param request [BackupRequest] Backup configuration. You can use the JSON + # response from the POST action as input here. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create a backup for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [NOT_IMPLEMENTED] operation results. + # @return [BackupItem] 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 backup_slot(resource_group_name, name, request, slot, custom_headers = nil) + response = backup_slot_async(resource_group_name, name, request, slot, custom_headers).value! response.body unless response.nil? end # - # Gets the publishing profile for an app (or deployment slot, if specified). + # Creates a backup of an app. # - # Gets the publishing profile for an app (or deployment slot, if specified). + # Creates a backup of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param publishing_profile_options [CsmPublishingProfileOptions] Specifies - # publishingProfileOptions for publishing profile. For example, use {"format": - # "FileZilla3"} to get a FileZilla publishing profile. + # @param request [BackupRequest] Backup configuration. You can use the JSON + # response from the POST action as input here. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create a backup for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the publishing profile for an app (or deployment slot, if specified). + # Creates a backup of an app. # - # Gets the publishing profile for an app (or deployment slot, if specified). + # Creates a backup of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param publishing_profile_options [CsmPublishingProfileOptions] Specifies - # publishingProfileOptions for publishing profile. For example, use {"format": - # "FileZilla3"} to get a FileZilla publishing profile. + # @param request [BackupRequest] Backup configuration. You can use the JSON + # response from the POST action as input here. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create a backup for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'publishing_profile_options is nil' if publishing_profile_options.nil? + fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -8914,17 +10954,17 @@ def list_publishing_profile_xml_with_secrets_async(resource_group_name, name, pu request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::CsmPublishingProfileOptions.mapper() - request_content = @client.serialize(request_mapper, publishing_profile_options) + request_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() + request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backup' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -8946,13 +10986,7 @@ def list_publishing_profile_xml_with_secrets_async(resource_group_name, name, pu if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - required: false, - serialized_name: 'parsed_response', - type: { - name: 'Stream' - } - } + result_mapper = Azure::ARM::Web::Models::BackupItem.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -8966,113 +11000,63 @@ def list_publishing_profile_xml_with_secrets_async(resource_group_name, name, pu end # - # Recovers a deleted web app. - # - # Recovers a deleted web app. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [RecoverResponse] operation results. - # - def recover(resource_group_name, name, recovery_entity, custom_headers = nil) - response = recover_async(resource_group_name, name, recovery_entity, custom_headers).value! - response.body unless response.nil? - end - - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [Concurrent::Promise] promise which provides async access to http - # response. - # - 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 = promise.then do |response| - # Defining deserialization method. - deserialize_method = lambda do |parsed_response| - result_mapper = Azure::ARM::Web::Models::RecoverResponse.mapper() - parsed_response = @client.deserialize(result_mapper, parsed_response) - end - - # Waiting for response. - @client.get_long_running_operation_result(response, deserialize_method) - end - - promise - end - - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. + # Gets existing backups of an app. # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. + # Gets existing backups of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get backups of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Array] operation results. # - 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! - nil + 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) + first_page.get_all_items end # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. + # Gets existing backups of an app. # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. + # Gets existing backups of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get backups of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. + # Gets existing backups of an app. # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. + # Gets existing backups of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get backups of the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reset_production_slot_config_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9082,18 +11066,18 @@ def reset_production_slot_config_async(resource_group_name, name, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resetSlotConfig' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -9105,6 +11089,16 @@ def reset_production_slot_config_async(resource_group_name, name, custom_headers end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::BackupItemCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -9113,56 +11107,76 @@ def reset_production_slot_config_async(resource_group_name, name, custom_headers end # - # Gets the category of ResourceHealthMetadata to use for the given site + # Discovers an existing app backup that can be restored from a blob in Azure + # storage. # - # Gets the category of ResourceHealthMetadata to use for the given site + # Discovers an existing app backup that can be restored from a blob in Azure + # storage. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app + # @param name [String] Name of the app. + # @param request [RestoreRequest] A RestoreRequest object that includes Azure + # storage URL and blog name for discovery of backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will perform discovery for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ResourceHealthMetadata] operation results. + # @return [RestoreRequest] operation results. # - def get_resource_health_metadata(resource_group_name, name, custom_headers = nil) - response = get_resource_health_metadata_async(resource_group_name, name, 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).value! response.body unless response.nil? end # - # Gets the category of ResourceHealthMetadata to use for the given site + # Discovers an existing app backup that can be restored from a blob in Azure + # storage. # - # Gets the category of ResourceHealthMetadata to use for the given site + # Discovers an existing app backup that can be restored from a blob in Azure + # storage. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app + # @param name [String] Name of the app. + # @param request [RestoreRequest] A RestoreRequest object that includes Azure + # storage URL and blog name for discovery of backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will perform discovery for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_resource_health_metadata_with_http_info(resource_group_name, name, custom_headers = nil) - get_resource_health_metadata_async(resource_group_name, name, 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).value! end # - # Gets the category of ResourceHealthMetadata to use for the given site + # Discovers an existing app backup that can be restored from a blob in Azure + # storage. # - # Gets the category of ResourceHealthMetadata to use for the given site + # Discovers an existing app backup that can be restored from a blob in Azure + # storage. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app + # @param name [String] Name of the app. + # @param request [RestoreRequest] A RestoreRequest object that includes Azure + # storage URL and blog name for discovery of backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will perform discovery for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_resource_health_metadata_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9172,18 +11186,27 @@ def get_resource_health_metadata_async(resource_group_name, name, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::RestoreRequest.mapper() + request_content = @client.serialize(request_mapper, request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/discover' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -9199,7 +11222,7 @@ def get_resource_health_metadata_async(resource_group_name, name, custom_headers if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ResourceHealthMetadata.mapper() + result_mapper = Azure::ARM::Web::Models::RestoreRequest.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -9213,73 +11236,67 @@ def get_resource_health_metadata_async(resource_group_name, name, custom_headers end # - # Restarts an app (or deployment slot, if specified). + # Gets a backup of an app by its ID. # - # Restarts an app (or deployment slot, if specified). + # Gets a backup of an app by its ID. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param soft_restart [Boolean] Specify true to apply the configuration - # settings and restarts the app only if necessary. By default, the API always - # restarts and reprovisions the app. - # @param synchronous [Boolean] Specify true to block until the app is - # restarted. By default, it is set to false, and the API responds immediately - # (asynchronous). + # @param backup_id [String] ID of the backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get a backup of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [BackupItem] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Restarts an app (or deployment slot, if specified). + # Gets a backup of an app by its ID. # - # Restarts an app (or deployment slot, if specified). + # Gets a backup of an app by its ID. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param soft_restart [Boolean] Specify true to apply the configuration - # settings and restarts the app only if necessary. By default, the API always - # restarts and reprovisions the app. - # @param synchronous [Boolean] Specify true to block until the app is - # restarted. By default, it is set to false, and the API responds immediately - # (asynchronous). + # @param backup_id [String] ID of the backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get a backup of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Restarts an app (or deployment slot, if specified). + # Gets a backup of an app by its ID. # - # Restarts an app (or deployment slot, if specified). + # Gets a backup of an app by its ID. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param soft_restart [Boolean] Specify true to apply the configuration - # settings and restarts the app only if necessary. By default, the API always - # restarts and reprovisions the app. - # @param synchronous [Boolean] Specify true to block until the app is - # restarted. By default, it is set to false, and the API responds immediately - # (asynchronous). + # @param backup_id [String] ID of the backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get a backup of the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'backup_id is nil' if backup_id.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9289,18 +11306,18 @@ def restart_async(resource_group_name, name, soft_restart = nil, synchronous = n # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, - query_params: {'softRestart' => soft_restart,'synchronous' => synchronous,'api-version' => api_version}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -9311,8 +11328,18 @@ def restart_async(resource_group_name, name, soft_restart = nil, synchronous = n fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end - result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::BackupItem.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + result end @@ -9320,56 +11347,66 @@ def restart_async(resource_group_name, name, soft_restart = nil, synchronous = n end # - # Gets an app's deployment slots. + # Deletes a backup of an app by its ID. # - # Gets an app's deployment slots. + # Deletes a backup of an app by its ID. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param backup_id [String] ID of the backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete a backup of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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) - first_page.get_all_items + 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! + nil end # - # Gets an app's deployment slots. + # Deletes a backup of an app by its ID. # - # Gets an app's deployment slots. + # Deletes a backup of an app by its ID. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param backup_id [String] ID of the backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete a backup of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets an app's deployment slots. + # Deletes a backup of an app by its ID. # - # Gets an app's deployment slots. + # Deletes a backup of an app by its ID. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param backup_id [String] ID of the backup. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete a backup of the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slots_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'backup_id is nil' if backup_id.nil? + fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9379,39 +11416,29 @@ def list_slots_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::WebAppCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -9420,62 +11447,88 @@ def list_slots_async(resource_group_name, name, custom_headers = nil) end # - # Gets the details of a web, mobile, or API app. + # Gets status of a web app backup that may be in progress, including secrets + # associated with the backup, such as the Azure Storage SAS URL. Also can be + # used to update the SAS URL for the backup if a new URL is passed in the + # request body. # - # Gets the details of a web, mobile, or API app. + # Gets status of a web app backup that may be in progress, including secrets + # associated with the backup, such as the Azure Storage SAS URL. Also can be + # used to update the SAS URL for the backup if a new URL is passed in the + # request body. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. By default, this API - # returns the production slot. + # @param name [String] Name of web app + # @param backup_id [String] Id of backup + # @param request [BackupRequest] Information on backup request + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Site] operation results. + # @return [BackupItem] 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 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! response.body unless response.nil? end # - # Gets the details of a web, mobile, or API app. + # Gets status of a web app backup that may be in progress, including secrets + # associated with the backup, such as the Azure Storage SAS URL. Also can be + # used to update the SAS URL for the backup if a new URL is passed in the + # request body. # - # Gets the details of a web, mobile, or API app. + # Gets status of a web app backup that may be in progress, including secrets + # associated with the backup, such as the Azure Storage SAS URL. Also can be + # used to update the SAS URL for the backup if a new URL is passed in the + # request body. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. By default, this API - # returns the production slot. + # @param name [String] Name of web app + # @param backup_id [String] Id of backup + # @param request [BackupRequest] Information on backup request + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the details of a web, mobile, or API app. + # Gets status of a web app backup that may be in progress, including secrets + # associated with the backup, such as the Azure Storage SAS URL. Also can be + # used to update the SAS URL for the backup if a new URL is passed in the + # request body. # - # Gets the details of a web, mobile, or API app. + # Gets status of a web app backup that may be in progress, including secrets + # associated with the backup, such as the Azure Storage SAS URL. Also can be + # used to update the SAS URL for the backup if a new URL is passed in the + # request body. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. By default, this API - # returns the production slot. + # @param name [String] Name of web app + # @param backup_id [String] Id of backup + # @param request [BackupRequest] Information on backup request + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_slot_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'backup_id is nil' if backup_id.nil? + fail ArgumentError, 'request is nil' if request.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9486,18 +11539,27 @@ def get_slot_async(resource_group_name, name, slot, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() + request_content = @client.serialize(request_mapper, request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/list' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -9513,7 +11575,7 @@ def get_slot_async(resource_group_name, name, slot, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Site.mapper() + result_mapper = Azure::ARM::Web::Models::BackupItem.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -9527,71 +11589,49 @@ def get_slot_async(resource_group_name, name, slot, custom_headers = nil) end # - # Creates a new web, mobile, or API app in an existing resource group, or - # updates an existing app. + # Restores a specific backup to another app (or deployment slot, if specified). # - # Creates a new web, mobile, or API app in an existing resource group, or - # updates an existing app. + # Restores a specific backup to another app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Unique name of the app to create or update. To create or - # update a deployment slot, use the {slot} parameter. - # @param site_envelope [Site] A JSON representation of the app properties. See - # example. - # @param slot [String] Name of the deployment slot to create or update. By - # default, this API attempts to create or modify the production slot. - # @param skip_dns_registration [Boolean] If true web app hostname is not - # registered with DNS on creation. This parameter is - # only used for app creation - # @param skip_custom_domain_verification [Boolean] If true, custom (non - # *.azurewebsites.net) domains associated with web app are not verified. - # @param force_dns_registration [Boolean] If true, web app hostname is force - # registered with DNS - # @param ttl_in_seconds [String] Time to live in seconds for web app's default - # domain name + # @param name [String] Name of the app. + # @param backup_id [String] ID of the backup. + # @param request [RestoreRequest] Information on restore request + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will restore a backup of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Site] operation results. + # @return [RestoreResponse] 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 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! response.body unless response.nil? end # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Unique name of the app to create or update. To create or - # update a deployment slot, use the {slot} parameter. - # @param site_envelope [Site] A JSON representation of the app properties. See - # example. - # @param slot [String] Name of the deployment slot to create or update. By - # default, this API attempts to create or modify the production slot. - # @param skip_dns_registration [Boolean] If true web app hostname is not - # registered with DNS on creation. This parameter is - # only used for app creation - # @param skip_custom_domain_verification [Boolean] If true, custom (non - # *.azurewebsites.net) domains associated with web app are not verified. - # @param force_dns_registration [Boolean] If true, web app hostname is force - # registered with DNS - # @param ttl_in_seconds [String] Time to live in seconds for web app's default - # domain name + # @param name [String] Name of the app. + # @param backup_id [String] ID of the backup. + # @param request [RestoreRequest] Information on restore request + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will restore a backup of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 restore_slot_async(resource_group_name, name, backup_id, request, slot, 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_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| - result_mapper = Azure::ARM::Web::Models::Site.mapper() + result_mapper = Azure::ARM::Web::Models::RestoreResponse.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end @@ -9603,74 +11643,60 @@ def create_or_update_slot_async(resource_group_name, name, site_envelope, slot, end # - # Deletes a web, mobile, or API app, or one of the deployment slots. + # List the configurations of an app # - # Deletes a web, mobile, or API app, or one of the deployment slots. + # List the configurations of an app # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app to delete. - # @param slot [String] Name of the deployment slot to delete. By default, the - # API deletes the production slot. - # @param delete_metrics [Boolean] If true, web app metrics are also deleted - # @param delete_empty_server_farm [Boolean] Specify true if the App Service - # plan will be empty after app deletion and you want to delete the empty App - # Service plan. By default, the empty App Service plan is not deleted. - # @param skip_dns_registration [Boolean] If true, DNS registration is skipped + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Array] operation results. # - 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! - nil + 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) + first_page.get_all_items end # - # Deletes a web, mobile, or API app, or one of the deployment slots. + # List the configurations of an app # - # Deletes a web, mobile, or API app, or one of the deployment slots. + # List the configurations of an app # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app to delete. - # @param slot [String] Name of the deployment slot to delete. By default, the - # API deletes the production slot. - # @param delete_metrics [Boolean] If true, web app metrics are also deleted - # @param delete_empty_server_farm [Boolean] Specify true if the App Service - # plan will be empty after app deletion and you want to delete the empty App - # Service plan. By default, the empty App Service plan is not deleted. - # @param skip_dns_registration [Boolean] If true, DNS registration is skipped + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end - # - # Deletes a web, mobile, or API app, or one of the deployment slots. - # - # Deletes a web, mobile, or API app, or one of the deployment slots. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app to delete. - # @param slot [String] Name of the deployment slot to delete. By default, the - # API deletes the production slot. - # @param delete_metrics [Boolean] If true, web app metrics are also deleted - # @param delete_empty_server_farm [Boolean] Specify true if the App Service - # plan will be empty after app deletion and you want to delete the empty App - # Service plan. By default, the empty App Service plan is not deleted. - # @param skip_dns_registration [Boolean] If true, DNS registration is skipped + # + # List the configurations of an app + # + # List the configurations of an app + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will return configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -9683,29 +11709,39 @@ def delete_slot_async(resource_group_name, name, slot, delete_metrics = nil, del # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'deleteMetrics' => delete_metrics,'deleteEmptyServerFarm' => delete_empty_server_farm,'skipDnsRegistration' => skip_dns_registration,'api-version' => api_version}, + query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::SiteConfigResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -9714,65 +11750,66 @@ def delete_slot_async(resource_group_name, name, slot, delete_metrics = nil, del end # - # Analyze a custom hostname. + # Replaces the application settings of an app. # - # Analyze a custom hostname. + # Replaces the application settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. - # @param host_name [String] Custom hostname + # @param name [String] Name of the app. + # @param app_settings [StringDictionary] Application settings of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the application settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [CustomHostnameAnalysisResult] operation results. + # @return [StringDictionary] 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 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! response.body unless response.nil? end # - # Analyze a custom hostname. + # Replaces the application settings of an app. # - # Analyze a custom hostname. + # Replaces the application settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. - # @param host_name [String] Custom hostname + # @param name [String] Name of the app. + # @param app_settings [StringDictionary] Application settings of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the application settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Analyze a custom hostname. + # Replaces the application settings of an app. # - # Analyze a custom hostname. + # Replaces the application settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. - # @param host_name [String] Custom hostname + # @param name [String] Name of the app. + # @param app_settings [StringDictionary] Application settings of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the application settings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'app_settings is nil' if app_settings.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9783,18 +11820,27 @@ def analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_nam # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/analyzeCustomHostname' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() + request_content = @client.serialize(request_mapper, app_settings) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'hostName' => host_name,'api-version' => api_version}, + query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -9810,7 +11856,7 @@ def analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_nam if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::CustomHostnameAnalysisResult.mapper() + result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -9824,74 +11870,62 @@ def analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_nam end # - # Applies the configuration settings from the target slot onto the current - # slot. + # Gets the application settings of an app. # - # Applies the configuration settings from the target slot onto the current - # slot. + # Gets the application settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot_swap_entity [CsmSlotEntity] JSON object that contains the target - # slot name. See example. - # @param slot [String] Name of the source slot. If a slot is not specified, the - # production slot is used as the source slot. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the application settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [StringDictionary] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Applies the configuration settings from the target slot onto the current - # slot. + # Gets the application settings of an app. # - # Applies the configuration settings from the target slot onto the current - # slot. + # Gets the application settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot_swap_entity [CsmSlotEntity] JSON object that contains the target - # slot name. See example. - # @param slot [String] Name of the source slot. If a slot is not specified, the - # production slot is used as the source slot. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the application settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Applies the configuration settings from the target slot onto the current - # slot. + # Gets the application settings of an app. # - # Applies the configuration settings from the target slot onto the current - # slot. + # Gets the application settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot_swap_entity [CsmSlotEntity] JSON object that contains the target - # slot name. See example. - # @param slot [String] Name of the source slot. If a slot is not specified, the - # production slot is used as the source slot. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the application settings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'slot_swap_entity is nil' if slot_swap_entity.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -9902,15 +11936,7 @@ def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_ent # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::CsmSlotEntity.mapper() - request_content = @client.serialize(request_mapper, slot_swap_entity) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/applySlotConfig' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings/list' request_url = @base_url || @client.base_url @@ -9918,7 +11944,6 @@ def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_ent middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -9934,6 +11959,16 @@ def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_ent end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -9942,69 +11977,69 @@ def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_ent end # - # Creates a backup of an app. + # Updates the Authentication / Authorization settings associated with web app. # - # Creates a backup of an app. + # Updates the Authentication / Authorization settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param request [BackupRequest] Backup configuration. You can use the JSON - # response from the POST action as input here. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create a backup for the production slot. + # @param name [String] Name of web app + # @param site_auth_settings [SiteAuthSettings] Auth settings associated with + # web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [BackupItem] operation results. + # @return [SiteAuthSettings] 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 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! response.body unless response.nil? end # - # Creates a backup of an app. + # Updates the Authentication / Authorization settings associated with web app. # - # Creates a backup of an app. + # Updates the Authentication / Authorization settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param request [BackupRequest] Backup configuration. You can use the JSON - # response from the POST action as input here. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create a backup for the production slot. + # @param name [String] Name of web app + # @param site_auth_settings [SiteAuthSettings] Auth settings associated with + # web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a backup of an app. + # Updates the Authentication / Authorization settings associated with web app. # - # Creates a backup of an app. + # Updates the Authentication / Authorization settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param request [BackupRequest] Backup configuration. You can use the JSON - # response from the POST action as input here. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create a backup for the production slot. + # @param name [String] Name of web app + # @param site_auth_settings [SiteAuthSettings] Auth settings associated with + # web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def backup_slot_async(resource_group_name, name, request, 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, 'name is nil' if name.nil? - fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, 'site_auth_settings is nil' if site_auth_settings.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -10019,11 +12054,11 @@ def backup_slot_async(resource_group_name, name, request, slot, custom_headers = request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() - request_content = @client.serialize(request_mapper, request) + request_mapper = Azure::ARM::Web::Models::SiteAuthSettings.mapper() + request_content = @client.serialize(request_mapper, site_auth_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backup' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings' request_url = @base_url || @client.base_url @@ -10035,7 +12070,7 @@ def backup_slot_async(resource_group_name, name, request, slot, custom_headers = headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -10051,7 +12086,7 @@ def backup_slot_async(resource_group_name, name, request, slot, custom_headers = if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::BackupItem.mapper() + result_mapper = Azure::ARM::Web::Models::SiteAuthSettings.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -10065,60 +12100,60 @@ def backup_slot_async(resource_group_name, name, request, slot, custom_headers = end # - # Gets existing backups of an app. + # Gets the Authentication/Authorization settings of an app. # - # Gets existing backups of an app. + # Gets the Authentication/Authorization settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get backups of the production slot. + # the API will get the settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [SiteAuthSettings] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Gets existing backups of an app. + # Gets the Authentication/Authorization settings of an app. # - # Gets existing backups of an app. + # Gets the Authentication/Authorization settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get backups of the production slot. + # the API will get the settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets existing backups of an app. + # Gets the Authentication/Authorization settings of an app. # - # Gets existing backups of an app. + # Gets the Authentication/Authorization settings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get backups of the production slot. + # the API will get the settings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -10131,7 +12166,7 @@ def list_backups_slot_async(resource_group_name, name, slot, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings/list' request_url = @base_url || @client.base_url @@ -10142,7 +12177,7 @@ def list_backups_slot_async(resource_group_name, name, slot, custom_headers = ni headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -10158,7 +12193,7 @@ def list_backups_slot_async(resource_group_name, name, slot, custom_headers = ni if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::BackupItemCollection.mapper() + result_mapper = Azure::ARM::Web::Models::SiteAuthSettings.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -10172,72 +12207,63 @@ def list_backups_slot_async(resource_group_name, name, slot, custom_headers = ni end # - # Discovers an existing app backup that can be restored from a blob in Azure - # storage. + # Updates the backup configuration of an app. # - # Discovers an existing app backup that can be restored from a blob in Azure - # storage. + # Updates the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param request [RestoreRequest] A RestoreRequest object that includes Azure - # storage URL and blog name for discovery of backup. + # @param request [BackupRequest] Edited backup configuration. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will perform discovery for the production slot. + # the API will update the backup configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RestoreRequest] operation results. + # @return [BackupRequest] 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 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! response.body unless response.nil? end # - # Discovers an existing app backup that can be restored from a blob in Azure - # storage. + # Updates the backup configuration of an app. # - # Discovers an existing app backup that can be restored from a blob in Azure - # storage. + # Updates the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param request [RestoreRequest] A RestoreRequest object that includes Azure - # storage URL and blog name for discovery of backup. + # @param request [BackupRequest] Edited backup configuration. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will perform discovery for the production slot. + # the API will update the backup configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Discovers an existing app backup that can be restored from a blob in Azure - # storage. + # Updates the backup configuration of an app. # - # Discovers an existing app backup that can be restored from a blob in Azure - # storage. + # Updates the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param request [RestoreRequest] A RestoreRequest object that includes Azure - # storage URL and blog name for discovery of backup. + # @param request [BackupRequest] Edited backup configuration. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will perform discovery for the production slot. + # the API will update the backup configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'request is nil' if request.nil? @@ -10255,11 +12281,11 @@ def discover_restore_slot_async(resource_group_name, name, request, slot, custom request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::RestoreRequest.mapper() + request_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/discover' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup' request_url = @base_url || @client.base_url @@ -10287,7 +12313,7 @@ def discover_restore_slot_async(resource_group_name, name, request, slot, custom if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RestoreRequest.mapper() + result_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -10301,66 +12327,61 @@ def discover_restore_slot_async(resource_group_name, name, request, slot, custom end # - # Gets a backup of an app by its ID. + # Deletes the backup configuration of an app. # - # Gets a backup of an app by its ID. + # Deletes the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get a backup of the production slot. + # the API will delete the backup configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Gets a backup of an app by its ID. + # Deletes the backup configuration of an app. # - # Gets a backup of an app by its ID. + # Deletes the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get a backup of the production slot. + # the API will delete the backup configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets a backup of an app by its ID. + # Deletes the backup configuration of an app. # - # Gets a backup of an app by its ID. + # Deletes the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get a backup of the production slot. + # the API will delete the backup configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -10371,18 +12392,18 @@ def get_backup_status_slot_async(resource_group_name, name, backup_id, slot, cus # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response @@ -10394,16 +12415,6 @@ def get_backup_status_slot_async(resource_group_name, name, backup_id, slot, cus end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::BackupItem.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -10412,65 +12423,62 @@ def get_backup_status_slot_async(resource_group_name, name, backup_id, slot, cus end # - # Deletes a backup of an app by its ID. + # Gets the backup configuration of an app. # - # Deletes a backup of an app by its ID. + # Gets the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete a backup of the production slot. + # the API will get the backup configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [BackupRequest] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Deletes a backup of an app by its ID. + # Gets the backup configuration of an app. # - # Deletes a backup of an app by its ID. + # Gets the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete a backup of the production slot. + # the API will get the backup configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Deletes a backup of an app by its ID. + # Gets the backup configuration of an app. # - # Deletes a backup of an app by its ID. + # Gets the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete a backup of the production slot. + # the API will get the backup configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -10481,29 +12489,39 @@ def delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_ # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup/list' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -10512,88 +12530,69 @@ def delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_ end # - # Gets status of a web app backup that may be in progress, including secrets - # associated with the backup, such as the Azure Storage SAS URL. Also can be - # used to update the SAS URL for the backup if a new URL is passed in the - # request body. + # Replaces the connection strings of an app. # - # Gets status of a web app backup that may be in progress, including secrets - # associated with the backup, such as the Azure Storage SAS URL. Also can be - # used to update the SAS URL for the backup if a new URL is passed in the - # request body. + # Replaces the connection strings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param backup_id [String] Id of backup - # @param request [BackupRequest] Information on backup request - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param connection_strings [ConnectionStringDictionary] Connection strings of + # the app or deployment slot. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the connection settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [BackupItem] operation results. + # @return [ConnectionStringDictionary] 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 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! response.body unless response.nil? end # - # Gets status of a web app backup that may be in progress, including secrets - # associated with the backup, such as the Azure Storage SAS URL. Also can be - # used to update the SAS URL for the backup if a new URL is passed in the - # request body. + # Replaces the connection strings of an app. # - # Gets status of a web app backup that may be in progress, including secrets - # associated with the backup, such as the Azure Storage SAS URL. Also can be - # used to update the SAS URL for the backup if a new URL is passed in the - # request body. + # Replaces the connection strings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param backup_id [String] Id of backup - # @param request [BackupRequest] Information on backup request - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param connection_strings [ConnectionStringDictionary] Connection strings of + # the app or deployment slot. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the connection settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets status of a web app backup that may be in progress, including secrets - # associated with the backup, such as the Azure Storage SAS URL. Also can be - # used to update the SAS URL for the backup if a new URL is passed in the - # request body. + # Replaces the connection strings of an app. # - # Gets status of a web app backup that may be in progress, including secrets - # associated with the backup, such as the Azure Storage SAS URL. Also can be - # used to update the SAS URL for the backup if a new URL is passed in the - # request body. + # Replaces the connection strings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param backup_id [String] Id of backup - # @param request [BackupRequest] Information on backup request - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param connection_strings [ConnectionStringDictionary] Connection strings of + # the app or deployment slot. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the connection settings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'backup_id is nil' if backup_id.nil? - fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, 'connection_strings is nil' if connection_strings.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -10608,23 +12607,23 @@ def list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() - request_content = @client.serialize(request_mapper, request) + request_mapper = Azure::ARM::Web::Models::ConnectionStringDictionary.mapper() + request_content = @client.serialize(request_mapper, connection_strings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/list' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -10640,7 +12639,7 @@ def list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::BackupItem.mapper() + result_mapper = Azure::ARM::Web::Models::ConnectionStringDictionary.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -10654,114 +12653,60 @@ def list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, end # - # Restores a specific backup to another app (or deployment slot, if specified). + # Gets the connection strings of an app. # - # Restores a specific backup to another app (or deployment slot, if specified). + # Gets the connection strings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. - # @param request [RestoreRequest] Information on restore request # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will restore a backup of the production slot. + # the API will get the connection settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RestoreResponse] operation results. + # @return [ConnectionStringDictionary] 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 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! response.body unless response.nil? end # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param backup_id [String] ID of the backup. - # @param request [RestoreRequest] Information on restore request - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will restore a backup of the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @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) - # Send request - promise = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers) - - promise = promise.then do |response| - # Defining deserialization method. - deserialize_method = lambda do |parsed_response| - result_mapper = Azure::ARM::Web::Models::RestoreResponse.mapper() - parsed_response = @client.deserialize(result_mapper, parsed_response) - end - - # Waiting for response. - @client.get_long_running_operation_result(response, deserialize_method) - end - - promise - end - - # - # List the configurations of an app - # - # List the configurations of an app - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @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) - first_page.get_all_items - end - - # - # List the configurations of an app + # Gets the connection strings of an app. # - # List the configurations of an app + # Gets the connection strings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will get the connection settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # List the configurations of an app + # Gets the connection strings of an app. # - # List the configurations of an app + # Gets the connection strings of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will get the connection settings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -10774,7 +12719,7 @@ def list_configurations_slot_async(resource_group_name, name, slot, custom_heade # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings/list' request_url = @base_url || @client.base_url @@ -10785,7 +12730,7 @@ def list_configurations_slot_async(resource_group_name, name, slot, custom_heade headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -10801,7 +12746,7 @@ def list_configurations_slot_async(resource_group_name, name, slot, custom_heade if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteConfigResourceCollection.mapper() + result_mapper = Azure::ARM::Web::Models::ConnectionStringDictionary.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -10815,66 +12760,62 @@ def list_configurations_slot_async(resource_group_name, name, slot, custom_heade end # - # Replaces the application settings of an app. + # Gets the logging configuration of an app. # - # Replaces the application settings of an app. + # Gets the logging configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param app_settings [StringDictionary] Application settings of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the application settings for the production slot. + # the API will get the logging configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [StringDictionary] operation results. + # @return [SiteLogsConfig] 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 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! response.body unless response.nil? end # - # Replaces the application settings of an app. + # Gets the logging configuration of an app. # - # Replaces the application settings of an app. + # Gets the logging configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param app_settings [StringDictionary] Application settings of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the application settings for the production slot. + # the API will get the logging configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Replaces the application settings of an app. + # Gets the logging configuration of an app. # - # Replaces the application settings of an app. + # Gets the logging configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param app_settings [StringDictionary] Application settings of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the application settings for the production slot. + # the API will get the logging configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'app_settings is nil' if app_settings.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -10885,15 +12826,7 @@ def update_application_settings_slot_async(resource_group_name, name, app_settin # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() - request_content = @client.serialize(request_mapper, app_settings) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs' request_url = @base_url || @client.base_url @@ -10901,11 +12834,10 @@ def update_application_settings_slot_async(resource_group_name, name, app_settin middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -10921,7 +12853,7 @@ def update_application_settings_slot_async(resource_group_name, name, app_settin if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() + result_mapper = Azure::ARM::Web::Models::SiteLogsConfig.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -10935,62 +12867,69 @@ def update_application_settings_slot_async(resource_group_name, name, app_settin end # - # Gets the application settings of an app. + # Updates the logging configuration of an app. # - # Gets the application settings of an app. + # Updates the logging configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_logs_config [SiteLogsConfig] A SiteLogsConfig JSON object that + # contains the logging configuration to change in the "properties" property. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the application settings for the production slot. + # the API will update the logging configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [StringDictionary] operation results. + # @return [SiteLogsConfig] 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 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! response.body unless response.nil? end # - # Gets the application settings of an app. + # Updates the logging configuration of an app. # - # Gets the application settings of an app. + # Updates the logging configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_logs_config [SiteLogsConfig] A SiteLogsConfig JSON object that + # contains the logging configuration to change in the "properties" property. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the application settings for the production slot. + # the API will update the logging configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the application settings of an app. + # Updates the logging configuration of an app. # - # Gets the application settings of an app. + # Updates the logging configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_logs_config [SiteLogsConfig] A SiteLogsConfig JSON object that + # contains the logging configuration to change in the "properties" property. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the application settings for the production slot. + # the API will update the logging configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'site_logs_config is nil' if site_logs_config.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -11001,7 +12940,15 @@ def list_application_settings_slot_async(resource_group_name, name, slot, custom # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings/list' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::SiteLogsConfig.mapper() + request_content = @client.serialize(request_mapper, site_logs_config) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs' request_url = @base_url || @client.base_url @@ -11009,10 +12956,11 @@ def list_application_settings_slot_async(resource_group_name, name, slot, custom middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -11028,7 +12976,7 @@ def list_application_settings_slot_async(resource_group_name, name, slot, custom if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() + result_mapper = Azure::ARM::Web::Models::SiteLogsConfig.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11042,69 +12990,69 @@ def list_application_settings_slot_async(resource_group_name, name, slot, custom end # - # Updates the Authentication / Authorization settings associated with web app. + # Replaces the metadata of an app. # - # Updates the Authentication / Authorization settings associated with web app. + # Replaces the metadata of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param site_auth_settings [SiteAuthSettings] Auth settings associated with - # web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param metadata [StringDictionary] Edited metadata of the app or deployment + # slot. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the metadata for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteAuthSettings] operation results. + # @return [StringDictionary] 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_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! response.body unless response.nil? end # - # Updates the Authentication / Authorization settings associated with web app. + # Replaces the metadata of an app. # - # Updates the Authentication / Authorization settings associated with web app. + # Replaces the metadata of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param site_auth_settings [SiteAuthSettings] Auth settings associated with - # web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param metadata [StringDictionary] Edited metadata of the app or deployment + # slot. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the metadata for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Updates the Authentication / Authorization settings associated with web app. + # Replaces the metadata of an app. # - # Updates the Authentication / Authorization settings associated with web app. + # Replaces the metadata of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param site_auth_settings [SiteAuthSettings] Auth settings associated with - # web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param metadata [StringDictionary] Edited metadata of the app or deployment + # slot. See example. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the metadata for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'site_auth_settings is nil' if site_auth_settings.nil? + fail ArgumentError, 'metadata is nil' if metadata.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -11119,11 +13067,11 @@ def update_auth_settings_slot_async(resource_group_name, name, site_auth_setting request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::SiteAuthSettings.mapper() - request_content = @client.serialize(request_mapper, site_auth_settings) + request_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() + request_content = @client.serialize(request_mapper, metadata) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata' request_url = @base_url || @client.base_url @@ -11151,7 +13099,7 @@ def update_auth_settings_slot_async(resource_group_name, name, site_auth_setting if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteAuthSettings.mapper() + result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11165,60 +13113,60 @@ def update_auth_settings_slot_async(resource_group_name, name, site_auth_setting end # - # Gets the Authentication/Authorization settings of an app. + # Gets the metadata of an app. # - # Gets the Authentication/Authorization settings of an app. + # Gets the metadata of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the settings for the production slot. + # the API will get the metadata for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteAuthSettings] operation results. + # @return [StringDictionary] 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 list_metadata_slot(resource_group_name, name, slot, custom_headers = nil) + response = list_metadata_slot_async(resource_group_name, name, slot, custom_headers).value! response.body unless response.nil? end # - # Gets the Authentication/Authorization settings of an app. + # Gets the metadata of an app. # - # Gets the Authentication/Authorization settings of an app. + # Gets the metadata of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the settings for the production slot. + # the API will get the metadata for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the Authentication/Authorization settings of an app. + # Gets the metadata of an app. # - # Gets the Authentication/Authorization settings of an app. + # Gets the metadata of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the settings for the production slot. + # the API will get the metadata for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -11231,7 +13179,7 @@ def get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings/list' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata/list' request_url = @base_url || @client.base_url @@ -11258,7 +13206,7 @@ def get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteAuthSettings.mapper() + result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11272,66 +13220,116 @@ def get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers end # - # Updates the backup configuration of an app. + # Gets the Git/FTP publishing credentials of an app. # - # Updates the backup configuration of an app. + # Gets the Git/FTP publishing credentials of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param request [BackupRequest] Edited backup configuration. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the backup configuration for the production slot. + # the API will get the publishing credentials for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [BackupRequest] operation results. + # @return [User] 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 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! response.body unless response.nil? end - # - # Updates the backup configuration of an app. - # - # Updates the backup configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param request [BackupRequest] Edited backup configuration. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the backup configuration for the production slot. + # the API will get the publishing credentials for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # Send request + promise = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::User.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Updates the Push settings associated with web app. + # + # Updates the Push settings associated with web app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param push_settings [PushSettings] Push settings associated with web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Updates the Push settings associated with web app. + # + # Updates the Push settings associated with web app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param push_settings [PushSettings] Push settings associated with web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Updates the backup configuration of an app. + # Updates the Push settings associated with web app. # - # Updates the backup configuration of an app. + # Updates the Push settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param request [BackupRequest] Edited backup configuration. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the backup configuration for the production slot. + # @param name [String] Name of web app + # @param push_settings [PushSettings] Push settings associated with web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, 'push_settings is nil' if push_settings.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -11346,11 +13344,11 @@ def update_backup_configuration_slot_async(resource_group_name, name, request, s request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() - request_content = @client.serialize(request_mapper, request) + request_mapper = Azure::ARM::Web::Models::PushSettings.mapper() + request_content = @client.serialize(request_mapper, push_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings' request_url = @base_url || @client.base_url @@ -11378,7 +13376,7 @@ def update_backup_configuration_slot_async(resource_group_name, name, request, s if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() + result_mapper = Azure::ARM::Web::Models::PushSettings.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11392,59 +13390,60 @@ def update_backup_configuration_slot_async(resource_group_name, name, request, s end # - # Deletes the backup configuration of an app. + # Gets the Push settings associated with web app. # - # Deletes the backup configuration of an app. + # Gets the Push settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the backup configuration for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [PushSettings] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Deletes the backup configuration of an app. + # Gets the Push settings associated with web app. # - # Deletes the backup configuration of an app. + # Gets the Push settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the backup configuration for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Deletes the backup configuration of an app. + # Gets the Push settings associated with web app. # - # Deletes the backup configuration of an app. + # Gets the Push settings associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the backup configuration for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -11457,7 +13456,7 @@ def delete_backup_configuration_slot_async(resource_group_name, name, slot, cust # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings/list' request_url = @base_url || @client.base_url @@ -11468,7 +13467,7 @@ def delete_backup_configuration_slot_async(resource_group_name, name, slot, cust headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -11480,6 +13479,16 @@ def delete_backup_configuration_slot_async(resource_group_name, name, slot, cust end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PushSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -11488,60 +13497,66 @@ def delete_backup_configuration_slot_async(resource_group_name, name, slot, cust end # - # Gets the backup configuration of an app. + # Gets the configuration of an app, such as platform version and bitness, + # default documents, virtual applications, Always On, etc. # - # Gets the backup configuration of an app. + # Gets the configuration of an app, such as platform version and bitness, + # default documents, virtual applications, Always On, etc. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the backup configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [BackupRequest] operation results. + # @return [SiteConfigResource] 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_configuration_slot(resource_group_name, name, slot, custom_headers = nil) + response = get_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! response.body unless response.nil? end # - # Gets the backup configuration of an app. + # Gets the configuration of an app, such as platform version and bitness, + # default documents, virtual applications, Always On, etc. # - # Gets the backup configuration of an app. + # Gets the configuration of an app, such as platform version and bitness, + # default documents, virtual applications, Always On, etc. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the backup configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets the backup configuration of an app. + # Gets the configuration of an app, such as platform version and bitness, + # default documents, virtual applications, Always On, etc. # - # Gets the backup configuration of an app. + # Gets the configuration of an app, such as platform version and bitness, + # default documents, virtual applications, Always On, etc. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the backup configuration for the production slot. + # the API will return configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -11554,7 +13569,7 @@ def get_backup_configuration_slot_async(resource_group_name, name, slot, custom_ # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup/list' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' request_url = @base_url || @client.base_url @@ -11565,7 +13580,7 @@ def get_backup_configuration_slot_async(resource_group_name, name, slot, custom_ headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -11581,7 +13596,7 @@ def get_backup_configuration_slot_async(resource_group_name, name, slot, custom_ if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::BackupRequest.mapper() + result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11595,69 +13610,69 @@ def get_backup_configuration_slot_async(resource_group_name, name, slot, custom_ end # - # Replaces the connection strings of an app. + # Updates the configuration of an app. # - # Replaces the connection strings of an app. + # Updates the configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param connection_strings [ConnectionStringDictionary] Connection strings of - # the app or deployment slot. See example. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the connection settings for the production slot. + # the API will update configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ConnectionStringDictionary] operation results. + # @return [SiteConfigResource] 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 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! response.body unless response.nil? end # - # Replaces the connection strings of an app. + # Updates the configuration of an app. # - # Replaces the connection strings of an app. + # Updates the configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param connection_strings [ConnectionStringDictionary] Connection strings of - # the app or deployment slot. See example. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the connection settings for the production slot. + # the API will update configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Replaces the connection strings of an app. + # Updates the configuration of an app. # - # Replaces the connection strings of an app. + # Updates the configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param connection_strings [ConnectionStringDictionary] Connection strings of - # the app or deployment slot. See example. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the connection settings for the production slot. + # the API will update configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'connection_strings is nil' if connection_strings.nil? + fail ArgumentError, 'site_config is nil' if site_config.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -11672,11 +13687,11 @@ def update_connection_strings_slot_async(resource_group_name, name, connection_s request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::ConnectionStringDictionary.mapper() - request_content = @client.serialize(request_mapper, connection_strings) + request_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() + request_content = @client.serialize(request_mapper, site_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' request_url = @base_url || @client.base_url @@ -11704,7 +13719,7 @@ def update_connection_strings_slot_async(resource_group_name, name, connection_s if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ConnectionStringDictionary.mapper() + result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11718,62 +13733,69 @@ def update_connection_strings_slot_async(resource_group_name, name, connection_s end # - # Gets the connection strings of an app. + # Updates the configuration of an app. # - # Gets the connection strings of an app. + # Updates the configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the connection settings for the production slot. + # the API will update configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ConnectionStringDictionary] operation results. + # @return [SiteConfigResource] 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 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! response.body unless response.nil? end # - # Gets the connection strings of an app. + # Updates the configuration of an app. # - # Gets the connection strings of an app. + # Updates the configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the connection settings for the production slot. + # the API will update configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the connection strings of an app. + # Updates the configuration of an app. # - # Gets the connection strings of an app. + # Updates the configuration of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param site_config [SiteConfigResource] JSON representation of a SiteConfig + # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the connection settings for the production slot. + # the API will update configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'site_config is nil' if site_config.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -11784,7 +13806,15 @@ def list_connection_strings_slot_async(resource_group_name, name, slot, custom_h # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings/list' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() + request_content = @client.serialize(request_mapper, site_config) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' request_url = @base_url || @client.base_url @@ -11792,10 +13822,11 @@ def list_connection_strings_slot_async(resource_group_name, name, slot, custom_h middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response @@ -11811,7 +13842,7 @@ def list_connection_strings_slot_async(resource_group_name, name, slot, custom_h if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ConnectionStringDictionary.mapper() + result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11825,60 +13856,66 @@ def list_connection_strings_slot_async(resource_group_name, name, slot, custom_h end # - # Gets the logging configuration of an app. + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # Gets the logging configuration of an app. + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the logging configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteLogsConfig] operation results. + # @return [Array] 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 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! response.body unless response.nil? end # - # Gets the logging configuration of an app. + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # Gets the logging configuration of an app. + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the logging configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the logging configuration of an app. + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # - # Gets the logging configuration of an app. + # Gets a list of web app configuration snapshots identifiers. Each element of + # the list contains a timestamp and the ID of the snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the logging configuration for the production slot. + # the API will return configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -11891,7 +13928,7 @@ def get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots' request_url = @base_url || @client.base_url @@ -11918,7 +13955,21 @@ def get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteLogsConfig.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SiteConfigurationSnapshotInfoElementType', + type: { + name: 'Composite', + class_name: 'SiteConfigurationSnapshotInfo' + } + } + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -11932,69 +13983,66 @@ def get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot end # - # Updates the logging configuration of an app. + # Gets a snapshot of the configuration of an app at a previous point in time. # - # Updates the logging configuration of an app. + # Gets a snapshot of the configuration of an app at a previous point in time. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_logs_config [SiteLogsConfig] A SiteLogsConfig JSON object that - # contains the logging configuration to change in the "properties" property. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the logging configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteLogsConfig] operation results. + # @return [SiteConfigResource] 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 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! response.body unless response.nil? end # - # Updates the logging configuration of an app. + # Gets a snapshot of the configuration of an app at a previous point in time. # - # Updates the logging configuration of an app. + # Gets a snapshot of the configuration of an app at a previous point in time. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_logs_config [SiteLogsConfig] A SiteLogsConfig JSON object that - # contains the logging configuration to change in the "properties" property. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the logging configuration for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Updates the logging configuration of an app. + # Gets a snapshot of the configuration of an app at a previous point in time. # - # Updates the logging configuration of an app. + # Gets a snapshot of the configuration of an app at a previous point in time. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_logs_config [SiteLogsConfig] A SiteLogsConfig JSON object that - # contains the logging configuration to change in the "properties" property. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the logging configuration for the production slot. + # the API will return configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'site_logs_config is nil' if site_logs_config.nil? + fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12005,27 +14053,18 @@ def update_diagnostic_logs_config_slot_async(resource_group_name, name, site_log # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::SiteLogsConfig.mapper() - request_content = @client.serialize(request_mapper, site_logs_config) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -12041,7 +14080,7 @@ def update_diagnostic_logs_config_slot_async(resource_group_name, name, site_log if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteLogsConfig.mapper() + result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -12055,121 +14094,98 @@ def update_diagnostic_logs_config_slot_async(resource_group_name, name, site_log end # - # Replaces the metadata of an app. + # Reverts the configuration of an app to a previous snapshot. # - # Replaces the metadata of an app. + # Reverts the configuration of an app to a previous snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param metadata [StringDictionary] Edited metadata of the app or deployment - # slot. See example. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the metadata for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Replaces the metadata of an app. + # Reverts the configuration of an app to a previous snapshot. # - # Replaces the metadata of an app. + # Reverts the configuration of an app to a previous snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param metadata [StringDictionary] Edited metadata of the app or deployment - # slot. See example. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the metadata for the production slot. + # the API will return configuration for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Replaces the metadata of an app. + # Reverts the configuration of an app to a previous snapshot. # - # Replaces the metadata of an app. + # Reverts the configuration of an app to a previous snapshot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param metadata [StringDictionary] Edited metadata of the app or deployment - # slot. See example. + # @param snapshot_id [String] The ID of the snapshot to read. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the metadata for the production slot. + # the API will return configuration for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'metadata is nil' if metadata.nil? + fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - api_version = '2016-08-01' - - - request_headers = {} - - # Set Headers - request_headers['x-ms-client-request-id'] = SecureRandom.uuid - request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() - request_content = @client.serialize(request_mapper, metadata) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + api_version = '2016-08-01' - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata' + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -12178,60 +14194,66 @@ def update_metadata_slot_async(resource_group_name, name, metadata, slot, custom end # - # Gets the metadata of an app. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Gets the metadata of an app. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the metadata for the production slot. + # the API returns deployments for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [StringDictionary] operation results. + # @return [Array] 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! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Gets the metadata of an app. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Gets the metadata of an app. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the metadata for the production slot. + # the API returns deployments for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets the metadata of an app. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Gets the metadata of an app. + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the metadata for the production slot. + # the API returns deployments for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -12244,7 +14266,7 @@ def list_metadata_slot_async(resource_group_name, name, slot, custom_headers = n # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata/list' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments' request_url = @base_url || @client.base_url @@ -12255,7 +14277,7 @@ def list_metadata_slot_async(resource_group_name, name, slot, custom_headers = n headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -12271,7 +14293,7 @@ def list_metadata_slot_async(resource_group_name, name, slot, custom_headers = n if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::StringDictionary.mapper() + result_mapper = Azure::ARM::Web::Models::DeploymentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -12285,116 +14307,72 @@ def list_metadata_slot_async(resource_group_name, name, slot, custom_headers = n end # - # Gets the Git/FTP publishing credentials of an app. - # - # Gets the Git/FTP publishing credentials of an app. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the publishing credentials for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @return [User] operation results. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - 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! - response.body unless response.nil? - end - + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the publishing credentials for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @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) - # Send request - promise = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers) - - promise = promise.then do |response| - # Defining deserialization method. - deserialize_method = lambda do |parsed_response| - result_mapper = Azure::ARM::Web::Models::User.mapper() - parsed_response = @client.deserialize(result_mapper, parsed_response) - end - - # Waiting for response. - @client.get_long_running_operation_result(response, deserialize_method) - end - - promise - end - - # - # Updates the Push settings associated with web app. - # - # Updates the Push settings associated with web app. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of web app - # @param push_settings [PushSettings] Push settings associated with web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # the API gets a deployment for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PushSettings] operation results. + # @return [Deployment] 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 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! response.body unless response.nil? end # - # Updates the Push settings associated with web app. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Updates the Push settings associated with web app. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param push_settings [PushSettings] Push settings associated with web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API gets a deployment for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Updates the Push settings associated with web app. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Updates the Push settings associated with web app. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param push_settings [PushSettings] Push settings associated with web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param id [String] Deployment ID. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API gets a deployment for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'push_settings is nil' if push_settings.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12405,27 +14383,18 @@ def update_site_push_settings_slot_async(resource_group_name, name, push_setting # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::PushSettings.mapper() - request_content = @client.serialize(request_mapper, push_settings) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -12441,7 +14410,7 @@ def update_site_push_settings_slot_async(resource_group_name, name, push_setting if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PushSettings.mapper() + result_mapper = Azure::ARM::Web::Models::Deployment.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -12455,63 +14424,77 @@ def update_site_push_settings_slot_async(resource_group_name, name, push_setting end # - # Gets the Push settings associated with web app. + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Gets the Push settings associated with web app. + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param id [String] ID of an existing deployment. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API creates a deployment for the production slot. + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PushSettings] operation results. + # @return [Deployment] 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 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! response.body unless response.nil? end # - # Gets the Push settings associated with web app. + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Gets the Push settings associated with web app. + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param id [String] ID of an existing deployment. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API creates a deployment for the production slot. + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the Push settings associated with web app. + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Gets the Push settings associated with web app. + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param id [String] ID of an existing deployment. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API creates a deployment for the production slot. + # @param deployment [Deployment] Deployment details. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12521,18 +14504,27 @@ def list_site_push_settings_slot_async(resource_group_name, name, slot, custom_h # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings/list' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::Deployment.mapper() + request_content = @client.serialize(request_mapper, deployment) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -12548,7 +14540,7 @@ def list_site_push_settings_slot_async(resource_group_name, name, slot, custom_h if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PushSettings.mapper() + result_mapper = Azure::ARM::Web::Models::Deployment.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -12562,68 +14554,71 @@ def list_site_push_settings_slot_async(resource_group_name, name, slot, custom_h end # - # Gets the configuration of an app, such as platform version and bitness, - # default documents, virtual applications, Always On, etc. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Gets the configuration of an app, such as platform version and bitness, - # default documents, virtual applications, Always On, etc. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API deletes a deployment for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Gets the configuration of an app, such as platform version and bitness, - # default documents, virtual applications, Always On, etc. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Gets the configuration of an app, such as platform version and bitness, - # default documents, virtual applications, Always On, etc. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API deletes a deployment for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the configuration of an app, such as platform version and bitness, - # default documents, virtual applications, Always On, etc. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Gets the configuration of an app, such as platform version and bitness, - # default documents, virtual applications, Always On, etc. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API deletes a deployment for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_configuration_slot_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12634,39 +14629,29 @@ def get_configuration_slot_async(resource_group_name, name, slot, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -12675,69 +14660,62 @@ def get_configuration_slot_async(resource_group_name, name, slot, custom_headers end # - # Updates the configuration of an app. + # Lists ownership identifiers for domain associated with web app. # - # Updates the configuration of an app. + # Lists ownership identifiers for domain associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteConfigResource] operation results. + # @return [Array] 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! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Updates the configuration of an app. + # Lists ownership identifiers for domain associated with web app. # - # Updates the configuration of an app. + # Lists ownership identifiers for domain associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Updates the configuration of an app. + # Lists ownership identifiers for domain associated with web app. # - # Updates the configuration of an app. + # Lists ownership identifiers for domain associated with web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will delete the binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'site_config is nil' if site_config.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12748,15 +14726,7 @@ def create_or_update_configuration_slot_async(resource_group_name, name, site_co # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() - request_content = @client.serialize(request_mapper, site_config) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers' request_url = @base_url || @client.base_url @@ -12764,11 +14734,10 @@ def create_or_update_configuration_slot_async(resource_group_name, name, site_co middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -12784,7 +14753,7 @@ def create_or_update_configuration_slot_async(resource_group_name, name, site_co if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() + result_mapper = Azure::ARM::Web::Models::IdentifierCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -12798,69 +14767,69 @@ def create_or_update_configuration_slot_async(resource_group_name, name, site_co end # - # Updates the configuration of an app. + # Get domain ownership identifier for web app. # - # Updates the configuration of an app. + # Get domain ownership identifier for web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteConfigResource] operation results. + # @return [Identifier] 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 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! response.body unless response.nil? end # - # Updates the configuration of an app. + # Get domain ownership identifier for web app. # - # Updates the configuration of an app. + # Get domain ownership identifier for web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Updates the configuration of an app. + # Get domain ownership identifier for web app. # - # Updates the configuration of an app. + # Get domain ownership identifier for web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param site_config [SiteConfigResource] JSON representation of a SiteConfig - # object. See example. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update configuration for the production slot. + # the API will delete the binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'site_config is nil' if site_config.nil? + fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12871,27 +14840,18 @@ def update_configuration_slot_async(resource_group_name, name, site_config, slot # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() - request_content = @client.serialize(request_mapper, site_config) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -12907,7 +14867,7 @@ def update_configuration_slot_async(resource_group_name, name, site_config, slot if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() + result_mapper = Azure::ARM::Web::Models::Identifier.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -12921,68 +14881,82 @@ def update_configuration_slot_async(resource_group_name, name, site_config, slot end # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. + # @param domain_ownership_identifier [Identifier] A JSON representation of the + # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [Identifier] 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 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! response.body unless response.nil? end # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. + # @param domain_ownership_identifier [Identifier] A JSON representation of the + # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # - # Gets a list of web app configuration snapshots identifiers. Each element of - # the list contains a timestamp and the ID of the snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. + # @param domain_ownership_identifier [Identifier] A JSON representation of the + # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? + fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -12993,18 +14967,27 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::Identifier.mapper() + request_content = @client.serialize(request_mapper, domain_ownership_identifier) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -13020,21 +15003,7 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - required: false, - serialized_name: 'parsed_response', - type: { - name: 'Sequence', - element: { - required: false, - serialized_name: 'SiteConfigurationSnapshotInfoElementType', - type: { - name: 'Composite', - class_name: 'SiteConfigurationSnapshotInfo' - } - } - } - } + result_mapper = Azure::ARM::Web::Models::Identifier.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -13048,66 +15017,68 @@ def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, end # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Deletes a domain ownership identifier for a web app. # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Deletes a domain ownership identifier for a web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Deletes a domain ownership identifier for a web app. # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Deletes a domain ownership identifier for a web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Deletes a domain ownership identifier for a web app. # - # Gets a snapshot of the configuration of an app at a previous point in time. + # Deletes a domain ownership identifier for a web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? + fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13118,39 +15089,29 @@ def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteConfigResource.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -13159,65 +15120,82 @@ def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id end # - # Reverts the configuration of an app to a previous snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # - # Reverts the configuration of an app to a previous snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. + # @param domain_ownership_identifier [Identifier] A JSON representation of the + # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Identifier] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Reverts the configuration of an app to a previous snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # - # Reverts the configuration of an app to a previous snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. + # @param domain_ownership_identifier [Identifier] A JSON representation of the + # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Reverts the configuration of an app to a previous snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # - # Reverts the configuration of an app to a previous snapshot. + # Creates a domain ownership identifier for web app, or updates an existing + # ownership identifier. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param snapshot_id [String] The ID of the snapshot to read. + # @param domain_ownership_identifier_name [String] Name of domain ownership + # identifier. + # @param domain_ownership_identifier [Identifier] A JSON representation of the + # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will return configuration for the production slot. + # the API will delete the binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'snapshot_id is nil' if snapshot_id.nil? + fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? + fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13228,29 +15206,48 @@ def recover_site_configuration_snapshot_slot_async(resource_group_name, name, sn # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::Identifier.mapper() + request_content = @client.serialize(request_mapper, domain_ownership_identifier) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'snapshotId' => snapshot_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::Identifier.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -13259,66 +15256,60 @@ def recover_site_configuration_snapshot_slot_async(resource_group_name, name, sn end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Invoke the MSDeploy web app extension as pass-through API # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API returns deployments for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [MSDeployStatus] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Invoke the MSDeploy web app extension as pass-through API # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API returns deployments for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Invoke the MSDeploy web app extension as pass-through API # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API returns deployments for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployments_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -13331,7 +15322,7 @@ def list_deployments_slot_async(resource_group_name, name, slot, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy' request_url = @base_url || @client.base_url @@ -13358,7 +15349,7 @@ def list_deployments_slot_async(resource_group_name, name, slot, custom_headers if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::DeploymentCollection.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -13372,72 +15363,114 @@ def list_deployments_slot_async(resource_group_name, name, slot, custom_headers end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Invoke the MSDeploy web app extension as pass-through API # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets a deployment for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [MSDeployStatus] 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 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! response.body unless response.nil? end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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) + # Send request + promise = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Invoke the MSDeploy Log web app extension as pass-through API + # + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets a deployment for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Invoke the MSDeploy Log web app extension as pass-through API # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets a deployment for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13448,13 +15481,13 @@ def get_deployment_slot_async(resource_group_name, name, id, slot, custom_header # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy/log' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -13475,7 +15508,7 @@ def get_deployment_slot_async(resource_group_name, name, id, slot, custom_header if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Deployment.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployLog.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -13489,77 +15522,63 @@ def get_deployment_slot_async(resource_group_name, name, id, slot, custom_header end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Fetch a short lived token that can be exchanged for a master key. # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Fetch a short lived token that can be exchanged for a master key. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API creates a deployment for the production slot. - # @param deployment [Deployment] Deployment details. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [String] 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 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! response.body unless response.nil? end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Fetch a short lived token that can be exchanged for a master key. # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Fetch a short lived token that can be exchanged for a master key. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API creates a deployment for the production slot. - # @param deployment [Deployment] Deployment details. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Fetch a short lived token that can be exchanged for a master key. # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Fetch a short lived token that can be exchanged for a master key. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API creates a deployment for the production slot. - # @param deployment [Deployment] Deployment details. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13569,27 +15588,18 @@ def create_deployment_slot_async(resource_group_name, name, id, slot, deployment # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::Deployment.mapper() - request_content = @client.serialize(request_mapper, deployment) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/admin/token' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -13605,7 +15615,13 @@ def create_deployment_slot_async(resource_group_name, name, id, slot, deployment if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Deployment.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -13619,71 +15635,62 @@ def create_deployment_slot_async(resource_group_name, name, id, slot, deployment end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Get hostname bindings for an app or a deployment slot. # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Get hostname bindings for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API deletes a deployment for the production slot. + # the API gets hostname bindings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Array] operation results. # - 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! - nil + 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) + first_page.get_all_items end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Get hostname bindings for an app or a deployment slot. # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Get hostname bindings for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API deletes a deployment for the production slot. + # the API gets hostname bindings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Get hostname bindings for an app or a deployment slot. # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Get hostname bindings for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API deletes a deployment for the production slot. + # the API gets hostname bindings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13694,29 +15701,39 @@ def delete_deployment_slot_async(resource_group_name, name, id, slot, custom_hea # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::HostNameBindingCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -13725,63 +15742,67 @@ def delete_deployment_slot_async(resource_group_name, name, id, slot, custom_hea end # - # Lists ownership identifiers for domain associated with web app. + # Get the named hostname binding for an app (or deployment slot, if specified). # - # Lists ownership identifiers for domain associated with web app. + # Get the named hostname binding for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # the API the named binding for the production slot. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [HostNameBinding] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Lists ownership identifiers for domain associated with web app. + # Get the named hostname binding for an app (or deployment slot, if specified). # - # Lists ownership identifiers for domain associated with web app. + # Get the named hostname binding for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # the API the named binding for the production slot. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Lists ownership identifiers for domain associated with web app. + # Get the named hostname binding for an app (or deployment slot, if specified). # - # Lists ownership identifiers for domain associated with web app. + # Get the named hostname binding for an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # the API the named binding for the production slot. + # @param host_name [String] Hostname in the hostname binding. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13791,13 +15812,13 @@ def list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -13818,7 +15839,7 @@ def list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::IdentifierCollection.mapper() + result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -13832,69 +15853,73 @@ def list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot end # - # Get domain ownership identifier for web app. + # Creates a hostname binding for an app. # - # Get domain ownership identifier for web app. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. + # @param host_name [String] Hostname in the hostname binding. + # @param host_name_binding [HostNameBinding] Binding details. This is the JSON + # representation of a HostNameBinding object. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # the API will create a binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Identifier] operation results. + # @return [HostNameBinding] 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 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! response.body unless response.nil? end # - # Get domain ownership identifier for web app. + # Creates a hostname binding for an app. # - # Get domain ownership identifier for web app. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. + # @param host_name [String] Hostname in the hostname binding. + # @param host_name_binding [HostNameBinding] Binding details. This is the JSON + # representation of a HostNameBinding object. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # the API will create a binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Get domain ownership identifier for web app. + # Creates a hostname binding for an app. # - # Get domain ownership identifier for web app. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. + # @param host_name [String] Hostname in the hostname binding. + # @param host_name_binding [HostNameBinding] Binding details. This is the JSON + # representation of a HostNameBinding object. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # the API will create a binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? + fail ArgumentError, 'host_name is nil' if host_name.nil? + fail ArgumentError, 'host_name_binding is nil' if host_name_binding.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -13902,21 +15927,30 @@ def get_domain_ownership_identifier_slot_async(resource_group_name, name, domain request_headers = {} - # Set Headers - request_headers['x-ms-client-request-id'] = SecureRandom.uuid - request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() + request_content = @client.serialize(request_mapper, host_name_binding) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -13932,7 +15966,7 @@ def get_domain_ownership_identifier_slot_async(resource_group_name, name, domain if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Identifier.mapper() + result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -13946,83 +15980,66 @@ def get_domain_ownership_identifier_slot_async(resource_group_name, name, domain end # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Deletes a hostname binding for an app. # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param domain_ownership_identifier [Identifier] A JSON representation of the - # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API will delete the binding for the production slot. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Deletes a hostname binding for an app. # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param domain_ownership_identifier [Identifier] A JSON representation of the - # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API will delete the binding for the production slot. + # @param host_name [String] Hostname in the hostname binding. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Deletes a hostname binding for an app. # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param domain_ownership_identifier [Identifier] A JSON representation of the - # domain ownership properties. # @param slot [String] Name of the deployment slot. If a slot is not specified, # the API will delete the binding for the production slot. + # @param host_name [String] Hostname in the hostname binding. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? - fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14032,48 +16049,29 @@ def create_or_update_domain_ownership_identifier_slot_async(resource_group_name, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::Identifier.mapper() - request_content = @client.serialize(request_mapper, domain_ownership_identifier) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Identifier.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -14082,68 +16080,67 @@ def create_or_update_domain_ownership_identifier_slot_async(resource_group_name, end # - # Deletes a domain ownership identifier for a web app. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # - # Deletes a domain ownership identifier for a web app. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [HybridConnection] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Deletes a domain ownership identifier for a web app. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # - # Deletes a domain ownership identifier for a web app. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Deletes a domain ownership identifier for a web app. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # - # Deletes a domain ownership identifier for a web app. + # Retrieves a specific Service Bus Hybrid Connection used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14154,29 +16151,39 @@ def delete_domain_ownership_identifier_slot_async(resource_group_name, name, dom # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -14185,82 +16192,74 @@ def delete_domain_ownership_identifier_slot_async(resource_group_name, name, dom end # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Creates a new Hybrid Connection using a Service Bus relay. # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param domain_ownership_identifier [Identifier] A JSON representation of the - # domain ownership properties. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Identifier] operation results. + # @return [HybridConnection] 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 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! response.body unless response.nil? end # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Creates a new Hybrid Connection using a Service Bus relay. # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param domain_ownership_identifier [Identifier] A JSON representation of the - # domain ownership properties. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Creates a new Hybrid Connection using a Service Bus relay. # - # Creates a domain ownership identifier for web app, or updates an existing - # ownership identifier. + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param domain_ownership_identifier_name [String] Name of domain ownership - # identifier. - # @param domain_ownership_identifier [Identifier] A JSON representation of the - # domain ownership properties. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection + # @param slot [String] The name of the slot for the web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? - fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14275,23 +16274,23 @@ def update_domain_ownership_identifier_slot_async(resource_group_name, name, dom request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::Identifier.mapper() - request_content = @client.serialize(request_mapper, domain_ownership_identifier) + request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -14307,7 +16306,7 @@ def update_domain_ownership_identifier_slot_async(resource_group_name, name, dom if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Identifier.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -14321,62 +16320,66 @@ def update_domain_ownership_identifier_slot_async(resource_group_name, name, dom end # - # Get hostname bindings for an app or a deployment slot. + # Removes a Hybrid Connection from this site. # - # Get hostname bindings for an app or a deployment slot. + # Removes a Hybrid Connection from this site. # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets hostname bindings for the production slot. + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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) - first_page.get_all_items + 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! + nil end # - # Get hostname bindings for an app or a deployment slot. + # Removes a Hybrid Connection from this site. # - # Get hostname bindings for an app or a deployment slot. + # Removes a Hybrid Connection from this site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets hostname bindings for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Get hostname bindings for an app or a deployment slot. + # Removes a Hybrid Connection from this site. # - # Get hostname bindings for an app or a deployment slot. + # Removes a Hybrid Connection from this site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets hostname bindings for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14387,39 +16390,29 @@ def list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_h # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HostNameBindingCollection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -14428,67 +16421,75 @@ def list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_h end # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Creates a new Hybrid Connection using a Service Bus relay. # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API the named binding for the production slot. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HostNameBinding] operation results. + # @return [HybridConnection] 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 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! response.body unless response.nil? end # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Creates a new Hybrid Connection using a Service Bus relay. # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API the named binding for the production slot. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Creates a new Hybrid Connection using a Service Bus relay. # - # Get the named hostname binding for an app (or deployment slot, if specified). + # Creates a new Hybrid Connection using a Service Bus relay. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API the named binding for the production slot. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param connection_envelope [HybridConnection] The details of the hybrid + # connection + # @param slot [String] The name of the slot for the web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14498,18 +16499,27 @@ def get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response @@ -14525,7 +16535,7 @@ def get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -14539,73 +16549,67 @@ def get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, end # - # Creates a hostname binding for an app. + # Gets the send key name and value for a Hybrid Connection. # - # Creates a hostname binding for an app. + # Gets the send key name and value for a Hybrid Connection. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. - # @param host_name_binding [HostNameBinding] Binding details. This is the JSON - # representation of a HostNameBinding object. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create a binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HostNameBinding] operation results. + # @return [HybridConnectionKey] 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 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! response.body unless response.nil? end # - # Creates a hostname binding for an app. + # Gets the send key name and value for a Hybrid Connection. # - # Creates a hostname binding for an app. + # Gets the send key name and value for a Hybrid Connection. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. - # @param host_name_binding [HostNameBinding] Binding details. This is the JSON - # representation of a HostNameBinding object. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create a binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a hostname binding for an app. + # Gets the send key name and value for a Hybrid Connection. # - # Creates a hostname binding for an app. + # Gets the send key name and value for a Hybrid Connection. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param host_name [String] Hostname in the hostname binding. - # @param host_name_binding [HostNameBinding] Binding details. This is the JSON - # representation of a HostNameBinding object. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create a binding for the production slot. + # @param name [String] The name of the web app + # @param namespace_name [String] The namespace for this hybrid connection + # @param relay_name [String] The relay name for this hybrid connection + # @param slot [String] The name of the slot for the web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'host_name is nil' if host_name.nil? - fail ArgumentError, 'host_name_binding is nil' if host_name_binding.nil? + fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? + fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14616,27 +16620,18 @@ def create_or_update_host_name_binding_slot_async(resource_group_name, name, hos # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() - request_content = @client.serialize(request_mapper, host_name_binding) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostName' => host_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -14652,7 +16647,7 @@ def create_or_update_host_name_binding_slot_async(resource_group_name, name, hos if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HostNameBinding.mapper() + result_mapper = Azure::ARM::Web::Models::HybridConnectionKey.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -14666,66 +16661,60 @@ def create_or_update_host_name_binding_slot_async(resource_group_name, name, hos end # - # Deletes a hostname binding for an app. + # Retrieves all Service Bus Hybrid Connections used by this Web App. # - # Deletes a hostname binding for an app. + # Retrieves all Service Bus Hybrid Connections used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] The name of the web app + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [HybridConnection] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Deletes a hostname binding for an app. + # Retrieves all Service Bus Hybrid Connections used by this Web App. # - # Deletes a hostname binding for an app. + # Retrieves all Service Bus Hybrid Connections used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] The name of the web app + # @param slot [String] The name of the slot for the web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Deletes a hostname binding for an app. + # Retrieves all Service Bus Hybrid Connections used by this Web App. # - # Deletes a hostname binding for an app. + # Retrieves all Service Bus Hybrid Connections used by this Web App. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the binding for the production slot. - # @param host_name [String] Hostname in the hostname binding. + # @param name [String] The name of the web app + # @param slot [String] The name of the slot for the web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'host_name is nil' if host_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14735,29 +16724,39 @@ def delete_host_name_binding_slot_async(resource_group_name, name, slot, host_na # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionRelays' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'hostName' => host_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -14766,67 +16765,68 @@ def delete_host_name_binding_slot_async(resource_group_name, name, slot, host_na end # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get hybrid connections for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnection] operation results. + # @return [RelayServiceConnectionEntity] 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 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! response.body unless response.nil? end # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get hybrid connections for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # - # Retrieves a specific Service Bus Hybrid Connection used by this Web App. + # Gets hybrid connections configured for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get hybrid connections for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14837,13 +16837,13 @@ def get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -14864,7 +16864,7 @@ def get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -14878,74 +16878,66 @@ def get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Gets a hybrid connection configuration by its name. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Gets a hybrid connection configuration by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnection] operation results. + # @return [RelayServiceConnectionEntity] 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 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! response.body unless response.nil? end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Gets a hybrid connection configuration by its name. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Gets a hybrid connection configuration by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Gets a hybrid connection configuration by its name. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Gets a hybrid connection configuration by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get a hybrid connection for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -14956,27 +16948,18 @@ def create_or_update_hybrid_connection_slot_async(resource_group_name, name, nam # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -14992,7 +16975,7 @@ def create_or_update_hybrid_connection_slot_async(resource_group_name, name, nam if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -15006,66 +16989,79 @@ def create_or_update_hybrid_connection_slot_async(resource_group_name, name, nam end # - # Removes a Hybrid Connection from this site. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Removes a Hybrid Connection from this site. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create or update a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [RelayServiceConnectionEntity] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Removes a Hybrid Connection from this site. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Removes a Hybrid Connection from this site. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create or update a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Removes a Hybrid Connection from this site. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Removes a Hybrid Connection from this site. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create or update a hybrid connection for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15076,29 +17072,48 @@ def delete_hybrid_connection_slot_async(resource_group_name, name, namespace_nam # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -15107,74 +17122,65 @@ def delete_hybrid_connection_slot_async(resource_group_name, name, namespace_nam end # - # Creates a new Hybrid Connection using a Service Bus relay. - # - # Creates a new Hybrid Connection using a Service Bus relay. + # Deletes a relay service connection by its name. # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection - # @param slot [String] The name of the slot for the web app. + # Deletes a relay service connection by its name. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Deletes a relay service connection by its name. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Deletes a relay service connection by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a new Hybrid Connection using a Service Bus relay. + # Deletes a relay service connection by its name. # - # Creates a new Hybrid Connection using a Service Bus relay. + # Deletes a relay service connection by its name. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param connection_envelope [HybridConnection] The details of the hybrid - # connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete a hybrid connection for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15185,48 +17191,29 @@ def update_hybrid_connection_slot_async(resource_group_name, name, namespace_nam # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -15235,67 +17222,79 @@ def update_hybrid_connection_slot_async(resource_group_name, name, namespace_nam end # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create or update a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnectionKey] operation results. + # @return [RelayServiceConnectionEntity] 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 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! response.body unless response.nil? end # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create or update a hybrid connection for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # - # Gets the send key name and value for a Hybrid Connection. + # Creates a new hybrid connection configuration (PUT), or updates an existing + # one (PATCH). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param namespace_name [String] The namespace for this hybrid connection - # @param relay_name [String] The relay name for this hybrid connection - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param entity_name [String] Name of the hybrid connection configuration. + # @param connection_envelope [RelayServiceConnectionEntity] Details of the + # hybrid connection configuration. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will create or update a hybrid connection for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? - fail ArgumentError, 'relay_name is nil' if relay_name.nil? + fail ArgumentError, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15306,18 +17305,27 @@ def list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_ # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + request_content = @client.serialize(request_mapper, connection_envelope) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response @@ -15333,7 +17341,7 @@ def list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_ if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnectionKey.mapper() + result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -15347,57 +17355,60 @@ def list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_ end # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Gets all scale-out instances of an app. # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Gets all scale-out instances of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API gets the production slot instances. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [HybridConnection] operation results. + # @return [Array] 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! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Gets all scale-out instances of an app. # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Gets all scale-out instances of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API gets the production slot instances. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Gets all scale-out instances of an app. # - # Retrieves all Service Bus Hybrid Connections used by this Web App. + # Gets all scale-out instances of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app - # @param slot [String] The name of the slot for the web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API gets the production slot instances. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -15410,7 +17421,7 @@ def list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_h # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionRelays' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances' request_url = @base_url || @client.base_url @@ -15437,7 +17448,7 @@ def list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_h if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::HybridConnection.mapper() + result_mapper = Azure::ARM::Web::Models::WebAppInstanceCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -15451,69 +17462,79 @@ def list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_h end # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get hybrid connections for the production slot. + # the API returns deployments for the production slot. + # @param instance_id [String] The ID of a specific scaled-out instance. This is + # the value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [Array] 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! - response.body unless response.nil? + def list_instance_deployments_slot(resource_group_name, name, slot, instance_id, custom_headers = nil) + first_page = list_instance_deployments_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers) + first_page.get_all_items end # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get hybrid connections for the production slot. + # the API returns deployments for the production slot. + # @param instance_id [String] The ID of a specific scaled-out instance. This is + # the value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_instance_deployments_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers = nil) + list_instance_deployments_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! end # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # - # Gets hybrid connections configured for an app (or deployment slot, if - # specified). + # List deployments for an app, or a deployment slot, or for an instance of a + # scaled-out app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get hybrid connections for the production slot. + # the API returns deployments for the production slot. + # @param instance_id [String] The ID of a specific scaled-out instance. This is + # the value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_instance_deployments_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15523,13 +17544,13 @@ def list_relay_service_connections_slot_async(resource_group_name, name, slot, c # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -15550,7 +17571,7 @@ def list_relay_service_connections_slot_async(resource_group_name, name, slot, c if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::DeploymentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -15564,67 +17585,83 @@ def list_relay_service_connections_slot_async(resource_group_name, name, slot, c end # - # Gets a hybrid connection configuration by its name. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Gets a hybrid connection configuration by its name. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get a hybrid connection for the production slot. + # the API gets a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [Deployment] 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_instance_deployment_slot(resource_group_name, name, id, slot, instance_id, custom_headers = nil) + response = get_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, custom_headers).value! response.body unless response.nil? end # - # Gets a hybrid connection configuration by its name. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Gets a hybrid connection configuration by its name. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get a hybrid connection for the production slot. + # the API gets a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_instance_deployment_slot_with_http_info(resource_group_name, name, id, slot, instance_id, custom_headers = nil) + get_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, custom_headers).value! end # - # Gets a hybrid connection configuration by its name. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # - # Gets a hybrid connection configuration by its name. + # Get a deployment by its ID for an app, a specific deployment slot, and/or a + # specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get a hybrid connection for the production slot. + # the API gets a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, 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, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15634,13 +17671,13 @@ def get_relay_service_connection_slot_async(resource_group_name, name, entity_na # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -15661,7 +17698,7 @@ def get_relay_service_connection_slot_async(resource_group_name, name, entity_na if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::Deployment.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -15675,80 +17712,87 @@ def get_relay_service_connection_slot_async(resource_group_name, name, entity_na end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param id [String] ID of an existing deployment. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create or update a hybrid connection for the production slot. + # the API creates a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [Deployment] 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_instance_deployment_slot(resource_group_name, name, id, slot, instance_id, deployment, custom_headers = nil) + response = create_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, deployment, custom_headers).value! response.body unless response.nil? end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param id [String] ID of an existing deployment. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create or update a hybrid connection for the production slot. + # the API creates a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" + # @param deployment [Deployment] Deployment details. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_instance_deployment_slot_with_http_info(resource_group_name, name, id, slot, instance_id, deployment, custom_headers = nil) + create_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, deployment, custom_headers).value! end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Create a deployment for an app, a specific deployment slot, and/or a specific + # scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. + # @param id [String] ID of an existing deployment. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create or update a hybrid connection for the production slot. + # the API creates a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" + # @param deployment [Deployment] Deployment details. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, deployment, 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, 'entity_name is nil' if entity_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15762,17 +17806,17 @@ def create_or_update_relay_service_connection_slot_async(resource_group_name, na request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) + request_mapper = Azure::ARM::Web::Models::Deployment.mapper() + request_content = @client.serialize(request_mapper, deployment) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -15794,7 +17838,7 @@ def create_or_update_relay_service_connection_slot_async(resource_group_name, na if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::Deployment.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -15808,66 +17852,82 @@ def create_or_update_relay_service_connection_slot_async(resource_group_name, na end # - # Deletes a relay service connection by its name. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Deletes a relay service connection by its name. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete a hybrid connection for the production slot. + # the API deletes a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # 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_instance_deployment_slot(resource_group_name, name, id, slot, instance_id, custom_headers = nil) + response = delete_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, custom_headers).value! nil end # - # Deletes a relay service connection by its name. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Deletes a relay service connection by its name. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete a hybrid connection for the production slot. + # the API deletes a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_instance_deployment_slot_with_http_info(resource_group_name, name, id, slot, instance_id, custom_headers = nil) + delete_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, custom_headers).value! end # - # Deletes a relay service connection by its name. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # - # Deletes a relay service connection by its name. + # Delete a deployment by its ID for an app, a specific deployment slot, and/or + # a specific scaled-out instance. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. + # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete a hybrid connection for the production slot. + # the API deletes a deployment for the production slot. + # @param instance_id [String] ID of a specific scaled-out instance. This is the + # value of the name property in the JSON response from "GET + # api/sites/{siteName}/instances" # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, 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, 'entity_name is nil' if entity_name.nil? + fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15877,13 +17937,13 @@ def delete_relay_service_connection_slot_async(resource_group_name, name, entity # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments/{id}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -15894,7 +17954,7 @@ def delete_relay_service_connection_slot_async(resource_group_name, name, entity http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -15908,80 +17968,67 @@ def delete_relay_service_connection_slot_async(resource_group_name, name, entity end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Invoke the MSDeploy web app extension as pass-through API # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create or update a hybrid connection for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [RelayServiceConnectionEntity] operation results. + # @return [MSDeployStatus] 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 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! response.body unless response.nil? end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Invoke the MSDeploy web app extension as pass-through API # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create or update a hybrid connection for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Invoke the MSDeploy web app extension as pass-through API # - # Creates a new hybrid connection configuration (PUT), or updates an existing - # one (PATCH). + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param entity_name [String] Name of the hybrid connection configuration. - # @param connection_envelope [RelayServiceConnectionEntity] Details of the - # hybrid connection configuration. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will create or update a hybrid connection for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'entity_name is nil' if entity_name.nil? - fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -15991,27 +18038,18 @@ def update_relay_service_connection_slot_async(resource_group_name, name, entity # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() - request_content = @client.serialize(request_mapper, connection_envelope) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'entityName' => entity_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:patch, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -16027,7 +18065,7 @@ def update_relay_service_connection_slot_async(resource_group_name, name, entity if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RelayServiceConnectionEntity.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16041,63 +18079,121 @@ def update_relay_service_connection_slot_async(resource_group_name, name, entity end # - # Gets all scale-out instances of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets all scale-out instances of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets the production slot instances. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [MSDeployStatus] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Gets all scale-out instances of an app. + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. # - # Gets all scale-out instances of an app. + # @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) + # Send request + promise = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets the production slot instances. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # Invoke the MSDeploy Log web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets all scale-out instances of an app. + # Invoke the MSDeploy Log web app extension as pass-through API # - # Gets all scale-out instances of an app. + # Invoke the MSDeploy Log web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets the production slot instances. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -16107,13 +18203,13 @@ def list_instance_identifiers_slot_async(resource_group_name, name, slot, custom # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy/log' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -16134,7 +18230,7 @@ def list_instance_identifiers_slot_async(resource_group_name, name, slot, custom if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::WebAppInstanceCollection.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployLog.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16148,79 +18244,63 @@ def list_instance_identifiers_slot_async(resource_group_name, name, slot, custom end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Shows whether an app can be cloned to another resource group or subscription. # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Shows whether an app can be cloned to another resource group or subscription. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API returns deployments for the production slot. - # @param instance_id [String] The ID of a specific scaled-out instance. This is - # the value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param slot [String] Name of the deployment slot. By default, this API + # returns information on the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [SiteCloneability] operation results. # - def list_instance_deployments_slot(resource_group_name, name, slot, instance_id, custom_headers = nil) - first_page = list_instance_deployments_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Shows whether an app can be cloned to another resource group or subscription. # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Shows whether an app can be cloned to another resource group or subscription. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API returns deployments for the production slot. - # @param instance_id [String] The ID of a specific scaled-out instance. This is - # the value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param slot [String] Name of the deployment slot. By default, this API + # returns information on the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_deployments_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers = nil) - list_instance_deployments_slot_async(resource_group_name, name, slot, instance_id, 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).value! end # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Shows whether an app can be cloned to another resource group or subscription. # - # List deployments for an app, or a deployment slot, or for an instance of a - # scaled-out app. + # Shows whether an app can be cloned to another resource group or subscription. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API returns deployments for the production slot. - # @param instance_id [String] The ID of a specific scaled-out instance. This is - # the value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param slot [String] Name of the deployment slot. By default, this API + # returns information on the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_deployments_slot_async(resource_group_name, name, slot, instance_id, 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -16230,18 +18310,18 @@ def list_instance_deployments_slot_async(resource_group_name, name, slot, instan # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/iscloneable' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -16257,7 +18337,7 @@ def list_instance_deployments_slot_async(resource_group_name, name, slot, instan if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::DeploymentCollection.mapper() + result_mapper = Azure::ARM::Web::Models::SiteCloneability.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16271,83 +18351,63 @@ def list_instance_deployments_slot_async(resource_group_name, name, slot, instan end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Gets all metric definitions of an app (or deployment slot, if specified). # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Gets all metric definitions of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # the API will get metric definitions of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [Array] operation results. # - def get_instance_deployment_slot(resource_group_name, name, id, slot, instance_id, custom_headers = nil) - response = get_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, custom_headers).value! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Gets all metric definitions of an app (or deployment slot, if specified). # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Gets all metric definitions of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # the API will get metric definitions of the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_deployment_slot_with_http_info(resource_group_name, name, id, slot, instance_id, custom_headers = nil) - get_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, 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).value! end # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Gets all metric definitions of an app (or deployment slot, if specified). # - # Get a deployment by its ID for an app, a specific deployment slot, and/or a - # specific scaled-out instance. + # Gets all metric definitions of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] Deployment ID. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API gets a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # the API will get metric definitions of the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -16357,13 +18417,13 @@ def get_instance_deployment_slot_async(resource_group_name, name, id, slot, inst # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metricdefinitions' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -16384,7 +18444,7 @@ def get_instance_deployment_slot_async(resource_group_name, name, id, slot, inst if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Deployment.mapper() + result_mapper = Azure::ARM::Web::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16398,87 +18458,81 @@ def get_instance_deployment_slot_async(resource_group_name, name, id, slot, inst end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets performance metrics of an app (or deployment slot, if specified). # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets performance metrics of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API creates a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" - # @param deployment [Deployment] Deployment details. + # the API will get metrics of the production slot. + # @param details [Boolean] Specify "true" to include metric details in the + # response. It is "false" by default. + # @param filter [String] Return only metrics specified in the filter (using + # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq + # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq + # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Deployment] operation results. + # @return [Array] operation results. # - def create_instance_deployment_slot(resource_group_name, name, id, slot, instance_id, deployment, custom_headers = nil) - response = create_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, deployment, custom_headers).value! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets performance metrics of an app (or deployment slot, if specified). # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets performance metrics of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API creates a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" - # @param deployment [Deployment] Deployment details. + # the API will get metrics of the production slot. + # @param details [Boolean] Specify "true" to include metric details in the + # response. It is "false" by default. + # @param filter [String] Return only metrics specified in the filter (using + # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq + # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq + # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_instance_deployment_slot_with_http_info(resource_group_name, name, id, slot, instance_id, deployment, custom_headers = nil) - create_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, deployment, 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, filter, custom_headers).value! end # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets performance metrics of an app (or deployment slot, if specified). # - # Create a deployment for an app, a specific deployment slot, and/or a specific - # scaled-out instance. + # Gets performance metrics of an app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param id [String] ID of an existing deployment. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API creates a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" - # @param deployment [Deployment] Deployment details. + # the API will get metrics of the production slot. + # @param details [Boolean] Specify "true" to include metric details in the + # response. It is "false" by default. + # @param filter [String] Return only metrics specified in the filter (using + # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq + # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq + # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, deployment, 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? - fail ArgumentError, 'deployment is nil' if deployment.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -16488,27 +18542,19 @@ def create_instance_deployment_slot_async(resource_group_name, name, id, slot, i # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - - request_headers['Content-Type'] = 'application/json; charset=utf-8' - - # Serialize Request - request_mapper = Azure::ARM::Web::Models::Deployment.mapper() - request_content = @client.serialize(request_mapper, deployment) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metrics' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, - body: request_content, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'details' => details,'api-version' => api_version}, + skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -16524,7 +18570,7 @@ def create_instance_deployment_slot_async(resource_group_name, name, id, slot, i if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::Deployment.mapper() + result_mapper = Azure::ARM::Web::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16538,82 +18584,66 @@ def create_instance_deployment_slot_async(resource_group_name, name, id, slot, i end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API deletes a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param name [String] Name of web app + # @param slot [String] Name of the deployment slot # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [MigrateMySqlStatus] operation results. # - def delete_instance_deployment_slot(resource_group_name, name, id, slot, instance_id, custom_headers = nil) - response = delete_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, custom_headers).value! - nil + 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! + response.body unless response.nil? end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API deletes a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param name [String] Name of web app + # @param slot [String] Name of the deployment slot # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_instance_deployment_slot_with_http_info(resource_group_name, name, id, slot, instance_id, custom_headers = nil) - delete_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, 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).value! end # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled # - # Delete a deployment by its ID for an app, a specific deployment slot, and/or - # a specific scaled-out instance. + # Returns the status of MySql in app migration, if one is active, and whether + # or not MySql in app is enabled # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param id [String] Deployment ID. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API deletes a deployment for the production slot. - # @param instance_id [String] ID of a specific scaled-out instance. This is the - # value of the name property in the JSON response from "GET - # api/sites/{siteName}/instances" + # @param name [String] Name of web app + # @param slot [String] Name of the deployment slot # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_instance_deployment_slot_async(resource_group_name, name, id, slot, instance_id, 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, 'name is nil' if name.nil? - fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -16623,29 +18653,39 @@ def delete_instance_deployment_slot_async(resource_group_name, name, id, slot, i # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/deployments/{id}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'id' => id,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:delete, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::MigrateMySqlStatus.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -16654,62 +18694,69 @@ def delete_instance_deployment_slot_async(resource_group_name, name, id, slot, i end # - # Shows whether an app can be cloned to another resource group or subscription. + # Gets all network features used by the app (or deployment slot, if specified). # - # Shows whether an app can be cloned to another resource group or subscription. + # Gets all network features used by the app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. By default, this API - # returns information on the production slot. + # @param view [String] The type of view. This can either be "summary" or + # "detailed". + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get network features for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SiteCloneability] operation results. + # @return [NetworkFeatures] 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 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! response.body unless response.nil? end # - # Shows whether an app can be cloned to another resource group or subscription. + # Gets all network features used by the app (or deployment slot, if specified). # - # Shows whether an app can be cloned to another resource group or subscription. + # Gets all network features used by the app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. By default, this API - # returns information on the production slot. + # @param view [String] The type of view. This can either be "summary" or + # "detailed". + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get network features for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Shows whether an app can be cloned to another resource group or subscription. + # Gets all network features used by the app (or deployment slot, if specified). # - # Shows whether an app can be cloned to another resource group or subscription. + # Gets all network features used by the app (or deployment slot, if specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. By default, this API - # returns information on the production slot. + # @param view [String] The type of view. This can either be "summary" or + # "detailed". + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get network features for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def is_cloneable_slot_async(resource_group_name, name, 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, 'name is nil' if name.nil? + fail ArgumentError, 'view is nil' if view.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -16720,24 +18767,24 @@ def is_cloneable_slot_async(resource_group_name, name, slot, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/iscloneable' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'view' => view,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 404 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -16747,7 +18794,7 @@ def is_cloneable_slot_async(resource_group_name, name, slot, custom_headers = ni if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SiteCloneability.mapper() + result_mapper = Azure::ARM::Web::Models::NetworkFeatures.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16761,60 +18808,72 @@ def is_cloneable_slot_async(resource_group_name, name, slot, custom_headers = ni end # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Start capturing network packets for the site. # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Start capturing network packets for the site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get metric definitions of the production slot. + # @param name [String] The name of the web app. + # @param slot [String] The name of the slot for this web app. + # @param duration_in_seconds [Integer] The duration to keep capturing in + # seconds. + # @param max_frame_length [Integer] The maximum frame length in bytes + # (Optional). + # @param sas_url [String] The Blob URL to store capture file. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [String] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Start capturing network packets for the site. # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Start capturing network packets for the site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get metric definitions of the production slot. + # @param name [String] The name of the web app. + # @param slot [String] The name of the slot for this web app. + # @param duration_in_seconds [Integer] The duration to keep capturing in + # seconds. + # @param max_frame_length [Integer] The maximum frame length in bytes + # (Optional). + # @param sas_url [String] The Blob URL to store capture file. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Start capturing network packets for the site. # - # Gets all metric definitions of an app (or deployment slot, if specified). + # Start capturing network packets for the site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get metric definitions of the production slot. + # @param name [String] The name of the web app. + # @param slot [String] The name of the slot for this web app. + # @param duration_in_seconds [Integer] The duration to keep capturing in + # seconds. + # @param max_frame_length [Integer] The maximum frame length in bytes + # (Optional). + # @param sas_url [String] The Blob URL to store capture file. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -16827,18 +18886,18 @@ def list_metric_definitions_slot_async(resource_group_name, name, slot, custom_h # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metricdefinitions' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/start' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, + query_params: {'durationInSeconds' => duration_in_seconds,'maxFrameLength' => max_frame_length,'sasUrl' => sas_url,'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -16854,7 +18913,13 @@ def list_metric_definitions_slot_async(resource_group_name, name, slot, custom_h if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ResourceMetricDefinitionCollection.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16868,78 +18933,57 @@ def list_metric_definitions_slot_async(resource_group_name, name, slot, custom_h end # - # Gets performance metrics of an app (or deployment slot, if specified). + # Stop ongoing capturing network packets for the site. # - # Gets performance metrics of an app (or deployment slot, if specified). + # Stop ongoing capturing network packets for the site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get metrics of the production slot. - # @param details [Boolean] Specify "true" to include metric details in the - # response. It is "false" by default. - # @param filter [String] Return only metrics specified in the filter (using - # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq - # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq - # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param name [String] The name of the web app. + # @param slot [String] The name of the slot for this web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [String] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Gets performance metrics of an app (or deployment slot, if specified). + # Stop ongoing capturing network packets for the site. # - # Gets performance metrics of an app (or deployment slot, if specified). + # Stop ongoing capturing network packets for the site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get metrics of the production slot. - # @param details [Boolean] Specify "true" to include metric details in the - # response. It is "false" by default. - # @param filter [String] Return only metrics specified in the filter (using - # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq - # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq - # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param name [String] The name of the web app. + # @param slot [String] The name of the slot for this web app. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets performance metrics of an app (or deployment slot, if specified). + # Stop ongoing capturing network packets for the site. # - # Gets performance metrics of an app (or deployment slot, if specified). + # Stop ongoing capturing network packets for the site. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get metrics of the production slot. - # @param details [Boolean] Specify "true" to include metric details in the - # response. It is "false" by default. - # @param filter [String] Return only metrics specified in the filter (using - # OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq - # 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq - # '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + # @param name [String] The name of the web app. + # @param slot [String] The name of the slot for this web app. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -16952,19 +18996,18 @@ def list_metrics_slot_async(resource_group_name, name, slot, details = nil, filt # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metrics' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/stop' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'details' => details,'api-version' => api_version}, - skip_encoding_query_params: {'$filter' => filter}, + query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -16980,7 +19023,13 @@ def list_metrics_slot_async(resource_group_name, name, slot, details = nil, filt if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ResourceMetricCollection.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -16994,63 +19043,65 @@ def list_metrics_slot_async(resource_group_name, name, slot, details = nil, filt end # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Generates a new publishing password for an app (or deployment slot, if + # specified). # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Generates a new publishing password for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of the deployment slot + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API generate a new publishing password for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Generates a new publishing password for an app (or deployment slot, if + # specified). # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Generates a new publishing password for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of the deployment slot + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API generate a new publishing password for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Generates a new publishing password for an app (or deployment slot, if + # specified). # - # Returns the status of MySql in app migration, if one is active, and whether - # or not MySql in app is enabled + # Generates a new publishing password for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of the deployment slot + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API generate a new publishing password for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -17063,7 +19114,7 @@ def get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/newpassword' request_url = @base_url || @client.base_url @@ -17074,28 +19125,18 @@ def get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::MigrateMySqlStatus.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -17104,69 +19145,74 @@ def get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom end # - # Gets all network features used by the app (or deployment slot, if specified). + # Gets perfmon counters for web app. # - # Gets all network features used by the app (or deployment slot, if specified). + # Gets perfmon counters for web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param view [String] The type of view. This can either be "summary" or - # "detailed". - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get network features for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(startTime eq + # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq + # duration'[Hour|Minute|Day]'. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [NetworkFeatures] operation results. + # @return [Array] 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! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Gets all network features used by the app (or deployment slot, if specified). + # Gets perfmon counters for web app. # - # Gets all network features used by the app (or deployment slot, if specified). + # Gets perfmon counters for web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param view [String] The type of view. This can either be "summary" or - # "detailed". - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get network features for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(startTime eq + # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq + # duration'[Hour|Minute|Day]'. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets all network features used by the app (or deployment slot, if specified). + # Gets perfmon counters for web app. # - # Gets all network features used by the app (or deployment slot, if specified). + # Gets perfmon counters for web app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param view [String] The type of view. This can either be "summary" or - # "detailed". - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get network features for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param filter [String] Return only usages/metrics specified in the filter. + # Filter conforms to odata syntax. Example: $filter=(startTime eq + # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq + # duration'[Hour|Minute|Day]'. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'view is nil' if view.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -17177,14 +19223,15 @@ def list_network_features_slot_async(resource_group_name, name, view, slot, cust # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/perfcounters' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'view' => view,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -17194,7 +19241,7 @@ def list_network_features_slot_async(resource_group_name, name, view, slot, cust http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 404 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -17204,7 +19251,7 @@ def list_network_features_slot_async(resource_group_name, name, view, slot, cust if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::NetworkFeatures.mapper() + result_mapper = Azure::ARM::Web::Models::PerfMonCounterCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -17218,72 +19265,60 @@ def list_network_features_slot_async(resource_group_name, name, view, slot, cust end # - # Start capturing network packets for the site. + # Gets web app's event logs. # - # Start capturing network packets for the site. + # Gets web app's event logs. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param slot [String] The name of the slot for this web app. - # @param duration_in_seconds [Integer] The duration to keep capturing in - # seconds. - # @param max_frame_length [Integer] The maximum frame length in bytes - # (Optional). - # @param sas_url [String] The Blob URL to store capture file. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [String] operation results. + # @return [SitePhpErrorLogFlag] 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 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! response.body unless response.nil? end # - # Start capturing network packets for the site. + # Gets web app's event logs. # - # Start capturing network packets for the site. + # Gets web app's event logs. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param slot [String] The name of the slot for this web app. - # @param duration_in_seconds [Integer] The duration to keep capturing in - # seconds. - # @param max_frame_length [Integer] The maximum frame length in bytes - # (Optional). - # @param sas_url [String] The Blob URL to store capture file. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Start capturing network packets for the site. + # Gets web app's event logs. # - # Start capturing network packets for the site. + # Gets web app's event logs. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param slot [String] The name of the slot for this web app. - # @param duration_in_seconds [Integer] The duration to keep capturing in - # seconds. - # @param max_frame_length [Integer] The maximum frame length in bytes - # (Optional). - # @param sas_url [String] The Blob URL to store capture file. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -17296,18 +19331,18 @@ def start_web_site_network_trace_slot_async(resource_group_name, name, slot, dur # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/start' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/phplogging' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'durationInSeconds' => duration_in_seconds,'maxFrameLength' => max_frame_length,'sasUrl' => sas_url,'api-version' => api_version}, + query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -17323,13 +19358,7 @@ def start_web_site_network_trace_slot_async(resource_group_name, name, slot, dur if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - required: false, - serialized_name: 'parsed_response', - type: { - name: 'String' - } - } + result_mapper = Azure::ARM::Web::Models::SitePhpErrorLogFlag.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -17343,57 +19372,60 @@ def start_web_site_network_trace_slot_async(resource_group_name, name, slot, dur end # - # Stop ongoing capturing network packets for the site. + # Gets the premier add-ons of an app. # - # Stop ongoing capturing network packets for the site. + # Gets the premier add-ons of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param slot [String] The name of the slot for this web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the premier add-ons for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [String] operation results. + # @return [PremierAddOn] 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 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! response.body unless response.nil? end # - # Stop ongoing capturing network packets for the site. + # Gets the premier add-ons of an app. # - # Stop ongoing capturing network packets for the site. + # Gets the premier add-ons of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param slot [String] The name of the slot for this web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the premier add-ons for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Stop ongoing capturing network packets for the site. + # Gets the premier add-ons of an app. # - # Stop ongoing capturing network packets for the site. + # Gets the premier add-ons of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] The name of the web app. - # @param slot [String] The name of the slot for this web app. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the premier add-ons for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -17406,7 +19438,7 @@ def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, cust # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/stop' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons' request_url = @base_url || @client.base_url @@ -17417,7 +19449,7 @@ def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, cust headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -17433,13 +19465,7 @@ def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, cust if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - required: false, - serialized_name: 'parsed_response', - type: { - name: 'String' - } - } + result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -17453,67 +19479,66 @@ def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, cust end # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Gets a named add-on of an app. # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Gets a named add-on of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API generate a new publishing password for the production slot. + # the API will get the named add-on for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [PremierAddOn] operation results. # - 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! - nil + 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! + response.body unless response.nil? end # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Gets a named add-on of an app. # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Gets a named add-on of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API generate a new publishing password for the production slot. + # the API will get the named add-on for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Gets a named add-on of an app. # - # Generates a new publishing password for an app (or deployment slot, if - # specified). + # Gets a named add-on of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API generate a new publishing password for the production slot. + # the API will get the named add-on for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -17524,29 +19549,39 @@ def generate_new_site_publishing_password_slot_async(resource_group_name, name, # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/newpassword' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -17555,74 +19590,73 @@ def generate_new_site_publishing_password_slot_async(resource_group_name, name, end # - # Gets perfmon counters for web app. + # Updates a named add-on of an app. # - # Gets perfmon counters for web app. + # Updates a named add-on of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. **** CURRENTLY UNUSED ***** - # @param filter [String] Return only usages/metrics specified in the filter. - # Filter conforms to odata syntax. Example: $filter=(startTime eq - # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq - # duration'[Hour|Minute|Day]'. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param premier_add_on [PremierAddOn] A JSON representation of the edited + # premier add-on. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the named add-on for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [PremierAddOn] 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) - first_page.get_all_items + 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! + response.body unless response.nil? end # - # Gets perfmon counters for web app. + # Updates a named add-on of an app. # - # Gets perfmon counters for web app. + # Updates a named add-on of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. **** CURRENTLY UNUSED ***** - # @param filter [String] Return only usages/metrics specified in the filter. - # Filter conforms to odata syntax. Example: $filter=(startTime eq - # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq - # duration'[Hour|Minute|Day]'. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param premier_add_on [PremierAddOn] A JSON representation of the edited + # premier add-on. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the named add-on for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets perfmon counters for web app. + # Updates a named add-on of an app. # - # Gets perfmon counters for web app. + # Updates a named add-on of an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. **** CURRENTLY UNUSED ***** - # @param filter [String] Return only usages/metrics specified in the filter. - # Filter conforms to odata syntax. Example: $filter=(startTime eq - # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq - # duration'[Hour|Minute|Day]'. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param premier_add_on [PremierAddOn] A JSON representation of the edited + # premier add-on. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will update the named add-on for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? + fail ArgumentError, 'premier_add_on is nil' if premier_add_on.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -17633,19 +19667,27 @@ def list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter = # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/perfcounters' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + request_content = @client.serialize(request_mapper, premier_add_on) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, - skip_encoding_query_params: {'$filter' => filter}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -17661,7 +19703,7 @@ def list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter = if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PerfMonCounterCollection.mapper() + result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -17675,62 +19717,65 @@ def list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter = end # - # Gets web app's event logs. + # Delete a premier add-on from an app. # - # Gets web app's event logs. + # Delete a premier add-on from an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete the named add-on for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @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! - response.body unless response.nil? + 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! + nil end # - # Gets web app's event logs. + # Delete a premier add-on from an app. # - # Gets web app's event logs. + # Delete a premier add-on from an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete the named add-on for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Gets web app's event logs. + # Delete a premier add-on from an app. # - # Gets web app's event logs. + # Delete a premier add-on from an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param premier_add_on_name [String] Add-on name. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will delete the named add-on for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? + fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -17741,18 +19786,18 @@ def get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, cust # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/phplogging' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:delete, path_template, options) promise = promise.then do |result| http_response = result.response @@ -17764,16 +19809,6 @@ def get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, cust end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::SitePhpErrorLogFlag.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -17782,60 +19817,60 @@ def get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, cust end # - # Gets the premier add-ons of an app. + # Get public certificates for an app or a deployment slot. # - # Gets the premier add-ons of an app. + # Get public certificates for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the premier add-ons for the production slot. + # the API gets hostname bindings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PremierAddOn] operation results. + # @return [Array] 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! - response.body unless response.nil? + 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) + first_page.get_all_items end # - # Gets the premier add-ons of an app. + # Get public certificates for an app or a deployment slot. # - # Gets the premier add-ons of an app. + # Get public certificates for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the premier add-ons for the production slot. + # the API gets hostname bindings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets the premier add-ons of an app. + # Get public certificates for an app or a deployment slot. # - # Gets the premier add-ons of an app. + # Get public certificates for an app or a deployment slot. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the premier add-ons for the production slot. + # the API gets hostname bindings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -17848,7 +19883,7 @@ def list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_head # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates' request_url = @base_url || @client.base_url @@ -17875,7 +19910,7 @@ def list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_head if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result_mapper = Azure::ARM::Web::Models::PublicCertificateCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -17889,67 +19924,73 @@ def list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_head end # - # Gets a named add-on of an app. + # Get the named public certificate for an app (or deployment slot, if + # specified). # - # Gets a named add-on of an app. + # Get the named public certificate for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the named add-on for the production slot. + # the API the named binding for the production slot. + # @param public_certificate_name [String] Public CertificateName # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PremierAddOn] operation results. + # @return [PublicCertificate] 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_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! response.body unless response.nil? end # - # Gets a named add-on of an app. + # Get the named public certificate for an app (or deployment slot, if + # specified). # - # Gets a named add-on of an app. + # Get the named public certificate for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the named add-on for the production slot. + # the API the named binding for the production slot. + # @param public_certificate_name [String] Public CertificateName # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets a named add-on of an app. + # Get the named public certificate for an app (or deployment slot, if + # specified). # - # Gets a named add-on of an app. + # Get the named public certificate for an app (or deployment slot, if + # specified). # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the named add-on for the production slot. + # the API the named binding for the production slot. + # @param public_certificate_name [String] Public CertificateName # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'public_certificate_name is nil' if public_certificate_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -17959,13 +20000,13 @@ def get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'publicCertificateName' => public_certificate_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -17986,7 +20027,7 @@ def get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result_mapper = Azure::ARM::Web::Models::PublicCertificate.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -18000,73 +20041,73 @@ def get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name end # - # Updates a named add-on of an app. + # Creates a hostname binding for an app. # - # Updates a named add-on of an app. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. - # @param premier_add_on [PremierAddOn] A JSON representation of the edited - # premier add-on. + # @param public_certificate_name [String] Public certificate name. + # @param public_certificate [PublicCertificate] Public certificate details. + # This is the JSON representation of a PublicCertificate object. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the named add-on for the production slot. + # the API will create a binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [PremierAddOn] operation results. + # @return [PublicCertificate] 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 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! response.body unless response.nil? end # - # Updates a named add-on of an app. + # Creates a hostname binding for an app. # - # Updates a named add-on of an app. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. - # @param premier_add_on [PremierAddOn] A JSON representation of the edited - # premier add-on. + # @param public_certificate_name [String] Public certificate name. + # @param public_certificate [PublicCertificate] Public certificate details. + # This is the JSON representation of a PublicCertificate object. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the named add-on for the production slot. + # the API will create a binding for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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 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! end # - # Updates a named add-on of an app. + # Creates a hostname binding for an app. # - # Updates a named add-on of an app. + # Creates a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. - # @param premier_add_on [PremierAddOn] A JSON representation of the edited - # premier add-on. + # @param public_certificate_name [String] Public certificate name. + # @param public_certificate [PublicCertificate] Public certificate details. + # This is the JSON representation of a PublicCertificate object. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will update the named add-on for the production slot. + # the API will create a binding for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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 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, 'name is nil' if name.nil? - fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? - fail ArgumentError, 'premier_add_on is nil' if premier_add_on.nil? + fail ArgumentError, 'public_certificate_name is nil' if public_certificate_name.nil? + fail ArgumentError, 'public_certificate is nil' if public_certificate.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -18081,17 +20122,17 @@ def add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() - request_content = @client.serialize(request_mapper, premier_add_on) + request_mapper = Azure::ARM::Web::Models::PublicCertificate.mapper() + request_content = @client.serialize(request_mapper, public_certificate) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'publicCertificateName' => public_certificate_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -18113,7 +20154,7 @@ def add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::PremierAddOn.mapper() + result_mapper = Azure::ARM::Web::Models::PublicCertificate.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -18127,66 +20168,66 @@ def add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name end # - # Delete a premier add-on from an app. + # Deletes a hostname binding for an app. # - # Delete a premier add-on from an app. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the named add-on for the production slot. + # the API will delete the binding for the production slot. + # @param public_certificate_name [String] Public Certificate Name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # 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_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! nil end # - # Delete a premier add-on from an app. + # Deletes a hostname binding for an app. # - # Delete a premier add-on from an app. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the named add-on for the production slot. + # the API will delete the binding for the production slot. + # @param public_certificate_name [String] Public Certificate Name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Delete a premier add-on from an app. + # Deletes a hostname binding for an app. # - # Delete a premier add-on from an app. + # Deletes a hostname binding for an app. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of the app. - # @param premier_add_on_name [String] Add-on name. # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will delete the named add-on for the production slot. + # the API will delete the binding for the production slot. + # @param public_certificate_name [String] Public Certificate Name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? - fail ArgumentError, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'public_certificate_name is nil' if public_certificate_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -18196,13 +20237,13 @@ def delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_n # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'premierAddOnName' => premier_add_on_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'publicCertificateName' => public_certificate_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -18213,7 +20254,7 @@ def delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_n http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -18366,9 +20407,9 @@ def list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, nam # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param slot [String] Name of web app slot. If not specified then will default # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -18385,9 +20426,9 @@ def recover_slot(resource_group_name, name, recovery_entity, slot, custom_header # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param slot [String] Name of web app slot. If not specified then will default # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -18407,170 +20448,73 @@ def recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_ parsed_response = @client.deserialize(result_mapper, parsed_response) end - # Waiting for response. - @client.get_long_running_operation_result(response, deserialize_method) - end - - promise - end - - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API resets configuration settings for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # 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! - nil - end - - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API resets configuration settings for the production slot. - # @param custom_headers [Hash{String => String}] A hash of custom headers that - # will be added to the HTTP request. - # - # @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! - end - - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. - # - # Resets the configuration settings of the current slot if they were previously - # modified by calling the API with POST. - # - # @param resource_group_name [String] Name of the resource group to which the - # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API resets configuration settings for the production slot. - # @param [Hash{String => String}] A hash of custom headers that will be added - # to the HTTP request. - # - # @return [Concurrent::Promise] Promise object which holds the HTTP response. - # - 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, 'name is nil' if name.nil? - fail ArgumentError, 'slot is nil' if slot.nil? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - api_version = '2016-08-01' - - - request_headers = {} - - # Set Headers - request_headers['x-ms-client-request-id'] = SecureRandom.uuid - request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resetSlotConfig' - - request_url = @base_url || @client.base_url - - options = { - middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => api_version}, - headers: request_headers.merge(custom_headers || {}), - base_url: request_url - } - promise = @client.make_request_async(:post, path_template, options) - - promise = promise.then do |result| - http_response = result.response - status_code = http_response.status - response_content = http_response.body - unless status_code == 200 - error_model = JSON.load(response_content) - fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) - end - - result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - - result + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) end - promise.execute + promise end # - # Gets the category of ResourceHealthMetadata to use for the given site + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # - # Gets the category of ResourceHealthMetadata to use for the given site + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API resets configuration settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ResourceHealthMetadata] operation results. # - def get_resource_health_metadata_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_resource_health_metadata_slot_async(resource_group_name, name, slot, custom_headers).value! - response.body unless response.nil? + 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! + nil end # - # Gets the category of ResourceHealthMetadata to use for the given site + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # - # Gets the category of ResourceHealthMetadata to use for the given site + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API resets configuration settings for the production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_resource_health_metadata_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_resource_health_metadata_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).value! end # - # Gets the category of ResourceHealthMetadata to use for the given site + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # - # Gets the category of ResourceHealthMetadata to use for the given site + # Resets the configuration settings of the current slot if they were previously + # modified by calling the API with POST. # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of web app - # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API resets configuration settings for the production slot. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_resource_health_metadata_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? @@ -18583,7 +20527,7 @@ def get_resource_health_metadata_slot_async(resource_group_name, name, slot, cus # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resetSlotConfig' request_url = @base_url || @client.base_url @@ -18594,7 +20538,7 @@ def get_resource_health_metadata_slot_async(resource_group_name, name, slot, cus headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:get, path_template, options) + promise = @client.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -18606,16 +20550,6 @@ def get_resource_health_metadata_slot_async(resource_group_name, name, slot, cus end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::ResourceHealthMetadata.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -19546,7 +21480,7 @@ def sync_repository_slot_async(resource_group_name, name, slot, custom_headers = http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -21532,7 +23466,7 @@ def sync_repository_async(resource_group_name, name, custom_headers = nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 204 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -22906,8 +24840,221 @@ def begin_restore_with_http_info(resource_group_name, name, backup_id, request, 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, 'name is nil' if name.nil? - fail ArgumentError, 'backup_id is nil' if backup_id.nil? - fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, 'backup_id is nil' if backup_id.nil? + fail ArgumentError, 'request is nil' if request.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::RestoreRequest.mapper() + request_content = @client.serialize(request_mapper, request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/restore' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::RestoreResponse.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the Git/FTP publishing credentials of an app. + # + # Gets the Git/FTP publishing credentials of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the Git/FTP publishing credentials of an app. + # + # Gets the Git/FTP publishing credentials of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the Git/FTP publishing credentials of an app. + # + # Gets the Git/FTP publishing credentials of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/publishingcredentials/list' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::User.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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, 'name is nil' if name.nil? + fail ArgumentError, 'msdeploy is nil' if msdeploy.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -22921,39 +25068,39 @@ def begin_restore_async(resource_group_name, name, backup_id, request, custom_he request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::RestoreRequest.mapper() - request_content = @client.serialize(request_mapper, request) + request_mapper = Azure::ARM::Web::Models::MSDeploy.mapper() + request_content = @client.serialize(request_mapper, msdeploy) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/restore' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 201 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response - if status_code == 200 + if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RestoreResponse.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -22967,56 +25114,64 @@ def begin_restore_async(resource_group_name, name, backup_id, request, custom_he end # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [User] operation results. + # @return [MSDeployStatus] 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_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! response.body unless response.nil? end # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. + # @param name [String] Name of web app + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, 'msdeploy is nil' if msdeploy.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -23026,34 +25181,43 @@ def begin_list_publishing_credentials_async(resource_group_name, name, custom_he # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/publishingcredentials/list' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::MSDeploy.mapper() + request_content = @client.serialize(request_mapper, msdeploy) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 201 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response - if status_code == 200 + if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::User.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -23307,9 +25471,9 @@ def begin_migrate_my_sql_async(resource_group_name, name, migration_request_enve # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -23328,9 +25492,9 @@ def begin_recover(resource_group_name, name, recovery_entity, custom_headers = n # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # @@ -23348,9 +25512,9 @@ def begin_recover_with_http_info(resource_group_name, name, recovery_entity, cus # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # @@ -23373,7 +25537,7 @@ def begin_recover_async(resource_group_name, name, recovery_entity, custom_heade request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::CsmSiteRecoveryEntity.mapper() + request_mapper = Azure::ARM::Web::Models::SnapshotRecoveryRequest.mapper() request_content = @client.serialize(request_mapper, recovery_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil @@ -23676,29 +25840,256 @@ def begin_restore_slot_async(resource_group_name, name, backup_id, request, slot options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'backupId' => backup_id,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::RestoreResponse.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the Git/FTP publishing credentials of an app. + # + # Gets the Git/FTP publishing credentials of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the publishing credentials for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Gets the Git/FTP publishing credentials of an app. + # + # Gets the Git/FTP publishing credentials of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the publishing credentials for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Gets the Git/FTP publishing credentials of an app. + # + # Gets the Git/FTP publishing credentials of an app. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API will get the publishing credentials for the production slot. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/publishingcredentials/list' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::User.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Invoke the MSDeploy web app extension as pass-through API + # + # Invoke the MSDeploy web app extension as pass-through API + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param msdeploy [MSDeploy] Details of MSDeploy operation + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @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) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'msdeploy is nil' if msdeploy.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + api_version = '2016-08-01' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::MSDeploy.mapper() + request_content = @client.serialize(request_mapper, msdeploy) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 201 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response - if status_code == 200 + if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::RestoreResponse.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -23712,63 +26103,71 @@ def begin_restore_slot_async(resource_group_name, name, backup_id, request, slot end # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the publishing credentials for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [User] operation results. + # @return [MSDeployStatus] 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_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! response.body unless response.nil? end # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the publishing credentials for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @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_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! end # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # - # Gets the Git/FTP publishing credentials of an app. + # Invoke the MSDeploy web app extension as pass-through API # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the app. - # @param slot [String] Name of the deployment slot. If a slot is not specified, - # the API will get the publishing credentials for the production slot. + # @param name [String] Name of web app + # @param slot [String] Name of web app slot. If not specified then will default + # to production slot. + # @param instance_id [String] Id of web app instance + # @param msdeploy [MSDeploy] Details of MSDeploy operation # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @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_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, 'name is nil' if name.nil? fail ArgumentError, 'slot is nil' if slot.nil? + fail ArgumentError, 'instance_id is nil' if instance_id.nil? + fail ArgumentError, 'msdeploy is nil' if msdeploy.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2016-08-01' @@ -23778,34 +26177,43 @@ def begin_list_publishing_credentials_slot_async(resource_group_name, name, slot # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/publishingcredentials/list' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Web::Models::MSDeploy.mapper() + request_content = @client.serialize(request_mapper, msdeploy) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, + body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:post, path_template, options) + promise = @client.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 201 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response - if status_code == 200 + if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::ARM::Web::Models::User.mapper() + result_mapper = Azure::ARM::Web::Models::MSDeployStatus.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -23826,9 +26234,9 @@ def begin_list_publishing_credentials_slot_async(resource_group_name, name, slot # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param slot [String] Name of web app slot. If not specified then will default # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -23849,9 +26257,9 @@ def begin_recover_slot(resource_group_name, name, recovery_entity, slot, custom_ # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param slot [String] Name of web app slot. If not specified then will default # to production slot. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -23871,9 +26279,9 @@ def begin_recover_slot_with_http_info(resource_group_name, name, recovery_entity # @param resource_group_name [String] Name of the resource group to which the # resource belongs. # @param name [String] Name of web app - # @param recovery_entity [CsmSiteRecoveryEntity] Snapshot data used for web app - # recovery. Snapshot information can be obtained by calling GetDeletedSites or - # GetSiteSnapshots API. + # @param recovery_entity [SnapshotRecoveryRequest] Snapshot data used for web + # app recovery. Snapshot information can be obtained by calling GetDeletedSites + # or GetSiteSnapshots API. # @param slot [String] Name of web app slot. If not specified then will default # to production slot. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -23899,7 +26307,7 @@ def begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, c request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = Azure::ARM::Web::Models::CsmSiteRecoveryEntity.mapper() + request_mapper = Azure::ARM::Web::Models::SnapshotRecoveryRequest.mapper() request_content = @client.serialize(request_mapper, recovery_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil @@ -25548,6 +27956,99 @@ def list_perf_mon_counters_next_async(next_page_link, custom_headers = nil) promise.execute end + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PublicCertificateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Gets an app's deployment slots. # @@ -26583,6 +29084,99 @@ def list_perf_mon_counters_slot_next_async(next_page_link, custom_headers = nil) promise.execute end + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + end + + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + 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 = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Web::Models::PublicCertificateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Get the difference in configuration settings between two web app slots. # @@ -27469,6 +30063,31 @@ def list_perf_mon_counters_as_lazy(resource_group_name, name, filter = nil, cust end end + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + 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) + end + page + end + end + # # Gets an app's deployment slots. # @@ -27759,7 +30378,7 @@ def list_metrics_slot_as_lazy(resource_group_name, name, slot, details = nil, fi # resource belongs. # @param name [String] Name of web app # @param slot [String] Name of web app slot. If not specified then will default - # to production slot. **** CURRENTLY UNUSED ***** + # to production slot. # @param filter [String] Return only usages/metrics specified in the filter. # Filter conforms to odata syntax. Example: $filter=(startTime eq # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq @@ -27781,6 +30400,33 @@ def list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter end end + # + # Get public certificates for an app or a deployment slot. + # + # Get public certificates for an app or a deployment slot. + # + # @param resource_group_name [String] Name of the resource group to which the + # resource belongs. + # @param name [String] Name of the app. + # @param slot [String] Name of the deployment slot. If a slot is not specified, + # the API gets hostname bindings for the production slot. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + 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) + end + page + end + end + # # Get the difference in configuration settings between two web app slots. # diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb old mode 100755 new mode 100644