azure_mgmt_web 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_web.rb +41 -39
- data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2015-04-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +11 -10
- data/lib/2015-08-01/generated/azure_mgmt_web.rb +2 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2015-08-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
- data/lib/2016-03-01/generated/azure_mgmt_web.rb +76 -52
- data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +235 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +1143 -111
- data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter.rb +126 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response.rb +102 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2016-03-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb +57 -22
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_rule.rb +49 -14
- data/lib/2016-03-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +93 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/stack_major_version.rb +90 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/stack_minor_version.rb +69 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +277 -17
- data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +582 -67
- data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1161 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +16 -6
- data/lib/2016-08-01/generated/azure_mgmt_web.rb +2 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config_resource.rb +26 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +87 -102
- data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
- data/lib/2016-09-01/generated/azure_mgmt_web.rb +2 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +3 -3
- data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
- data/lib/2018-02-01/generated/azure_mgmt_web.rb +369 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2651 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +8089 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +4314 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +243 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +882 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +231 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +3845 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +243 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +2145 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/address.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/address_response.rb +97 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/analysis_definition.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +359 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +335 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +112 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +136 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment.rb +570 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +605 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +629 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan.rb +329 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +293 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item.rb +257 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_request.rb +128 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb +137 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/capability.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate.rb +335 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_email.rb +92 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_action.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +311 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/channels.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/cloning_info.rb +170 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/contact.rb +138 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job.rb +192 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/cors_settings.rb +56 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +49 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +249 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +107 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_site.rb +107 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment.rb +170 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_definition.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +153 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +197 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain.rb +372 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +348 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope.rb +177 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_secrets.rb +92 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding.rb +179 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection.rb +163 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +95 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +95 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +120 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/log_specification.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_service_identity.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_availabilily.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb +128 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_specification.rb +218 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +108 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy.rb +165 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_status.rb +132 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/network_features.rb +140 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb +135 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on.rb +149 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +184 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +125 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info.rb +509 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info.rb +192 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info.rb +214 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate.rb +106 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/push_settings.rb +123 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +141 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation.rb +360 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_rule.rb +237 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +116 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +147 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +104 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource.rb +112 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric.rb +163 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +148 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_name.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_property.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_value.rb +129 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/restore_request.rb +217 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/scm_type.rb +27 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site.rb +554 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb +477 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config.rb +676 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource.rb +711 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info.rb +301 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_instance.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_logs_config.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_patch_resource.rb +518 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +114 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_source_control.rb +129 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_name.rb +22 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +108 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference.rb +157 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +133 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/solution.rb +148 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control.rb +114 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stack_major_version.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stack_minor_version.rb +69 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity.rb +167 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/storage_migration_options.rb +119 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/storage_migration_response.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/string_dictionary.rb +89 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +96 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_run.rb +193 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job.rb +191 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage.rb +168 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/user.rb +125 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_request.rb +155 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_gateway.rb +93 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_info.rb +153 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_parameters.rb +103 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_route.rb +115 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +93 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job.rb +157 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +149 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_size_options.rb +21 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/module_definition.rb +9 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +661 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +1331 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +566 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +45908 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +2701 -0
- data/lib/azure_mgmt_web.rb +3 -2
- data/lib/profiles/latest/modules/web_profile_module.rb +1045 -969
- data/lib/version.rb +1 -1
- metadata +382 -5
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::Web::Mgmt::V2016_03_01
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# WebSite Management Client
|
9
9
|
#
|
10
10
|
class Diagnostics
|
11
11
|
include MsRestAzure
|
@@ -21,6 +21,450 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
21
21
|
# @return [WebSiteManagementClient] reference to the WebSiteManagementClient
|
22
22
|
attr_reader :client
|
23
23
|
|
24
|
+
#
|
25
|
+
# List Hosting Environment Detector Responses
|
26
|
+
#
|
27
|
+
# List Hosting Environment Detector Responses
|
28
|
+
#
|
29
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
30
|
+
# resource belongs.
|
31
|
+
# @param name [String] Site Name
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<DetectorResponse>] operation results.
|
36
|
+
#
|
37
|
+
def list_hosting_environment_detector_responses(resource_group_name, name, custom_headers:nil)
|
38
|
+
first_page = list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers:custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# List Hosting Environment Detector Responses
|
44
|
+
#
|
45
|
+
# List Hosting Environment Detector Responses
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
48
|
+
# resource belongs.
|
49
|
+
# @param name [String] Site Name
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def list_hosting_environment_detector_responses_with_http_info(resource_group_name, name, custom_headers:nil)
|
56
|
+
list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# List Hosting Environment Detector Responses
|
61
|
+
#
|
62
|
+
# List Hosting Environment Detector Responses
|
63
|
+
#
|
64
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
65
|
+
# resource belongs.
|
66
|
+
# @param name [String] Site Name
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:nil)
|
73
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
76
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
77
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
78
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
79
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
|
+
|
81
|
+
|
82
|
+
request_headers = {}
|
83
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
|
+
|
85
|
+
# Set Headers
|
86
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
87
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
88
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors'
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
92
|
+
options = {
|
93
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
94
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
95
|
+
query_params: {'api-version' => @client.api_version},
|
96
|
+
headers: request_headers.merge(custom_headers || {}),
|
97
|
+
base_url: request_url
|
98
|
+
}
|
99
|
+
promise = @client.make_request_async(:get, path_template, options)
|
100
|
+
|
101
|
+
promise = promise.then do |result|
|
102
|
+
http_response = result.response
|
103
|
+
status_code = http_response.status
|
104
|
+
response_content = http_response.body
|
105
|
+
unless status_code == 200
|
106
|
+
error_model = JSON.load(response_content)
|
107
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
108
|
+
end
|
109
|
+
|
110
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
111
|
+
# Deserialize Response
|
112
|
+
if status_code == 200
|
113
|
+
begin
|
114
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
115
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection.mapper()
|
116
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
117
|
+
rescue Exception => e
|
118
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
result
|
123
|
+
end
|
124
|
+
|
125
|
+
promise.execute
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Get Hosting Environment Detector Response
|
130
|
+
#
|
131
|
+
# Get Hosting Environment Detector Response
|
132
|
+
#
|
133
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
134
|
+
# resource belongs.
|
135
|
+
# @param name [String] App Service Environment Name
|
136
|
+
# @param detector_name [String] Detector Resource Name
|
137
|
+
# @param start_time [DateTime] Start Time
|
138
|
+
# @param end_time [DateTime] End Time
|
139
|
+
# @param time_grain [String] Time Grain
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [DetectorResponse] operation results.
|
144
|
+
#
|
145
|
+
def get_hosting_environment_detector_response(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
146
|
+
response = get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
147
|
+
response.body unless response.nil?
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Get Hosting Environment Detector Response
|
152
|
+
#
|
153
|
+
# Get Hosting Environment Detector Response
|
154
|
+
#
|
155
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
156
|
+
# resource belongs.
|
157
|
+
# @param name [String] App Service Environment Name
|
158
|
+
# @param detector_name [String] Detector Resource Name
|
159
|
+
# @param start_time [DateTime] Start Time
|
160
|
+
# @param end_time [DateTime] End Time
|
161
|
+
# @param time_grain [String] Time Grain
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
|
+
#
|
167
|
+
def get_hosting_environment_detector_response_with_http_info(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
168
|
+
get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
169
|
+
end
|
170
|
+
|
171
|
+
#
|
172
|
+
# Get Hosting Environment Detector Response
|
173
|
+
#
|
174
|
+
# Get Hosting Environment Detector Response
|
175
|
+
#
|
176
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
177
|
+
# resource belongs.
|
178
|
+
# @param name [String] App Service Environment Name
|
179
|
+
# @param detector_name [String] Detector Resource Name
|
180
|
+
# @param start_time [DateTime] Start Time
|
181
|
+
# @param end_time [DateTime] End Time
|
182
|
+
# @param time_grain [String] Time Grain
|
183
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
184
|
+
# to the HTTP request.
|
185
|
+
#
|
186
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
187
|
+
#
|
188
|
+
def get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
189
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
190
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
191
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
192
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
193
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
194
|
+
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
195
|
+
fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
|
196
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
197
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
198
|
+
|
199
|
+
|
200
|
+
request_headers = {}
|
201
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
202
|
+
|
203
|
+
# Set Headers
|
204
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
205
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
206
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}'
|
207
|
+
|
208
|
+
request_url = @base_url || @client.base_url
|
209
|
+
|
210
|
+
options = {
|
211
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
212
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id},
|
213
|
+
query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
|
214
|
+
headers: request_headers.merge(custom_headers || {}),
|
215
|
+
base_url: request_url
|
216
|
+
}
|
217
|
+
promise = @client.make_request_async(:get, path_template, options)
|
218
|
+
|
219
|
+
promise = promise.then do |result|
|
220
|
+
http_response = result.response
|
221
|
+
status_code = http_response.status
|
222
|
+
response_content = http_response.body
|
223
|
+
unless status_code == 200
|
224
|
+
error_model = JSON.load(response_content)
|
225
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
226
|
+
end
|
227
|
+
|
228
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
229
|
+
# Deserialize Response
|
230
|
+
if status_code == 200
|
231
|
+
begin
|
232
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
233
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponse.mapper()
|
234
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
235
|
+
rescue Exception => e
|
236
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
result
|
241
|
+
end
|
242
|
+
|
243
|
+
promise.execute
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# List Site Detector Responses
|
248
|
+
#
|
249
|
+
# List Site Detector Responses
|
250
|
+
#
|
251
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
252
|
+
# resource belongs.
|
253
|
+
# @param site_name [String] Site Name
|
254
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
|
+
# will be added to the HTTP request.
|
256
|
+
#
|
257
|
+
# @return [Array<DetectorResponse>] operation results.
|
258
|
+
#
|
259
|
+
def list_site_detector_responses(resource_group_name, site_name, custom_headers:nil)
|
260
|
+
first_page = list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:custom_headers)
|
261
|
+
first_page.get_all_items
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# List Site Detector Responses
|
266
|
+
#
|
267
|
+
# List Site Detector Responses
|
268
|
+
#
|
269
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
270
|
+
# resource belongs.
|
271
|
+
# @param site_name [String] Site Name
|
272
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
273
|
+
# will be added to the HTTP request.
|
274
|
+
#
|
275
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
276
|
+
#
|
277
|
+
def list_site_detector_responses_with_http_info(resource_group_name, site_name, custom_headers:nil)
|
278
|
+
list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value!
|
279
|
+
end
|
280
|
+
|
281
|
+
#
|
282
|
+
# List Site Detector Responses
|
283
|
+
#
|
284
|
+
# List Site Detector Responses
|
285
|
+
#
|
286
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
287
|
+
# resource belongs.
|
288
|
+
# @param site_name [String] Site Name
|
289
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
290
|
+
# to the HTTP request.
|
291
|
+
#
|
292
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
293
|
+
#
|
294
|
+
def list_site_detector_responses_async(resource_group_name, site_name, custom_headers:nil)
|
295
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
296
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
297
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
298
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
299
|
+
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
300
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
301
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
302
|
+
|
303
|
+
|
304
|
+
request_headers = {}
|
305
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
306
|
+
|
307
|
+
# Set Headers
|
308
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
309
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
310
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors'
|
311
|
+
|
312
|
+
request_url = @base_url || @client.base_url
|
313
|
+
|
314
|
+
options = {
|
315
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
316
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
|
317
|
+
query_params: {'api-version' => @client.api_version},
|
318
|
+
headers: request_headers.merge(custom_headers || {}),
|
319
|
+
base_url: request_url
|
320
|
+
}
|
321
|
+
promise = @client.make_request_async(:get, path_template, options)
|
322
|
+
|
323
|
+
promise = promise.then do |result|
|
324
|
+
http_response = result.response
|
325
|
+
status_code = http_response.status
|
326
|
+
response_content = http_response.body
|
327
|
+
unless status_code == 200
|
328
|
+
error_model = JSON.load(response_content)
|
329
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
330
|
+
end
|
331
|
+
|
332
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
333
|
+
# Deserialize Response
|
334
|
+
if status_code == 200
|
335
|
+
begin
|
336
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
337
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection.mapper()
|
338
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
339
|
+
rescue Exception => e
|
340
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
result
|
345
|
+
end
|
346
|
+
|
347
|
+
promise.execute
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# Get site detector response
|
352
|
+
#
|
353
|
+
# Get site detector response
|
354
|
+
#
|
355
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
356
|
+
# resource belongs.
|
357
|
+
# @param site_name [String] Site Name
|
358
|
+
# @param detector_name [String] Detector Resource Name
|
359
|
+
# @param start_time [DateTime] Start Time
|
360
|
+
# @param end_time [DateTime] End Time
|
361
|
+
# @param time_grain [String] Time Grain
|
362
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
363
|
+
# will be added to the HTTP request.
|
364
|
+
#
|
365
|
+
# @return [DetectorResponse] operation results.
|
366
|
+
#
|
367
|
+
def get_site_detector_response(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
368
|
+
response = get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
369
|
+
response.body unless response.nil?
|
370
|
+
end
|
371
|
+
|
372
|
+
#
|
373
|
+
# Get site detector response
|
374
|
+
#
|
375
|
+
# Get site detector response
|
376
|
+
#
|
377
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
378
|
+
# resource belongs.
|
379
|
+
# @param site_name [String] Site Name
|
380
|
+
# @param detector_name [String] Detector Resource Name
|
381
|
+
# @param start_time [DateTime] Start Time
|
382
|
+
# @param end_time [DateTime] End Time
|
383
|
+
# @param time_grain [String] Time Grain
|
384
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
385
|
+
# will be added to the HTTP request.
|
386
|
+
#
|
387
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
388
|
+
#
|
389
|
+
def get_site_detector_response_with_http_info(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
390
|
+
get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
391
|
+
end
|
392
|
+
|
393
|
+
#
|
394
|
+
# Get site detector response
|
395
|
+
#
|
396
|
+
# Get site detector response
|
397
|
+
#
|
398
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
399
|
+
# resource belongs.
|
400
|
+
# @param site_name [String] Site Name
|
401
|
+
# @param detector_name [String] Detector Resource Name
|
402
|
+
# @param start_time [DateTime] Start Time
|
403
|
+
# @param end_time [DateTime] End Time
|
404
|
+
# @param time_grain [String] Time Grain
|
405
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
406
|
+
# to the HTTP request.
|
407
|
+
#
|
408
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
409
|
+
#
|
410
|
+
def get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
411
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
412
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
413
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
414
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
415
|
+
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
416
|
+
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
417
|
+
fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
|
418
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
419
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
420
|
+
|
421
|
+
|
422
|
+
request_headers = {}
|
423
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
424
|
+
|
425
|
+
# Set Headers
|
426
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
427
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
428
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}'
|
429
|
+
|
430
|
+
request_url = @base_url || @client.base_url
|
431
|
+
|
432
|
+
options = {
|
433
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
434
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id},
|
435
|
+
query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
|
436
|
+
headers: request_headers.merge(custom_headers || {}),
|
437
|
+
base_url: request_url
|
438
|
+
}
|
439
|
+
promise = @client.make_request_async(:get, path_template, options)
|
440
|
+
|
441
|
+
promise = promise.then do |result|
|
442
|
+
http_response = result.response
|
443
|
+
status_code = http_response.status
|
444
|
+
response_content = http_response.body
|
445
|
+
unless status_code == 200
|
446
|
+
error_model = JSON.load(response_content)
|
447
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
448
|
+
end
|
449
|
+
|
450
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
451
|
+
# Deserialize Response
|
452
|
+
if status_code == 200
|
453
|
+
begin
|
454
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
455
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponse.mapper()
|
456
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
457
|
+
rescue Exception => e
|
458
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
result
|
463
|
+
end
|
464
|
+
|
465
|
+
promise.execute
|
466
|
+
end
|
467
|
+
|
24
468
|
#
|
25
469
|
# Get Diagnostics Categories
|
26
470
|
#
|
@@ -827,7 +1271,237 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
827
1271
|
# resource belongs.
|
828
1272
|
# @param site_name [String] Site Name
|
829
1273
|
# @param detector_name [String] Detector Resource Name
|
830
|
-
# @param diagnostic_category [String] Category Name
|
1274
|
+
# @param diagnostic_category [String] Category Name
|
1275
|
+
# @param start_time [DateTime] Start Time
|
1276
|
+
# @param end_time [DateTime] End Time
|
1277
|
+
# @param time_grain [String] Time Grain
|
1278
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1279
|
+
# will be added to the HTTP request.
|
1280
|
+
#
|
1281
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1282
|
+
#
|
1283
|
+
def execute_site_detector_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
1284
|
+
execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
#
|
1288
|
+
# Execute Detector
|
1289
|
+
#
|
1290
|
+
# Execute Detector
|
1291
|
+
#
|
1292
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1293
|
+
# resource belongs.
|
1294
|
+
# @param site_name [String] Site Name
|
1295
|
+
# @param detector_name [String] Detector Resource Name
|
1296
|
+
# @param diagnostic_category [String] Category Name
|
1297
|
+
# @param start_time [DateTime] Start Time
|
1298
|
+
# @param end_time [DateTime] End Time
|
1299
|
+
# @param time_grain [String] Time Grain
|
1300
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1301
|
+
# to the HTTP request.
|
1302
|
+
#
|
1303
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1304
|
+
#
|
1305
|
+
def execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
1306
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1307
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1308
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1309
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1310
|
+
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
1311
|
+
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
1312
|
+
fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
|
1313
|
+
fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
|
1314
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1315
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1316
|
+
|
1317
|
+
|
1318
|
+
request_headers = {}
|
1319
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1320
|
+
|
1321
|
+
# Set Headers
|
1322
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1323
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1324
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute'
|
1325
|
+
|
1326
|
+
request_url = @base_url || @client.base_url
|
1327
|
+
|
1328
|
+
options = {
|
1329
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1330
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id},
|
1331
|
+
query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
|
1332
|
+
headers: request_headers.merge(custom_headers || {}),
|
1333
|
+
base_url: request_url
|
1334
|
+
}
|
1335
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1336
|
+
|
1337
|
+
promise = promise.then do |result|
|
1338
|
+
http_response = result.response
|
1339
|
+
status_code = http_response.status
|
1340
|
+
response_content = http_response.body
|
1341
|
+
unless status_code == 200
|
1342
|
+
error_model = JSON.load(response_content)
|
1343
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1347
|
+
# Deserialize Response
|
1348
|
+
if status_code == 200
|
1349
|
+
begin
|
1350
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1351
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorResponse.mapper()
|
1352
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1353
|
+
rescue Exception => e
|
1354
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1355
|
+
end
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
result
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
promise.execute
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
#
|
1365
|
+
# List Site Detector Responses
|
1366
|
+
#
|
1367
|
+
# List Site Detector Responses
|
1368
|
+
#
|
1369
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1370
|
+
# resource belongs.
|
1371
|
+
# @param site_name [String] Site Name
|
1372
|
+
# @param slot [String] Slot Name
|
1373
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1374
|
+
# will be added to the HTTP request.
|
1375
|
+
#
|
1376
|
+
# @return [Array<DetectorResponse>] operation results.
|
1377
|
+
#
|
1378
|
+
def list_site_detector_responses_slot(resource_group_name, site_name, slot, custom_headers:nil)
|
1379
|
+
first_page = list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:custom_headers)
|
1380
|
+
first_page.get_all_items
|
1381
|
+
end
|
1382
|
+
|
1383
|
+
#
|
1384
|
+
# List Site Detector Responses
|
1385
|
+
#
|
1386
|
+
# List Site Detector Responses
|
1387
|
+
#
|
1388
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1389
|
+
# resource belongs.
|
1390
|
+
# @param site_name [String] Site Name
|
1391
|
+
# @param slot [String] Slot Name
|
1392
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1393
|
+
# will be added to the HTTP request.
|
1394
|
+
#
|
1395
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1396
|
+
#
|
1397
|
+
def list_site_detector_responses_slot_with_http_info(resource_group_name, site_name, slot, custom_headers:nil)
|
1398
|
+
list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value!
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
#
|
1402
|
+
# List Site Detector Responses
|
1403
|
+
#
|
1404
|
+
# List Site Detector Responses
|
1405
|
+
#
|
1406
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1407
|
+
# resource belongs.
|
1408
|
+
# @param site_name [String] Site Name
|
1409
|
+
# @param slot [String] Slot Name
|
1410
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1411
|
+
# to the HTTP request.
|
1412
|
+
#
|
1413
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1414
|
+
#
|
1415
|
+
def list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:nil)
|
1416
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1417
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1418
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1419
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1420
|
+
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
1421
|
+
fail ArgumentError, 'slot is nil' if slot.nil?
|
1422
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1423
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1424
|
+
|
1425
|
+
|
1426
|
+
request_headers = {}
|
1427
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1428
|
+
|
1429
|
+
# Set Headers
|
1430
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1431
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1432
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors'
|
1433
|
+
|
1434
|
+
request_url = @base_url || @client.base_url
|
1435
|
+
|
1436
|
+
options = {
|
1437
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1438
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
|
1439
|
+
query_params: {'api-version' => @client.api_version},
|
1440
|
+
headers: request_headers.merge(custom_headers || {}),
|
1441
|
+
base_url: request_url
|
1442
|
+
}
|
1443
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1444
|
+
|
1445
|
+
promise = promise.then do |result|
|
1446
|
+
http_response = result.response
|
1447
|
+
status_code = http_response.status
|
1448
|
+
response_content = http_response.body
|
1449
|
+
unless status_code == 200
|
1450
|
+
error_model = JSON.load(response_content)
|
1451
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1455
|
+
# Deserialize Response
|
1456
|
+
if status_code == 200
|
1457
|
+
begin
|
1458
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1459
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection.mapper()
|
1460
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1461
|
+
rescue Exception => e
|
1462
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1463
|
+
end
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
result
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
promise.execute
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
#
|
1473
|
+
# Get site detector response
|
1474
|
+
#
|
1475
|
+
# Get site detector response
|
1476
|
+
#
|
1477
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1478
|
+
# resource belongs.
|
1479
|
+
# @param site_name [String] Site Name
|
1480
|
+
# @param detector_name [String] Detector Resource Name
|
1481
|
+
# @param slot [String] Slot Name
|
1482
|
+
# @param start_time [DateTime] Start Time
|
1483
|
+
# @param end_time [DateTime] End Time
|
1484
|
+
# @param time_grain [String] Time Grain
|
1485
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1486
|
+
# will be added to the HTTP request.
|
1487
|
+
#
|
1488
|
+
# @return [DetectorResponse] operation results.
|
1489
|
+
#
|
1490
|
+
def get_site_detector_response_slot(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
1491
|
+
response = get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
1492
|
+
response.body unless response.nil?
|
1493
|
+
end
|
1494
|
+
|
1495
|
+
#
|
1496
|
+
# Get site detector response
|
1497
|
+
#
|
1498
|
+
# Get site detector response
|
1499
|
+
#
|
1500
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1501
|
+
# resource belongs.
|
1502
|
+
# @param site_name [String] Site Name
|
1503
|
+
# @param detector_name [String] Detector Resource Name
|
1504
|
+
# @param slot [String] Slot Name
|
831
1505
|
# @param start_time [DateTime] Start Time
|
832
1506
|
# @param end_time [DateTime] End Time
|
833
1507
|
# @param time_grain [String] Time Grain
|
@@ -836,20 +1510,20 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
836
1510
|
#
|
837
1511
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
838
1512
|
#
|
839
|
-
def
|
840
|
-
|
1513
|
+
def get_site_detector_response_slot_with_http_info(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
1514
|
+
get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
841
1515
|
end
|
842
1516
|
|
843
1517
|
#
|
844
|
-
#
|
1518
|
+
# Get site detector response
|
845
1519
|
#
|
846
|
-
#
|
1520
|
+
# Get site detector response
|
847
1521
|
#
|
848
1522
|
# @param resource_group_name [String] Name of the resource group to which the
|
849
1523
|
# resource belongs.
|
850
1524
|
# @param site_name [String] Site Name
|
851
1525
|
# @param detector_name [String] Detector Resource Name
|
852
|
-
# @param
|
1526
|
+
# @param slot [String] Slot Name
|
853
1527
|
# @param start_time [DateTime] Start Time
|
854
1528
|
# @param end_time [DateTime] End Time
|
855
1529
|
# @param time_grain [String] Time Grain
|
@@ -858,14 +1532,14 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
858
1532
|
#
|
859
1533
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
860
1534
|
#
|
861
|
-
def
|
1535
|
+
def get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
862
1536
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
863
1537
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
864
1538
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
865
1539
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
866
1540
|
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
867
1541
|
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
868
|
-
fail ArgumentError, '
|
1542
|
+
fail ArgumentError, 'slot is nil' if slot.nil?
|
869
1543
|
fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
|
870
1544
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
871
1545
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -877,18 +1551,18 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
877
1551
|
# Set Headers
|
878
1552
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
879
1553
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
880
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/
|
1554
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}'
|
881
1555
|
|
882
1556
|
request_url = @base_url || @client.base_url
|
883
1557
|
|
884
1558
|
options = {
|
885
1559
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
886
|
-
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'
|
1560
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
|
887
1561
|
query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
|
888
1562
|
headers: request_headers.merge(custom_headers || {}),
|
889
1563
|
base_url: request_url
|
890
1564
|
}
|
891
|
-
promise = @client.make_request_async(:
|
1565
|
+
promise = @client.make_request_async(:get, path_template, options)
|
892
1566
|
|
893
1567
|
promise = promise.then do |result|
|
894
1568
|
http_response = result.response
|
@@ -904,7 +1578,7 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
904
1578
|
if status_code == 200
|
905
1579
|
begin
|
906
1580
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
907
|
-
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::
|
1581
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponse.mapper()
|
908
1582
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
909
1583
|
rescue Exception => e
|
910
1584
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1608,69 +2282,290 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
1608
2282
|
#
|
1609
2283
|
# Get Detector
|
1610
2284
|
#
|
1611
|
-
# @param resource_group_name [String] Name of the resource group to which the
|
1612
|
-
# resource belongs.
|
1613
|
-
# @param site_name [String] Site Name
|
1614
|
-
# @param diagnostic_category [String] Diagnostic Category
|
1615
|
-
# @param detector_name [String] Detector Name
|
1616
|
-
# @param slot [String] Slot Name
|
2285
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
2286
|
+
# resource belongs.
|
2287
|
+
# @param site_name [String] Site Name
|
2288
|
+
# @param diagnostic_category [String] Diagnostic Category
|
2289
|
+
# @param detector_name [String] Detector Name
|
2290
|
+
# @param slot [String] Slot Name
|
2291
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2292
|
+
# will be added to the HTTP request.
|
2293
|
+
#
|
2294
|
+
# @return [Array<DetectorDefinition>] operation results.
|
2295
|
+
#
|
2296
|
+
def get_site_detector_slot(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil)
|
2297
|
+
first_page = get_site_detector_slot_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers)
|
2298
|
+
first_page.get_all_items
|
2299
|
+
end
|
2300
|
+
|
2301
|
+
#
|
2302
|
+
# Get Detector
|
2303
|
+
#
|
2304
|
+
# Get Detector
|
2305
|
+
#
|
2306
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
2307
|
+
# resource belongs.
|
2308
|
+
# @param site_name [String] Site Name
|
2309
|
+
# @param diagnostic_category [String] Diagnostic Category
|
2310
|
+
# @param detector_name [String] Detector Name
|
2311
|
+
# @param slot [String] Slot Name
|
2312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2313
|
+
# will be added to the HTTP request.
|
2314
|
+
#
|
2315
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2316
|
+
#
|
2317
|
+
def get_site_detector_slot_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil)
|
2318
|
+
get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers).value!
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
#
|
2322
|
+
# Get Detector
|
2323
|
+
#
|
2324
|
+
# Get Detector
|
2325
|
+
#
|
2326
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
2327
|
+
# resource belongs.
|
2328
|
+
# @param site_name [String] Site Name
|
2329
|
+
# @param diagnostic_category [String] Diagnostic Category
|
2330
|
+
# @param detector_name [String] Detector Name
|
2331
|
+
# @param slot [String] Slot Name
|
2332
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2333
|
+
# to the HTTP request.
|
2334
|
+
#
|
2335
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2336
|
+
#
|
2337
|
+
def get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil)
|
2338
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
2339
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
2340
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
2341
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
2342
|
+
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
2343
|
+
fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
|
2344
|
+
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
2345
|
+
fail ArgumentError, 'slot is nil' if slot.nil?
|
2346
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2347
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2348
|
+
|
2349
|
+
|
2350
|
+
request_headers = {}
|
2351
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2352
|
+
|
2353
|
+
# Set Headers
|
2354
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2355
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2356
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}'
|
2357
|
+
|
2358
|
+
request_url = @base_url || @client.base_url
|
2359
|
+
|
2360
|
+
options = {
|
2361
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2362
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'detectorName' => detector_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
|
2363
|
+
query_params: {'api-version' => @client.api_version},
|
2364
|
+
headers: request_headers.merge(custom_headers || {}),
|
2365
|
+
base_url: request_url
|
2366
|
+
}
|
2367
|
+
promise = @client.make_request_async(:get, path_template, options)
|
2368
|
+
|
2369
|
+
promise = promise.then do |result|
|
2370
|
+
http_response = result.response
|
2371
|
+
status_code = http_response.status
|
2372
|
+
response_content = http_response.body
|
2373
|
+
unless status_code == 200
|
2374
|
+
error_model = JSON.load(response_content)
|
2375
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2376
|
+
end
|
2377
|
+
|
2378
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2379
|
+
# Deserialize Response
|
2380
|
+
if status_code == 200
|
2381
|
+
begin
|
2382
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2383
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorCollection.mapper()
|
2384
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
2385
|
+
rescue Exception => e
|
2386
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2387
|
+
end
|
2388
|
+
end
|
2389
|
+
|
2390
|
+
result
|
2391
|
+
end
|
2392
|
+
|
2393
|
+
promise.execute
|
2394
|
+
end
|
2395
|
+
|
2396
|
+
#
|
2397
|
+
# Execute Detector
|
2398
|
+
#
|
2399
|
+
# Execute Detector
|
2400
|
+
#
|
2401
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
2402
|
+
# resource belongs.
|
2403
|
+
# @param site_name [String] Site Name
|
2404
|
+
# @param detector_name [String] Detector Resource Name
|
2405
|
+
# @param diagnostic_category [String] Category Name
|
2406
|
+
# @param slot [String] Slot Name
|
2407
|
+
# @param start_time [DateTime] Start Time
|
2408
|
+
# @param end_time [DateTime] End Time
|
2409
|
+
# @param time_grain [String] Time Grain
|
2410
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2411
|
+
# will be added to the HTTP request.
|
2412
|
+
#
|
2413
|
+
# @return [DiagnosticDetectorResponse] operation results.
|
2414
|
+
#
|
2415
|
+
def execute_site_detector_slot(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
2416
|
+
response = execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
2417
|
+
response.body unless response.nil?
|
2418
|
+
end
|
2419
|
+
|
2420
|
+
#
|
2421
|
+
# Execute Detector
|
2422
|
+
#
|
2423
|
+
# Execute Detector
|
2424
|
+
#
|
2425
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
2426
|
+
# resource belongs.
|
2427
|
+
# @param site_name [String] Site Name
|
2428
|
+
# @param detector_name [String] Detector Resource Name
|
2429
|
+
# @param diagnostic_category [String] Category Name
|
2430
|
+
# @param slot [String] Slot Name
|
2431
|
+
# @param start_time [DateTime] Start Time
|
2432
|
+
# @param end_time [DateTime] End Time
|
2433
|
+
# @param time_grain [String] Time Grain
|
2434
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2435
|
+
# will be added to the HTTP request.
|
2436
|
+
#
|
2437
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2438
|
+
#
|
2439
|
+
def execute_site_detector_slot_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
2440
|
+
execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
|
2441
|
+
end
|
2442
|
+
|
2443
|
+
#
|
2444
|
+
# Execute Detector
|
2445
|
+
#
|
2446
|
+
# Execute Detector
|
2447
|
+
#
|
2448
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
2449
|
+
# resource belongs.
|
2450
|
+
# @param site_name [String] Site Name
|
2451
|
+
# @param detector_name [String] Detector Resource Name
|
2452
|
+
# @param diagnostic_category [String] Category Name
|
2453
|
+
# @param slot [String] Slot Name
|
2454
|
+
# @param start_time [DateTime] Start Time
|
2455
|
+
# @param end_time [DateTime] End Time
|
2456
|
+
# @param time_grain [String] Time Grain
|
2457
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2458
|
+
# to the HTTP request.
|
2459
|
+
#
|
2460
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2461
|
+
#
|
2462
|
+
def execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
|
2463
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
2464
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
2465
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
2466
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
2467
|
+
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
2468
|
+
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
2469
|
+
fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
|
2470
|
+
fail ArgumentError, 'slot is nil' if slot.nil?
|
2471
|
+
fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
|
2472
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2473
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2474
|
+
|
2475
|
+
|
2476
|
+
request_headers = {}
|
2477
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2478
|
+
|
2479
|
+
# Set Headers
|
2480
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2481
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2482
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute'
|
2483
|
+
|
2484
|
+
request_url = @base_url || @client.base_url
|
2485
|
+
|
2486
|
+
options = {
|
2487
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2488
|
+
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id},
|
2489
|
+
query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
|
2490
|
+
headers: request_headers.merge(custom_headers || {}),
|
2491
|
+
base_url: request_url
|
2492
|
+
}
|
2493
|
+
promise = @client.make_request_async(:post, path_template, options)
|
2494
|
+
|
2495
|
+
promise = promise.then do |result|
|
2496
|
+
http_response = result.response
|
2497
|
+
status_code = http_response.status
|
2498
|
+
response_content = http_response.body
|
2499
|
+
unless status_code == 200
|
2500
|
+
error_model = JSON.load(response_content)
|
2501
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2502
|
+
end
|
2503
|
+
|
2504
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2505
|
+
# Deserialize Response
|
2506
|
+
if status_code == 200
|
2507
|
+
begin
|
2508
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2509
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorResponse.mapper()
|
2510
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
2511
|
+
rescue Exception => e
|
2512
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2513
|
+
end
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
result
|
2517
|
+
end
|
2518
|
+
|
2519
|
+
promise.execute
|
2520
|
+
end
|
2521
|
+
|
2522
|
+
#
|
2523
|
+
# List Hosting Environment Detector Responses
|
2524
|
+
#
|
2525
|
+
# List Hosting Environment Detector Responses
|
2526
|
+
#
|
2527
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2528
|
+
# to List operation.
|
1617
2529
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1618
2530
|
# will be added to the HTTP request.
|
1619
2531
|
#
|
1620
|
-
# @return [
|
2532
|
+
# @return [DetectorResponseCollection] operation results.
|
1621
2533
|
#
|
1622
|
-
def
|
1623
|
-
|
1624
|
-
|
2534
|
+
def list_hosting_environment_detector_responses_next(next_page_link, custom_headers:nil)
|
2535
|
+
response = list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
|
2536
|
+
response.body unless response.nil?
|
1625
2537
|
end
|
1626
2538
|
|
1627
2539
|
#
|
1628
|
-
#
|
2540
|
+
# List Hosting Environment Detector Responses
|
1629
2541
|
#
|
1630
|
-
#
|
2542
|
+
# List Hosting Environment Detector Responses
|
1631
2543
|
#
|
1632
|
-
# @param
|
1633
|
-
#
|
1634
|
-
# @param site_name [String] Site Name
|
1635
|
-
# @param diagnostic_category [String] Diagnostic Category
|
1636
|
-
# @param detector_name [String] Detector Name
|
1637
|
-
# @param slot [String] Slot Name
|
2544
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2545
|
+
# to List operation.
|
1638
2546
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1639
2547
|
# will be added to the HTTP request.
|
1640
2548
|
#
|
1641
2549
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1642
2550
|
#
|
1643
|
-
def
|
1644
|
-
|
2551
|
+
def list_hosting_environment_detector_responses_next_with_http_info(next_page_link, custom_headers:nil)
|
2552
|
+
list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
|
1645
2553
|
end
|
1646
2554
|
|
1647
2555
|
#
|
1648
|
-
#
|
2556
|
+
# List Hosting Environment Detector Responses
|
1649
2557
|
#
|
1650
|
-
#
|
2558
|
+
# List Hosting Environment Detector Responses
|
1651
2559
|
#
|
1652
|
-
# @param
|
1653
|
-
#
|
1654
|
-
# @param site_name [String] Site Name
|
1655
|
-
# @param diagnostic_category [String] Diagnostic Category
|
1656
|
-
# @param detector_name [String] Detector Name
|
1657
|
-
# @param slot [String] Slot Name
|
2560
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2561
|
+
# to List operation.
|
1658
2562
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1659
2563
|
# to the HTTP request.
|
1660
2564
|
#
|
1661
2565
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1662
2566
|
#
|
1663
|
-
def
|
1664
|
-
fail ArgumentError, '
|
1665
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1666
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1667
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1668
|
-
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
1669
|
-
fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
|
1670
|
-
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
1671
|
-
fail ArgumentError, 'slot is nil' if slot.nil?
|
1672
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1673
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2567
|
+
def list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:nil)
|
2568
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1674
2569
|
|
1675
2570
|
|
1676
2571
|
request_headers = {}
|
@@ -1679,14 +2574,13 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
1679
2574
|
# Set Headers
|
1680
2575
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1681
2576
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1682
|
-
path_template = '
|
2577
|
+
path_template = '{nextLink}'
|
1683
2578
|
|
1684
2579
|
request_url = @base_url || @client.base_url
|
1685
2580
|
|
1686
2581
|
options = {
|
1687
2582
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1688
|
-
|
1689
|
-
query_params: {'api-version' => @client.api_version},
|
2583
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1690
2584
|
headers: request_headers.merge(custom_headers || {}),
|
1691
2585
|
base_url: request_url
|
1692
2586
|
}
|
@@ -1706,7 +2600,7 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
1706
2600
|
if status_code == 200
|
1707
2601
|
begin
|
1708
2602
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1709
|
-
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::
|
2603
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection.mapper()
|
1710
2604
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1711
2605
|
rescue Exception => e
|
1712
2606
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1720,83 +2614,52 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
1720
2614
|
end
|
1721
2615
|
|
1722
2616
|
#
|
1723
|
-
#
|
2617
|
+
# List Site Detector Responses
|
1724
2618
|
#
|
1725
|
-
#
|
2619
|
+
# List Site Detector Responses
|
1726
2620
|
#
|
1727
|
-
# @param
|
1728
|
-
#
|
1729
|
-
# @param site_name [String] Site Name
|
1730
|
-
# @param detector_name [String] Detector Resource Name
|
1731
|
-
# @param diagnostic_category [String] Category Name
|
1732
|
-
# @param slot [String] Slot Name
|
1733
|
-
# @param start_time [DateTime] Start Time
|
1734
|
-
# @param end_time [DateTime] End Time
|
1735
|
-
# @param time_grain [String] Time Grain
|
2621
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2622
|
+
# to List operation.
|
1736
2623
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1737
2624
|
# will be added to the HTTP request.
|
1738
2625
|
#
|
1739
|
-
# @return [
|
2626
|
+
# @return [DetectorResponseCollection] operation results.
|
1740
2627
|
#
|
1741
|
-
def
|
1742
|
-
response =
|
2628
|
+
def list_site_detector_responses_next(next_page_link, custom_headers:nil)
|
2629
|
+
response = list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
|
1743
2630
|
response.body unless response.nil?
|
1744
2631
|
end
|
1745
2632
|
|
1746
2633
|
#
|
1747
|
-
#
|
2634
|
+
# List Site Detector Responses
|
1748
2635
|
#
|
1749
|
-
#
|
2636
|
+
# List Site Detector Responses
|
1750
2637
|
#
|
1751
|
-
# @param
|
1752
|
-
#
|
1753
|
-
# @param site_name [String] Site Name
|
1754
|
-
# @param detector_name [String] Detector Resource Name
|
1755
|
-
# @param diagnostic_category [String] Category Name
|
1756
|
-
# @param slot [String] Slot Name
|
1757
|
-
# @param start_time [DateTime] Start Time
|
1758
|
-
# @param end_time [DateTime] End Time
|
1759
|
-
# @param time_grain [String] Time Grain
|
2638
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2639
|
+
# to List operation.
|
1760
2640
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1761
2641
|
# will be added to the HTTP request.
|
1762
2642
|
#
|
1763
2643
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1764
2644
|
#
|
1765
|
-
def
|
1766
|
-
|
2645
|
+
def list_site_detector_responses_next_with_http_info(next_page_link, custom_headers:nil)
|
2646
|
+
list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
|
1767
2647
|
end
|
1768
2648
|
|
1769
2649
|
#
|
1770
|
-
#
|
2650
|
+
# List Site Detector Responses
|
1771
2651
|
#
|
1772
|
-
#
|
2652
|
+
# List Site Detector Responses
|
1773
2653
|
#
|
1774
|
-
# @param
|
1775
|
-
#
|
1776
|
-
# @param site_name [String] Site Name
|
1777
|
-
# @param detector_name [String] Detector Resource Name
|
1778
|
-
# @param diagnostic_category [String] Category Name
|
1779
|
-
# @param slot [String] Slot Name
|
1780
|
-
# @param start_time [DateTime] Start Time
|
1781
|
-
# @param end_time [DateTime] End Time
|
1782
|
-
# @param time_grain [String] Time Grain
|
2654
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2655
|
+
# to List operation.
|
1783
2656
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1784
2657
|
# to the HTTP request.
|
1785
2658
|
#
|
1786
2659
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1787
2660
|
#
|
1788
|
-
def
|
1789
|
-
fail ArgumentError, '
|
1790
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1791
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1792
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1793
|
-
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
1794
|
-
fail ArgumentError, 'detector_name is nil' if detector_name.nil?
|
1795
|
-
fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
|
1796
|
-
fail ArgumentError, 'slot is nil' if slot.nil?
|
1797
|
-
fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
|
1798
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1799
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2661
|
+
def list_site_detector_responses_next_async(next_page_link, custom_headers:nil)
|
2662
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1800
2663
|
|
1801
2664
|
|
1802
2665
|
request_headers = {}
|
@@ -1805,18 +2668,17 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
1805
2668
|
# Set Headers
|
1806
2669
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1807
2670
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1808
|
-
path_template = '
|
2671
|
+
path_template = '{nextLink}'
|
1809
2672
|
|
1810
2673
|
request_url = @base_url || @client.base_url
|
1811
2674
|
|
1812
2675
|
options = {
|
1813
2676
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1814
|
-
|
1815
|
-
query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
|
2677
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1816
2678
|
headers: request_headers.merge(custom_headers || {}),
|
1817
2679
|
base_url: request_url
|
1818
2680
|
}
|
1819
|
-
promise = @client.make_request_async(:
|
2681
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1820
2682
|
|
1821
2683
|
promise = promise.then do |result|
|
1822
2684
|
http_response = result.response
|
@@ -1832,7 +2694,7 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
1832
2694
|
if status_code == 200
|
1833
2695
|
begin
|
1834
2696
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1835
|
-
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::
|
2697
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection.mapper()
|
1836
2698
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1837
2699
|
rescue Exception => e
|
1838
2700
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -2221,6 +3083,100 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
2221
3083
|
promise.execute
|
2222
3084
|
end
|
2223
3085
|
|
3086
|
+
#
|
3087
|
+
# List Site Detector Responses
|
3088
|
+
#
|
3089
|
+
# List Site Detector Responses
|
3090
|
+
#
|
3091
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
3092
|
+
# to List operation.
|
3093
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3094
|
+
# will be added to the HTTP request.
|
3095
|
+
#
|
3096
|
+
# @return [DetectorResponseCollection] operation results.
|
3097
|
+
#
|
3098
|
+
def list_site_detector_responses_slot_next(next_page_link, custom_headers:nil)
|
3099
|
+
response = list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers).value!
|
3100
|
+
response.body unless response.nil?
|
3101
|
+
end
|
3102
|
+
|
3103
|
+
#
|
3104
|
+
# List Site Detector Responses
|
3105
|
+
#
|
3106
|
+
# List Site Detector Responses
|
3107
|
+
#
|
3108
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
3109
|
+
# to List operation.
|
3110
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3111
|
+
# will be added to the HTTP request.
|
3112
|
+
#
|
3113
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
3114
|
+
#
|
3115
|
+
def list_site_detector_responses_slot_next_with_http_info(next_page_link, custom_headers:nil)
|
3116
|
+
list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers).value!
|
3117
|
+
end
|
3118
|
+
|
3119
|
+
#
|
3120
|
+
# List Site Detector Responses
|
3121
|
+
#
|
3122
|
+
# List Site Detector Responses
|
3123
|
+
#
|
3124
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
3125
|
+
# to List operation.
|
3126
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
3127
|
+
# to the HTTP request.
|
3128
|
+
#
|
3129
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
3130
|
+
#
|
3131
|
+
def list_site_detector_responses_slot_next_async(next_page_link, custom_headers:nil)
|
3132
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
3133
|
+
|
3134
|
+
|
3135
|
+
request_headers = {}
|
3136
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
3137
|
+
|
3138
|
+
# Set Headers
|
3139
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
3140
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
3141
|
+
path_template = '{nextLink}'
|
3142
|
+
|
3143
|
+
request_url = @base_url || @client.base_url
|
3144
|
+
|
3145
|
+
options = {
|
3146
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
3147
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
3148
|
+
headers: request_headers.merge(custom_headers || {}),
|
3149
|
+
base_url: request_url
|
3150
|
+
}
|
3151
|
+
promise = @client.make_request_async(:get, path_template, options)
|
3152
|
+
|
3153
|
+
promise = promise.then do |result|
|
3154
|
+
http_response = result.response
|
3155
|
+
status_code = http_response.status
|
3156
|
+
response_content = http_response.body
|
3157
|
+
unless status_code == 200
|
3158
|
+
error_model = JSON.load(response_content)
|
3159
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
3160
|
+
end
|
3161
|
+
|
3162
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
3163
|
+
# Deserialize Response
|
3164
|
+
if status_code == 200
|
3165
|
+
begin
|
3166
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
3167
|
+
result_mapper = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection.mapper()
|
3168
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
3169
|
+
rescue Exception => e
|
3170
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
3171
|
+
end
|
3172
|
+
end
|
3173
|
+
|
3174
|
+
result
|
3175
|
+
end
|
3176
|
+
|
3177
|
+
promise.execute
|
3178
|
+
end
|
3179
|
+
|
2224
3180
|
#
|
2225
3181
|
# Get Diagnostics Categories
|
2226
3182
|
#
|
@@ -2597,6 +3553,56 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
2597
3553
|
promise.execute
|
2598
3554
|
end
|
2599
3555
|
|
3556
|
+
#
|
3557
|
+
# List Hosting Environment Detector Responses
|
3558
|
+
#
|
3559
|
+
# List Hosting Environment Detector Responses
|
3560
|
+
#
|
3561
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
3562
|
+
# resource belongs.
|
3563
|
+
# @param name [String] Site Name
|
3564
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3565
|
+
# will be added to the HTTP request.
|
3566
|
+
#
|
3567
|
+
# @return [DetectorResponseCollection] which provide lazy access to pages of
|
3568
|
+
# the response.
|
3569
|
+
#
|
3570
|
+
def list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers:nil)
|
3571
|
+
response = list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:custom_headers).value!
|
3572
|
+
unless response.nil?
|
3573
|
+
page = response.body
|
3574
|
+
page.next_method = Proc.new do |next_page_link|
|
3575
|
+
list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers)
|
3576
|
+
end
|
3577
|
+
page
|
3578
|
+
end
|
3579
|
+
end
|
3580
|
+
|
3581
|
+
#
|
3582
|
+
# List Site Detector Responses
|
3583
|
+
#
|
3584
|
+
# List Site Detector Responses
|
3585
|
+
#
|
3586
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
3587
|
+
# resource belongs.
|
3588
|
+
# @param site_name [String] Site Name
|
3589
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3590
|
+
# will be added to the HTTP request.
|
3591
|
+
#
|
3592
|
+
# @return [DetectorResponseCollection] which provide lazy access to pages of
|
3593
|
+
# the response.
|
3594
|
+
#
|
3595
|
+
def list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:nil)
|
3596
|
+
response = list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value!
|
3597
|
+
unless response.nil?
|
3598
|
+
page = response.body
|
3599
|
+
page.next_method = Proc.new do |next_page_link|
|
3600
|
+
list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers)
|
3601
|
+
end
|
3602
|
+
page
|
3603
|
+
end
|
3604
|
+
end
|
3605
|
+
|
2600
3606
|
#
|
2601
3607
|
# Get Diagnostics Categories
|
2602
3608
|
#
|
@@ -2701,6 +3707,32 @@ module Azure::Web::Mgmt::V2016_03_01
|
|
2701
3707
|
end
|
2702
3708
|
end
|
2703
3709
|
|
3710
|
+
#
|
3711
|
+
# List Site Detector Responses
|
3712
|
+
#
|
3713
|
+
# List Site Detector Responses
|
3714
|
+
#
|
3715
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
3716
|
+
# resource belongs.
|
3717
|
+
# @param site_name [String] Site Name
|
3718
|
+
# @param slot [String] Slot Name
|
3719
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3720
|
+
# will be added to the HTTP request.
|
3721
|
+
#
|
3722
|
+
# @return [DetectorResponseCollection] which provide lazy access to pages of
|
3723
|
+
# the response.
|
3724
|
+
#
|
3725
|
+
def list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:nil)
|
3726
|
+
response = list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value!
|
3727
|
+
unless response.nil?
|
3728
|
+
page = response.body
|
3729
|
+
page.next_method = Proc.new do |next_page_link|
|
3730
|
+
list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers)
|
3731
|
+
end
|
3732
|
+
page
|
3733
|
+
end
|
3734
|
+
end
|
3735
|
+
|
2704
3736
|
#
|
2705
3737
|
# Get Diagnostics Categories
|
2706
3738
|
#
|