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.
Files changed (418) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_web.rb +41 -39
  3. data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +1 -1
  4. data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +1 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
  6. data/lib/2015-04-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
  7. data/lib/2015-04-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
  8. data/lib/2015-04-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +1 -1
  10. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +11 -10
  11. data/lib/2015-08-01/generated/azure_mgmt_web.rb +2 -0
  12. data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +1 -1
  13. data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +1 -1
  14. data/lib/2015-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
  15. data/lib/2015-08-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
  16. data/lib/2015-08-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
  17. data/lib/2015-08-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  18. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
  19. data/lib/2016-03-01/generated/azure_mgmt_web.rb +76 -52
  20. data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +235 -0
  21. data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +1 -1
  22. data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +1 -1
  23. data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +1143 -111
  24. data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
  25. data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
  26. data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter.rb +126 -0
  27. data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
  28. data/lib/2016-03-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
  29. data/lib/2016-03-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
  30. data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
  31. data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
  32. data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
  33. data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
  34. data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response.rb +102 -0
  35. data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
  36. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
  37. data/lib/2016-03-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
  38. data/lib/2016-03-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
  39. data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb +57 -22
  40. data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
  41. data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_rule.rb +49 -14
  42. data/lib/2016-03-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
  43. data/lib/2016-03-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
  44. data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +93 -0
  45. data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  46. data/lib/2016-03-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
  47. data/lib/2016-03-01/generated/azure_mgmt_web/models/stack_major_version.rb +90 -0
  48. data/lib/2016-03-01/generated/azure_mgmt_web/models/stack_minor_version.rb +69 -0
  49. data/lib/2016-03-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  50. data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +277 -17
  51. data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +582 -67
  52. data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1161 -0
  53. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +16 -6
  54. data/lib/2016-08-01/generated/azure_mgmt_web.rb +2 -0
  55. data/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
  56. data/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
  57. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
  58. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config_resource.rb +26 -0
  59. data/lib/2016-08-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  60. data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +87 -102
  61. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
  62. data/lib/2016-09-01/generated/azure_mgmt_web.rb +2 -0
  63. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +3 -3
  64. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +1 -1
  65. data/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
  66. data/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
  67. data/lib/2016-09-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
  68. data/lib/2016-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  69. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
  70. data/lib/2018-02-01/generated/azure_mgmt_web.rb +369 -0
  71. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2651 -0
  72. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +8089 -0
  73. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +4314 -0
  74. data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +243 -0
  75. data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +882 -0
  76. data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +231 -0
  77. data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +3845 -0
  78. data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +243 -0
  79. data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +2145 -0
  80. data/lib/2018-02-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
  81. data/lib/2018-02-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
  82. data/lib/2018-02-01/generated/azure_mgmt_web/models/address.rb +101 -0
  83. data/lib/2018-02-01/generated/azure_mgmt_web/models/address_response.rb +97 -0
  84. data/lib/2018-02-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
  85. data/lib/2018-02-01/generated/azure_mgmt_web/models/analysis_definition.rb +82 -0
  86. data/lib/2018-02-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
  87. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
  88. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
  89. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +359 -0
  90. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
  91. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +335 -0
  92. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +112 -0
  93. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +136 -0
  94. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment.rb +570 -0
  95. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
  96. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +605 -0
  97. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +629 -0
  98. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan.rb +329 -0
  99. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
  100. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +293 -0
  101. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
  102. data/lib/2018-02-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
  103. data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
  104. data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
  105. data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
  106. data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
  107. data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
  108. data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
  109. data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
  110. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
  111. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
  112. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
  113. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
  114. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item.rb +257 -0
  115. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
  116. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
  117. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_request.rb +128 -0
  118. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
  119. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
  120. data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb +137 -0
  121. data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
  122. data/lib/2018-02-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +19 -0
  123. data/lib/2018-02-01/generated/azure_mgmt_web/models/capability.rb +68 -0
  124. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate.rb +335 -0
  125. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
  126. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
  127. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_email.rb +92 -0
  128. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_action.rb +101 -0
  129. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
  130. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
  131. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +311 -0
  132. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
  133. data/lib/2018-02-01/generated/azure_mgmt_web/models/channels.rb +19 -0
  134. data/lib/2018-02-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
  135. data/lib/2018-02-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
  136. data/lib/2018-02-01/generated/azure_mgmt_web/models/cloning_info.rb +170 -0
  137. data/lib/2018-02-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
  138. data/lib/2018-02-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
  139. data/lib/2018-02-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
  140. data/lib/2018-02-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +90 -0
  141. data/lib/2018-02-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
  142. data/lib/2018-02-01/generated/azure_mgmt_web/models/contact.rb +138 -0
  143. data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job.rb +192 -0
  144. data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
  145. data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
  146. data/lib/2018-02-01/generated/azure_mgmt_web/models/cors_settings.rb +56 -0
  147. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
  148. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
  149. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
  150. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
  151. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
  152. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +49 -0
  153. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
  154. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
  155. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
  156. data/lib/2018-02-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
  157. data/lib/2018-02-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +249 -0
  158. data/lib/2018-02-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
  159. data/lib/2018-02-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
  160. data/lib/2018-02-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
  161. data/lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
  162. data/lib/2018-02-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
  163. data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
  164. data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
  165. data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
  166. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +107 -0
  167. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_site.rb +107 -0
  168. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
  169. data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment.rb +170 -0
  170. data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
  171. data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
  172. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
  173. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_definition.rb +118 -0
  174. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
  175. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response.rb +102 -0
  176. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
  177. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +153 -0
  178. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
  179. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category.rb +82 -0
  180. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
  181. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
  182. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
  183. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +197 -0
  184. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
  185. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
  186. data/lib/2018-02-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
  187. data/lib/2018-02-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
  188. data/lib/2018-02-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
  189. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain.rb +372 -0
  190. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +73 -0
  191. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
  192. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
  193. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +81 -0
  194. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
  195. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +348 -0
  196. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
  197. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
  198. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
  199. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
  200. data/lib/2018-02-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
  201. data/lib/2018-02-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
  202. data/lib/2018-02-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
  203. data/lib/2018-02-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
  204. data/lib/2018-02-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
  205. data/lib/2018-02-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
  206. data/lib/2018-02-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
  207. data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope.rb +177 -0
  208. data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
  209. data/lib/2018-02-01/generated/azure_mgmt_web/models/function_secrets.rb +92 -0
  210. data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region.rb +94 -0
  211. data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
  212. data/lib/2018-02-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
  213. data/lib/2018-02-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
  214. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
  215. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding.rb +179 -0
  216. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
  217. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
  218. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
  219. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
  220. data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
  221. data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
  222. data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
  223. data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
  224. data/lib/2018-02-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
  225. data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection.rb +163 -0
  226. data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
  227. data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +95 -0
  228. data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +95 -0
  229. data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier.rb +81 -0
  230. data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
  231. data/lib/2018-02-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
  232. data/lib/2018-02-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb +17 -0
  233. data/lib/2018-02-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +16 -0
  234. data/lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +120 -0
  235. data/lib/2018-02-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
  236. data/lib/2018-02-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
  237. data/lib/2018-02-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
  238. data/lib/2018-02-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
  239. data/lib/2018-02-01/generated/azure_mgmt_web/models/log_specification.rb +68 -0
  240. data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
  241. data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_service_identity.rb +91 -0
  242. data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +16 -0
  243. data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_availabilily.rb +57 -0
  244. data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
  245. data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb +128 -0
  246. data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_specification.rb +218 -0
  247. data/lib/2018-02-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +94 -0
  248. data/lib/2018-02-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +108 -0
  249. data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy.rb +165 -0
  250. data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log.rb +91 -0
  251. data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
  252. data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
  253. data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
  254. data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_status.rb +132 -0
  255. data/lib/2018-02-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
  256. data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
  257. data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
  258. data/lib/2018-02-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
  259. data/lib/2018-02-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
  260. data/lib/2018-02-01/generated/azure_mgmt_web/models/network_features.rb +140 -0
  261. data/lib/2018-02-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
  262. data/lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb +135 -0
  263. data/lib/2018-02-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
  264. data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
  265. data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
  266. data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
  267. data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
  268. data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on.rb +149 -0
  269. data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +184 -0
  270. data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
  271. data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +125 -0
  272. data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access.rb +102 -0
  273. data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
  274. data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
  275. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info.rb +509 -0
  276. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
  277. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info.rb +192 -0
  278. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
  279. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info.rb +214 -0
  280. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
  281. data/lib/2018-02-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
  282. data/lib/2018-02-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +83 -0
  283. data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate.rb +106 -0
  284. data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
  285. data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
  286. data/lib/2018-02-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
  287. data/lib/2018-02-01/generated/azure_mgmt_web/models/push_settings.rb +123 -0
  288. data/lib/2018-02-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +141 -0
  289. data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation.rb +360 -0
  290. data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
  291. data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_rule.rb +237 -0
  292. data/lib/2018-02-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +116 -0
  293. data/lib/2018-02-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +147 -0
  294. data/lib/2018-02-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
  295. data/lib/2018-02-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
  296. data/lib/2018-02-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +104 -0
  297. data/lib/2018-02-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
  298. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource.rb +112 -0
  299. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
  300. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric.rb +163 -0
  301. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
  302. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +99 -0
  303. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +148 -0
  304. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
  305. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_name.rb +59 -0
  306. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_property.rb +57 -0
  307. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_value.rb +129 -0
  308. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
  309. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
  310. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
  311. data/lib/2018-02-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
  312. data/lib/2018-02-01/generated/azure_mgmt_web/models/restore_request.rb +217 -0
  313. data/lib/2018-02-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
  314. data/lib/2018-02-01/generated/azure_mgmt_web/models/scm_type.rb +27 -0
  315. data/lib/2018-02-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
  316. data/lib/2018-02-01/generated/azure_mgmt_web/models/site.rb +554 -0
  317. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb +477 -0
  318. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
  319. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
  320. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
  321. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config.rb +676 -0
  322. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource.rb +711 -0
  323. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
  324. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +94 -0
  325. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
  326. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info.rb +301 -0
  327. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
  328. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
  329. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_instance.rb +82 -0
  330. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
  331. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
  332. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_logs_config.rb +118 -0
  333. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
  334. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_patch_resource.rb +518 -0
  335. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +114 -0
  336. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
  337. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
  338. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_source_control.rb +129 -0
  339. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
  340. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
  341. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
  342. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
  343. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
  344. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_name.rb +22 -0
  345. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +108 -0
  346. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference.rb +157 -0
  347. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
  348. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
  349. data/lib/2018-02-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
  350. data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot.rb +82 -0
  351. data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
  352. data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
  353. data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +133 -0
  354. data/lib/2018-02-01/generated/azure_mgmt_web/models/solution.rb +148 -0
  355. data/lib/2018-02-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
  356. data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control.rb +114 -0
  357. data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
  358. data/lib/2018-02-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
  359. data/lib/2018-02-01/generated/azure_mgmt_web/models/stack_major_version.rb +90 -0
  360. data/lib/2018-02-01/generated/azure_mgmt_web/models/stack_minor_version.rb +69 -0
  361. data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity.rb +167 -0
  362. data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
  363. data/lib/2018-02-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
  364. data/lib/2018-02-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
  365. data/lib/2018-02-01/generated/azure_mgmt_web/models/storage_migration_options.rb +119 -0
  366. data/lib/2018-02-01/generated/azure_mgmt_web/models/storage_migration_response.rb +83 -0
  367. data/lib/2018-02-01/generated/azure_mgmt_web/models/string_dictionary.rb +89 -0
  368. data/lib/2018-02-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  369. data/lib/2018-02-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +96 -0
  370. data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
  371. data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
  372. data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain.rb +82 -0
  373. data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
  374. data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
  375. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history.rb +91 -0
  376. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
  377. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_run.rb +193 -0
  378. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job.rb +191 -0
  379. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
  380. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
  381. data/lib/2018-02-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
  382. data/lib/2018-02-01/generated/azure_mgmt_web/models/usage.rb +168 -0
  383. data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
  384. data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
  385. data/lib/2018-02-01/generated/azure_mgmt_web/models/user.rb +125 -0
  386. data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_request.rb +155 -0
  387. data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
  388. data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
  389. data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
  390. data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
  391. data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
  392. data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +79 -0
  393. data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
  394. data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_gateway.rb +93 -0
  395. data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_info.rb +153 -0
  396. data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_parameters.rb +103 -0
  397. data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_route.rb +115 -0
  398. data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +102 -0
  399. data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +93 -0
  400. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
  401. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +99 -0
  402. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job.rb +157 -0
  403. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
  404. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
  405. data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
  406. data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
  407. data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +149 -0
  408. data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_size_options.rb +21 -0
  409. data/lib/2018-02-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  410. data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +661 -0
  411. data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +1331 -0
  412. data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +566 -0
  413. data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +45908 -0
  414. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +2701 -0
  415. data/lib/azure_mgmt_web.rb +3 -2
  416. data/lib/profiles/latest/modules/web_profile_module.rb +1045 -969
  417. data/lib/version.rb +1 -1
  418. metadata +382 -5
@@ -0,0 +1,1331 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Web::Mgmt::V2018_02_01
7
+ #
8
+ # WebSite Management Client
9
+ #
10
+ class Recommendations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Recommendations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [WebSiteManagementClient] reference to the WebSiteManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # List all recommendations for a subscription.
26
+ #
27
+ # List all recommendations for a subscription.
28
+ #
29
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
30
+ # critical recommendations. The default is <code>false</code>, which returns
31
+ # all recommendations.
32
+ # @param filter [String] Filter is specified by using OData syntax. Example:
33
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
34
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
35
+ # duration'[PT1H|PT1M|P1D]
36
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
+ # will be added to the HTTP request.
38
+ #
39
+ # @return [Array<Recommendation>] operation results.
40
+ #
41
+ def list(featured:nil, filter:nil, custom_headers:nil)
42
+ first_page = list_as_lazy(featured:featured, filter:filter, custom_headers:custom_headers)
43
+ first_page.get_all_items
44
+ end
45
+
46
+ #
47
+ # List all recommendations for a subscription.
48
+ #
49
+ # List all recommendations for a subscription.
50
+ #
51
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
52
+ # critical recommendations. The default is <code>false</code>, which returns
53
+ # all recommendations.
54
+ # @param filter [String] Filter is specified by using OData syntax. Example:
55
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
56
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
57
+ # duration'[PT1H|PT1M|P1D]
58
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
59
+ # will be added to the HTTP request.
60
+ #
61
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
62
+ #
63
+ def list_with_http_info(featured:nil, filter:nil, custom_headers:nil)
64
+ list_async(featured:featured, filter:filter, custom_headers:custom_headers).value!
65
+ end
66
+
67
+ #
68
+ # List all recommendations for a subscription.
69
+ #
70
+ # List all recommendations for a subscription.
71
+ #
72
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
73
+ # critical recommendations. The default is <code>false</code>, which returns
74
+ # all recommendations.
75
+ # @param filter [String] Filter is specified by using OData syntax. Example:
76
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
77
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
78
+ # duration'[PT1H|PT1M|P1D]
79
+ # @param [Hash{String => String}] A hash of custom headers that will be added
80
+ # to the HTTP request.
81
+ #
82
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
+ #
84
+ def list_async(featured:nil, filter:nil, custom_headers:nil)
85
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
86
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
87
+
88
+
89
+ request_headers = {}
90
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
+
92
+ # Set Headers
93
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
94
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
95
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations'
96
+
97
+ request_url = @base_url || @client.base_url
98
+
99
+ options = {
100
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
101
+ path_params: {'subscriptionId' => @client.subscription_id},
102
+ query_params: {'featured' => featured,'api-version' => @client.api_version},
103
+ skip_encoding_query_params: {'$filter' => filter},
104
+ headers: request_headers.merge(custom_headers || {}),
105
+ base_url: request_url
106
+ }
107
+ promise = @client.make_request_async(:get, path_template, options)
108
+
109
+ promise = promise.then do |result|
110
+ http_response = result.response
111
+ status_code = http_response.status
112
+ response_content = http_response.body
113
+ unless status_code == 200
114
+ error_model = JSON.load(response_content)
115
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
116
+ end
117
+
118
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
119
+ # Deserialize Response
120
+ if status_code == 200
121
+ begin
122
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
123
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
125
+ rescue Exception => e
126
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
127
+ end
128
+ end
129
+
130
+ result
131
+ end
132
+
133
+ promise.execute
134
+ end
135
+
136
+ #
137
+ # Reset all recommendation opt-out settings for a subscription.
138
+ #
139
+ # Reset all recommendation opt-out settings for a subscription.
140
+ #
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ #
145
+ def reset_all_filters(custom_headers:nil)
146
+ response = reset_all_filters_async(custom_headers:custom_headers).value!
147
+ nil
148
+ end
149
+
150
+ #
151
+ # Reset all recommendation opt-out settings for a subscription.
152
+ #
153
+ # Reset all recommendation opt-out settings for a subscription.
154
+ #
155
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
+ # will be added to the HTTP request.
157
+ #
158
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
159
+ #
160
+ def reset_all_filters_with_http_info(custom_headers:nil)
161
+ reset_all_filters_async(custom_headers:custom_headers).value!
162
+ end
163
+
164
+ #
165
+ # Reset all recommendation opt-out settings for a subscription.
166
+ #
167
+ # Reset all recommendation opt-out settings for a subscription.
168
+ #
169
+ # @param [Hash{String => String}] A hash of custom headers that will be added
170
+ # to the HTTP request.
171
+ #
172
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
173
+ #
174
+ def reset_all_filters_async(custom_headers:nil)
175
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
176
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
177
+
178
+
179
+ request_headers = {}
180
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
181
+
182
+ # Set Headers
183
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
184
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
185
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset'
186
+
187
+ request_url = @base_url || @client.base_url
188
+
189
+ options = {
190
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
191
+ path_params: {'subscriptionId' => @client.subscription_id},
192
+ query_params: {'api-version' => @client.api_version},
193
+ headers: request_headers.merge(custom_headers || {}),
194
+ base_url: request_url
195
+ }
196
+ promise = @client.make_request_async(:post, path_template, options)
197
+
198
+ promise = promise.then do |result|
199
+ http_response = result.response
200
+ status_code = http_response.status
201
+ response_content = http_response.body
202
+ unless status_code == 204
203
+ error_model = JSON.load(response_content)
204
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
205
+ end
206
+
207
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
208
+
209
+ result
210
+ end
211
+
212
+ promise.execute
213
+ end
214
+
215
+ #
216
+ # Disables the specified rule so it will not apply to a subscription in the
217
+ # future.
218
+ #
219
+ # Disables the specified rule so it will not apply to a subscription in the
220
+ # future.
221
+ #
222
+ # @param name [String] Rule name
223
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
224
+ # will be added to the HTTP request.
225
+ #
226
+ #
227
+ def disable_recommendation_for_subscription(name, custom_headers:nil)
228
+ response = disable_recommendation_for_subscription_async(name, custom_headers:custom_headers).value!
229
+ nil
230
+ end
231
+
232
+ #
233
+ # Disables the specified rule so it will not apply to a subscription in the
234
+ # future.
235
+ #
236
+ # Disables the specified rule so it will not apply to a subscription in the
237
+ # future.
238
+ #
239
+ # @param name [String] Rule name
240
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
241
+ # will be added to the HTTP request.
242
+ #
243
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
244
+ #
245
+ def disable_recommendation_for_subscription_with_http_info(name, custom_headers:nil)
246
+ disable_recommendation_for_subscription_async(name, custom_headers:custom_headers).value!
247
+ end
248
+
249
+ #
250
+ # Disables the specified rule so it will not apply to a subscription in the
251
+ # future.
252
+ #
253
+ # Disables the specified rule so it will not apply to a subscription in the
254
+ # future.
255
+ #
256
+ # @param name [String] Rule name
257
+ # @param [Hash{String => String}] A hash of custom headers that will be added
258
+ # to the HTTP request.
259
+ #
260
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
+ #
262
+ def disable_recommendation_for_subscription_async(name, custom_headers:nil)
263
+ fail ArgumentError, 'name is nil' if name.nil?
264
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
265
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
266
+
267
+
268
+ request_headers = {}
269
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
270
+
271
+ # Set Headers
272
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
273
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
274
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable'
275
+
276
+ request_url = @base_url || @client.base_url
277
+
278
+ options = {
279
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
280
+ path_params: {'name' => name,'subscriptionId' => @client.subscription_id},
281
+ query_params: {'api-version' => @client.api_version},
282
+ headers: request_headers.merge(custom_headers || {}),
283
+ base_url: request_url
284
+ }
285
+ promise = @client.make_request_async(:post, path_template, options)
286
+
287
+ promise = promise.then do |result|
288
+ http_response = result.response
289
+ status_code = http_response.status
290
+ response_content = http_response.body
291
+ unless status_code == 200
292
+ error_model = JSON.load(response_content)
293
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
294
+ end
295
+
296
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
297
+
298
+ result
299
+ end
300
+
301
+ promise.execute
302
+ end
303
+
304
+ #
305
+ # Get past recommendations for an app, optionally specified by the time range.
306
+ #
307
+ # Get past recommendations for an app, optionally specified by the time range.
308
+ #
309
+ # @param resource_group_name [String] Name of the resource group to which the
310
+ # resource belongs.
311
+ # @param site_name [String] Name of the app.
312
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
313
+ # recommendations. The default is <code>true</code>, which returns only expired
314
+ # recommendations.
315
+ # @param filter [String] Filter is specified by using OData syntax. Example:
316
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
317
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
318
+ # duration'[PT1H|PT1M|P1D]
319
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
320
+ # will be added to the HTTP request.
321
+ #
322
+ # @return [Array<Recommendation>] operation results.
323
+ #
324
+ def list_history_for_web_app(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
325
+ first_page = list_history_for_web_app_as_lazy(resource_group_name, site_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers)
326
+ first_page.get_all_items
327
+ end
328
+
329
+ #
330
+ # Get past recommendations for an app, optionally specified by the time range.
331
+ #
332
+ # Get past recommendations for an app, optionally specified by the time range.
333
+ #
334
+ # @param resource_group_name [String] Name of the resource group to which the
335
+ # resource belongs.
336
+ # @param site_name [String] Name of the app.
337
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
338
+ # recommendations. The default is <code>true</code>, which returns only expired
339
+ # recommendations.
340
+ # @param filter [String] Filter is specified by using OData syntax. Example:
341
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
342
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
343
+ # duration'[PT1H|PT1M|P1D]
344
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
345
+ # will be added to the HTTP request.
346
+ #
347
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
348
+ #
349
+ def list_history_for_web_app_with_http_info(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
350
+ list_history_for_web_app_async(resource_group_name, site_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers).value!
351
+ end
352
+
353
+ #
354
+ # Get past recommendations for an app, optionally specified by the time range.
355
+ #
356
+ # Get past recommendations for an app, optionally specified by the time range.
357
+ #
358
+ # @param resource_group_name [String] Name of the resource group to which the
359
+ # resource belongs.
360
+ # @param site_name [String] Name of the app.
361
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
362
+ # recommendations. The default is <code>true</code>, which returns only expired
363
+ # recommendations.
364
+ # @param filter [String] Filter is specified by using OData syntax. Example:
365
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
366
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
367
+ # duration'[PT1H|PT1M|P1D]
368
+ # @param [Hash{String => String}] A hash of custom headers that will be added
369
+ # to the HTTP request.
370
+ #
371
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
372
+ #
373
+ def list_history_for_web_app_async(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
374
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
375
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
376
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
377
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
378
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
379
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
380
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
381
+
382
+
383
+ request_headers = {}
384
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
385
+
386
+ # Set Headers
387
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
388
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
389
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory'
390
+
391
+ request_url = @base_url || @client.base_url
392
+
393
+ options = {
394
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
395
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
396
+ query_params: {'expiredOnly' => expired_only,'api-version' => @client.api_version},
397
+ skip_encoding_query_params: {'$filter' => filter},
398
+ headers: request_headers.merge(custom_headers || {}),
399
+ base_url: request_url
400
+ }
401
+ promise = @client.make_request_async(:get, path_template, options)
402
+
403
+ promise = promise.then do |result|
404
+ http_response = result.response
405
+ status_code = http_response.status
406
+ response_content = http_response.body
407
+ unless status_code == 200
408
+ error_model = JSON.load(response_content)
409
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
410
+ end
411
+
412
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
413
+ # Deserialize Response
414
+ if status_code == 200
415
+ begin
416
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
417
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection.mapper()
418
+ result.body = @client.deserialize(result_mapper, parsed_response)
419
+ rescue Exception => e
420
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
421
+ end
422
+ end
423
+
424
+ result
425
+ end
426
+
427
+ promise.execute
428
+ end
429
+
430
+ #
431
+ # Get all recommendations for an app.
432
+ #
433
+ # Get all recommendations for an app.
434
+ #
435
+ # @param resource_group_name [String] Name of the resource group to which the
436
+ # resource belongs.
437
+ # @param site_name [String] Name of the app.
438
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
439
+ # critical recommendations. The default is <code>false</code>, which returns
440
+ # all recommendations.
441
+ # @param filter [String] Return only channels specified in the filter. Filter
442
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
443
+ # channel eq 'Notification'
444
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
445
+ # will be added to the HTTP request.
446
+ #
447
+ # @return [Array<Recommendation>] operation results.
448
+ #
449
+ def list_recommended_rules_for_web_app(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
450
+ first_page = list_recommended_rules_for_web_app_as_lazy(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers)
451
+ first_page.get_all_items
452
+ end
453
+
454
+ #
455
+ # Get all recommendations for an app.
456
+ #
457
+ # Get all recommendations for an app.
458
+ #
459
+ # @param resource_group_name [String] Name of the resource group to which the
460
+ # resource belongs.
461
+ # @param site_name [String] Name of the app.
462
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
463
+ # critical recommendations. The default is <code>false</code>, which returns
464
+ # all recommendations.
465
+ # @param filter [String] Return only channels specified in the filter. Filter
466
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
467
+ # channel eq 'Notification'
468
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
469
+ # will be added to the HTTP request.
470
+ #
471
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
472
+ #
473
+ def list_recommended_rules_for_web_app_with_http_info(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
474
+ list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers).value!
475
+ end
476
+
477
+ #
478
+ # Get all recommendations for an app.
479
+ #
480
+ # Get all recommendations for an app.
481
+ #
482
+ # @param resource_group_name [String] Name of the resource group to which the
483
+ # resource belongs.
484
+ # @param site_name [String] Name of the app.
485
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
486
+ # critical recommendations. The default is <code>false</code>, which returns
487
+ # all recommendations.
488
+ # @param filter [String] Return only channels specified in the filter. Filter
489
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
490
+ # channel eq 'Notification'
491
+ # @param [Hash{String => String}] A hash of custom headers that will be added
492
+ # to the HTTP request.
493
+ #
494
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
495
+ #
496
+ def list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
497
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
498
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
499
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
500
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
501
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
502
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
503
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
504
+
505
+
506
+ request_headers = {}
507
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
508
+
509
+ # Set Headers
510
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
511
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
512
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations'
513
+
514
+ request_url = @base_url || @client.base_url
515
+
516
+ options = {
517
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
518
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
519
+ query_params: {'featured' => featured,'api-version' => @client.api_version},
520
+ skip_encoding_query_params: {'$filter' => filter},
521
+ headers: request_headers.merge(custom_headers || {}),
522
+ base_url: request_url
523
+ }
524
+ promise = @client.make_request_async(:get, path_template, options)
525
+
526
+ promise = promise.then do |result|
527
+ http_response = result.response
528
+ status_code = http_response.status
529
+ response_content = http_response.body
530
+ unless status_code == 200
531
+ error_model = JSON.load(response_content)
532
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
533
+ end
534
+
535
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
536
+ # Deserialize Response
537
+ if status_code == 200
538
+ begin
539
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
540
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection.mapper()
541
+ result.body = @client.deserialize(result_mapper, parsed_response)
542
+ rescue Exception => e
543
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
544
+ end
545
+ end
546
+
547
+ result
548
+ end
549
+
550
+ promise.execute
551
+ end
552
+
553
+ #
554
+ # Disable all recommendations for an app.
555
+ #
556
+ # Disable all recommendations for an app.
557
+ #
558
+ # @param resource_group_name [String] Name of the resource group to which the
559
+ # resource belongs.
560
+ # @param site_name [String] Name of the app.
561
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
562
+ # will be added to the HTTP request.
563
+ #
564
+ #
565
+ def disable_all_for_web_app(resource_group_name, site_name, custom_headers:nil)
566
+ response = disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
567
+ nil
568
+ end
569
+
570
+ #
571
+ # Disable all recommendations for an app.
572
+ #
573
+ # Disable all recommendations for an app.
574
+ #
575
+ # @param resource_group_name [String] Name of the resource group to which the
576
+ # resource belongs.
577
+ # @param site_name [String] Name of the app.
578
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
579
+ # will be added to the HTTP request.
580
+ #
581
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
582
+ #
583
+ def disable_all_for_web_app_with_http_info(resource_group_name, site_name, custom_headers:nil)
584
+ disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
585
+ end
586
+
587
+ #
588
+ # Disable all recommendations for an app.
589
+ #
590
+ # Disable all recommendations for an app.
591
+ #
592
+ # @param resource_group_name [String] Name of the resource group to which the
593
+ # resource belongs.
594
+ # @param site_name [String] Name of the app.
595
+ # @param [Hash{String => String}] A hash of custom headers that will be added
596
+ # to the HTTP request.
597
+ #
598
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
599
+ #
600
+ def disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:nil)
601
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
602
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
603
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
604
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
605
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
606
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
607
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
608
+
609
+
610
+ request_headers = {}
611
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
612
+
613
+ # Set Headers
614
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
615
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
616
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable'
617
+
618
+ request_url = @base_url || @client.base_url
619
+
620
+ options = {
621
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
622
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
623
+ query_params: {'api-version' => @client.api_version},
624
+ headers: request_headers.merge(custom_headers || {}),
625
+ base_url: request_url
626
+ }
627
+ promise = @client.make_request_async(:post, path_template, options)
628
+
629
+ promise = promise.then do |result|
630
+ http_response = result.response
631
+ status_code = http_response.status
632
+ response_content = http_response.body
633
+ unless status_code == 204
634
+ error_model = JSON.load(response_content)
635
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
636
+ end
637
+
638
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
639
+
640
+ result
641
+ end
642
+
643
+ promise.execute
644
+ end
645
+
646
+ #
647
+ # Reset all recommendation opt-out settings for an app.
648
+ #
649
+ # Reset all recommendation opt-out settings for an app.
650
+ #
651
+ # @param resource_group_name [String] Name of the resource group to which the
652
+ # resource belongs.
653
+ # @param site_name [String] Name of the app.
654
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
655
+ # will be added to the HTTP request.
656
+ #
657
+ #
658
+ def reset_all_filters_for_web_app(resource_group_name, site_name, custom_headers:nil)
659
+ response = reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
660
+ nil
661
+ end
662
+
663
+ #
664
+ # Reset all recommendation opt-out settings for an app.
665
+ #
666
+ # Reset all recommendation opt-out settings for an app.
667
+ #
668
+ # @param resource_group_name [String] Name of the resource group to which the
669
+ # resource belongs.
670
+ # @param site_name [String] Name of the app.
671
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
672
+ # will be added to the HTTP request.
673
+ #
674
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
675
+ #
676
+ def reset_all_filters_for_web_app_with_http_info(resource_group_name, site_name, custom_headers:nil)
677
+ reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
678
+ end
679
+
680
+ #
681
+ # Reset all recommendation opt-out settings for an app.
682
+ #
683
+ # Reset all recommendation opt-out settings for an app.
684
+ #
685
+ # @param resource_group_name [String] Name of the resource group to which the
686
+ # resource belongs.
687
+ # @param site_name [String] Name of the app.
688
+ # @param [Hash{String => String}] A hash of custom headers that will be added
689
+ # to the HTTP request.
690
+ #
691
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
692
+ #
693
+ def reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:nil)
694
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
695
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
696
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
697
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
698
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
699
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
700
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
701
+
702
+
703
+ request_headers = {}
704
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
705
+
706
+ # Set Headers
707
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
708
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
709
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset'
710
+
711
+ request_url = @base_url || @client.base_url
712
+
713
+ options = {
714
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
715
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
716
+ query_params: {'api-version' => @client.api_version},
717
+ headers: request_headers.merge(custom_headers || {}),
718
+ base_url: request_url
719
+ }
720
+ promise = @client.make_request_async(:post, path_template, options)
721
+
722
+ promise = promise.then do |result|
723
+ http_response = result.response
724
+ status_code = http_response.status
725
+ response_content = http_response.body
726
+ unless status_code == 204
727
+ error_model = JSON.load(response_content)
728
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
729
+ end
730
+
731
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
732
+
733
+ result
734
+ end
735
+
736
+ promise.execute
737
+ end
738
+
739
+ #
740
+ # Get a recommendation rule for an app.
741
+ #
742
+ # Get a recommendation rule for an app.
743
+ #
744
+ # @param resource_group_name [String] Name of the resource group to which the
745
+ # resource belongs.
746
+ # @param site_name [String] Name of the app.
747
+ # @param name [String] Name of the recommendation.
748
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
749
+ # last-seen timestamp of the recommendation object.
750
+ # @param recommendation_id [String] The GUID of the recommedation object if you
751
+ # query an expired one. You don't need to specify it to query an active entry.
752
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
753
+ # will be added to the HTTP request.
754
+ #
755
+ # @return [RecommendationRule] operation results.
756
+ #
757
+ def get_rule_details_by_web_app(resource_group_name, site_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
758
+ response = get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:update_seen, recommendation_id:recommendation_id, custom_headers:custom_headers).value!
759
+ response.body unless response.nil?
760
+ end
761
+
762
+ #
763
+ # Get a recommendation rule for an app.
764
+ #
765
+ # Get a recommendation rule for an app.
766
+ #
767
+ # @param resource_group_name [String] Name of the resource group to which the
768
+ # resource belongs.
769
+ # @param site_name [String] Name of the app.
770
+ # @param name [String] Name of the recommendation.
771
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
772
+ # last-seen timestamp of the recommendation object.
773
+ # @param recommendation_id [String] The GUID of the recommedation object if you
774
+ # query an expired one. You don't need to specify it to query an active entry.
775
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
776
+ # will be added to the HTTP request.
777
+ #
778
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
779
+ #
780
+ def get_rule_details_by_web_app_with_http_info(resource_group_name, site_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
781
+ get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:update_seen, recommendation_id:recommendation_id, custom_headers:custom_headers).value!
782
+ end
783
+
784
+ #
785
+ # Get a recommendation rule for an app.
786
+ #
787
+ # Get a recommendation rule for an app.
788
+ #
789
+ # @param resource_group_name [String] Name of the resource group to which the
790
+ # resource belongs.
791
+ # @param site_name [String] Name of the app.
792
+ # @param name [String] Name of the recommendation.
793
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
794
+ # last-seen timestamp of the recommendation object.
795
+ # @param recommendation_id [String] The GUID of the recommedation object if you
796
+ # query an expired one. You don't need to specify it to query an active entry.
797
+ # @param [Hash{String => String}] A hash of custom headers that will be added
798
+ # to the HTTP request.
799
+ #
800
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
801
+ #
802
+ def get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
803
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
804
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
805
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
806
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
807
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
808
+ fail ArgumentError, 'name is nil' if name.nil?
809
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
810
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
811
+
812
+
813
+ request_headers = {}
814
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
815
+
816
+ # Set Headers
817
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
818
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
819
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}'
820
+
821
+ request_url = @base_url || @client.base_url
822
+
823
+ options = {
824
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
825
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'name' => name,'subscriptionId' => @client.subscription_id},
826
+ query_params: {'updateSeen' => update_seen,'recommendationId' => recommendation_id,'api-version' => @client.api_version},
827
+ headers: request_headers.merge(custom_headers || {}),
828
+ base_url: request_url
829
+ }
830
+ promise = @client.make_request_async(:get, path_template, options)
831
+
832
+ promise = promise.then do |result|
833
+ http_response = result.response
834
+ status_code = http_response.status
835
+ response_content = http_response.body
836
+ unless status_code == 200
837
+ error_model = JSON.load(response_content)
838
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
839
+ end
840
+
841
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
842
+ # Deserialize Response
843
+ if status_code == 200
844
+ begin
845
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
846
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule.mapper()
847
+ result.body = @client.deserialize(result_mapper, parsed_response)
848
+ rescue Exception => e
849
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
850
+ end
851
+ end
852
+
853
+ result
854
+ end
855
+
856
+ promise.execute
857
+ end
858
+
859
+ #
860
+ # Disables the specific rule for a web site permanently.
861
+ #
862
+ # Disables the specific rule for a web site permanently.
863
+ #
864
+ # @param resource_group_name [String] Name of the resource group to which the
865
+ # resource belongs.
866
+ # @param site_name [String] Site name
867
+ # @param name [String] Rule name
868
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
869
+ # will be added to the HTTP request.
870
+ #
871
+ #
872
+ def disable_recommendation_for_site(resource_group_name, site_name, name, custom_headers:nil)
873
+ response = disable_recommendation_for_site_async(resource_group_name, site_name, name, custom_headers:custom_headers).value!
874
+ nil
875
+ end
876
+
877
+ #
878
+ # Disables the specific rule for a web site permanently.
879
+ #
880
+ # Disables the specific rule for a web site permanently.
881
+ #
882
+ # @param resource_group_name [String] Name of the resource group to which the
883
+ # resource belongs.
884
+ # @param site_name [String] Site name
885
+ # @param name [String] Rule name
886
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
887
+ # will be added to the HTTP request.
888
+ #
889
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
890
+ #
891
+ def disable_recommendation_for_site_with_http_info(resource_group_name, site_name, name, custom_headers:nil)
892
+ disable_recommendation_for_site_async(resource_group_name, site_name, name, custom_headers:custom_headers).value!
893
+ end
894
+
895
+ #
896
+ # Disables the specific rule for a web site permanently.
897
+ #
898
+ # Disables the specific rule for a web site permanently.
899
+ #
900
+ # @param resource_group_name [String] Name of the resource group to which the
901
+ # resource belongs.
902
+ # @param site_name [String] Site name
903
+ # @param name [String] Rule name
904
+ # @param [Hash{String => String}] A hash of custom headers that will be added
905
+ # to the HTTP request.
906
+ #
907
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
908
+ #
909
+ def disable_recommendation_for_site_async(resource_group_name, site_name, name, custom_headers:nil)
910
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
911
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
912
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
913
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
914
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
915
+ fail ArgumentError, 'name is nil' if name.nil?
916
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
917
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
918
+
919
+
920
+ request_headers = {}
921
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
922
+
923
+ # Set Headers
924
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
925
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
926
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable'
927
+
928
+ request_url = @base_url || @client.base_url
929
+
930
+ options = {
931
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
932
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'name' => name,'subscriptionId' => @client.subscription_id},
933
+ query_params: {'api-version' => @client.api_version},
934
+ headers: request_headers.merge(custom_headers || {}),
935
+ base_url: request_url
936
+ }
937
+ promise = @client.make_request_async(:post, path_template, options)
938
+
939
+ promise = promise.then do |result|
940
+ http_response = result.response
941
+ status_code = http_response.status
942
+ response_content = http_response.body
943
+ unless status_code == 200
944
+ error_model = JSON.load(response_content)
945
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
946
+ end
947
+
948
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
949
+
950
+ result
951
+ end
952
+
953
+ promise.execute
954
+ end
955
+
956
+ #
957
+ # List all recommendations for a subscription.
958
+ #
959
+ # List all recommendations for a subscription.
960
+ #
961
+ # @param next_page_link [String] The NextLink from the previous successful call
962
+ # to List operation.
963
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
964
+ # will be added to the HTTP request.
965
+ #
966
+ # @return [RecommendationCollection] operation results.
967
+ #
968
+ def list_next(next_page_link, custom_headers:nil)
969
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
970
+ response.body unless response.nil?
971
+ end
972
+
973
+ #
974
+ # List all recommendations for a subscription.
975
+ #
976
+ # List all recommendations for a subscription.
977
+ #
978
+ # @param next_page_link [String] The NextLink from the previous successful call
979
+ # to List operation.
980
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
981
+ # will be added to the HTTP request.
982
+ #
983
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
984
+ #
985
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
986
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
987
+ end
988
+
989
+ #
990
+ # List all recommendations for a subscription.
991
+ #
992
+ # List all recommendations for a subscription.
993
+ #
994
+ # @param next_page_link [String] The NextLink from the previous successful call
995
+ # to List operation.
996
+ # @param [Hash{String => String}] A hash of custom headers that will be added
997
+ # to the HTTP request.
998
+ #
999
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1000
+ #
1001
+ def list_next_async(next_page_link, custom_headers:nil)
1002
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1003
+
1004
+
1005
+ request_headers = {}
1006
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1007
+
1008
+ # Set Headers
1009
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1010
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1011
+ path_template = '{nextLink}'
1012
+
1013
+ request_url = @base_url || @client.base_url
1014
+
1015
+ options = {
1016
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1017
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1018
+ headers: request_headers.merge(custom_headers || {}),
1019
+ base_url: request_url
1020
+ }
1021
+ promise = @client.make_request_async(:get, path_template, options)
1022
+
1023
+ promise = promise.then do |result|
1024
+ http_response = result.response
1025
+ status_code = http_response.status
1026
+ response_content = http_response.body
1027
+ unless status_code == 200
1028
+ error_model = JSON.load(response_content)
1029
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1030
+ end
1031
+
1032
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1033
+ # Deserialize Response
1034
+ if status_code == 200
1035
+ begin
1036
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1037
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection.mapper()
1038
+ result.body = @client.deserialize(result_mapper, parsed_response)
1039
+ rescue Exception => e
1040
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1041
+ end
1042
+ end
1043
+
1044
+ result
1045
+ end
1046
+
1047
+ promise.execute
1048
+ end
1049
+
1050
+ #
1051
+ # Get past recommendations for an app, optionally specified by the time range.
1052
+ #
1053
+ # Get past recommendations for an app, optionally specified by the time range.
1054
+ #
1055
+ # @param next_page_link [String] The NextLink from the previous successful call
1056
+ # to List operation.
1057
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1058
+ # will be added to the HTTP request.
1059
+ #
1060
+ # @return [RecommendationCollection] operation results.
1061
+ #
1062
+ def list_history_for_web_app_next(next_page_link, custom_headers:nil)
1063
+ response = list_history_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
1064
+ response.body unless response.nil?
1065
+ end
1066
+
1067
+ #
1068
+ # Get past recommendations for an app, optionally specified by the time range.
1069
+ #
1070
+ # Get past recommendations for an app, optionally specified by the time range.
1071
+ #
1072
+ # @param next_page_link [String] The NextLink from the previous successful call
1073
+ # to List operation.
1074
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1075
+ # will be added to the HTTP request.
1076
+ #
1077
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1078
+ #
1079
+ def list_history_for_web_app_next_with_http_info(next_page_link, custom_headers:nil)
1080
+ list_history_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
1081
+ end
1082
+
1083
+ #
1084
+ # Get past recommendations for an app, optionally specified by the time range.
1085
+ #
1086
+ # Get past recommendations for an app, optionally specified by the time range.
1087
+ #
1088
+ # @param next_page_link [String] The NextLink from the previous successful call
1089
+ # to List operation.
1090
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1091
+ # to the HTTP request.
1092
+ #
1093
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1094
+ #
1095
+ def list_history_for_web_app_next_async(next_page_link, custom_headers:nil)
1096
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1097
+
1098
+
1099
+ request_headers = {}
1100
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1101
+
1102
+ # Set Headers
1103
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1104
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1105
+ path_template = '{nextLink}'
1106
+
1107
+ request_url = @base_url || @client.base_url
1108
+
1109
+ options = {
1110
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1111
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1112
+ headers: request_headers.merge(custom_headers || {}),
1113
+ base_url: request_url
1114
+ }
1115
+ promise = @client.make_request_async(:get, path_template, options)
1116
+
1117
+ promise = promise.then do |result|
1118
+ http_response = result.response
1119
+ status_code = http_response.status
1120
+ response_content = http_response.body
1121
+ unless status_code == 200
1122
+ error_model = JSON.load(response_content)
1123
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1124
+ end
1125
+
1126
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1127
+ # Deserialize Response
1128
+ if status_code == 200
1129
+ begin
1130
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1131
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection.mapper()
1132
+ result.body = @client.deserialize(result_mapper, parsed_response)
1133
+ rescue Exception => e
1134
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1135
+ end
1136
+ end
1137
+
1138
+ result
1139
+ end
1140
+
1141
+ promise.execute
1142
+ end
1143
+
1144
+ #
1145
+ # Get all recommendations for an app.
1146
+ #
1147
+ # Get all recommendations for an app.
1148
+ #
1149
+ # @param next_page_link [String] The NextLink from the previous successful call
1150
+ # to List operation.
1151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1152
+ # will be added to the HTTP request.
1153
+ #
1154
+ # @return [RecommendationCollection] operation results.
1155
+ #
1156
+ def list_recommended_rules_for_web_app_next(next_page_link, custom_headers:nil)
1157
+ response = list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
1158
+ response.body unless response.nil?
1159
+ end
1160
+
1161
+ #
1162
+ # Get all recommendations for an app.
1163
+ #
1164
+ # Get all recommendations for an app.
1165
+ #
1166
+ # @param next_page_link [String] The NextLink from the previous successful call
1167
+ # to List operation.
1168
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1169
+ # will be added to the HTTP request.
1170
+ #
1171
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1172
+ #
1173
+ def list_recommended_rules_for_web_app_next_with_http_info(next_page_link, custom_headers:nil)
1174
+ list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
1175
+ end
1176
+
1177
+ #
1178
+ # Get all recommendations for an app.
1179
+ #
1180
+ # Get all recommendations for an app.
1181
+ #
1182
+ # @param next_page_link [String] The NextLink from the previous successful call
1183
+ # to List operation.
1184
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1185
+ # to the HTTP request.
1186
+ #
1187
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1188
+ #
1189
+ def list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:nil)
1190
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1191
+
1192
+
1193
+ request_headers = {}
1194
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1195
+
1196
+ # Set Headers
1197
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1198
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1199
+ path_template = '{nextLink}'
1200
+
1201
+ request_url = @base_url || @client.base_url
1202
+
1203
+ options = {
1204
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1205
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1206
+ headers: request_headers.merge(custom_headers || {}),
1207
+ base_url: request_url
1208
+ }
1209
+ promise = @client.make_request_async(:get, path_template, options)
1210
+
1211
+ promise = promise.then do |result|
1212
+ http_response = result.response
1213
+ status_code = http_response.status
1214
+ response_content = http_response.body
1215
+ unless status_code == 200
1216
+ error_model = JSON.load(response_content)
1217
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1218
+ end
1219
+
1220
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1221
+ # Deserialize Response
1222
+ if status_code == 200
1223
+ begin
1224
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1225
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection.mapper()
1226
+ result.body = @client.deserialize(result_mapper, parsed_response)
1227
+ rescue Exception => e
1228
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1229
+ end
1230
+ end
1231
+
1232
+ result
1233
+ end
1234
+
1235
+ promise.execute
1236
+ end
1237
+
1238
+ #
1239
+ # List all recommendations for a subscription.
1240
+ #
1241
+ # List all recommendations for a subscription.
1242
+ #
1243
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
1244
+ # critical recommendations. The default is <code>false</code>, which returns
1245
+ # all recommendations.
1246
+ # @param filter [String] Filter is specified by using OData syntax. Example:
1247
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
1248
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
1249
+ # duration'[PT1H|PT1M|P1D]
1250
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1251
+ # will be added to the HTTP request.
1252
+ #
1253
+ # @return [RecommendationCollection] which provide lazy access to pages of the
1254
+ # response.
1255
+ #
1256
+ def list_as_lazy(featured:nil, filter:nil, custom_headers:nil)
1257
+ response = list_async(featured:featured, filter:filter, custom_headers:custom_headers).value!
1258
+ unless response.nil?
1259
+ page = response.body
1260
+ page.next_method = Proc.new do |next_page_link|
1261
+ list_next_async(next_page_link, custom_headers:custom_headers)
1262
+ end
1263
+ page
1264
+ end
1265
+ end
1266
+
1267
+ #
1268
+ # Get past recommendations for an app, optionally specified by the time range.
1269
+ #
1270
+ # Get past recommendations for an app, optionally specified by the time range.
1271
+ #
1272
+ # @param resource_group_name [String] Name of the resource group to which the
1273
+ # resource belongs.
1274
+ # @param site_name [String] Name of the app.
1275
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
1276
+ # recommendations. The default is <code>true</code>, which returns only expired
1277
+ # recommendations.
1278
+ # @param filter [String] Filter is specified by using OData syntax. Example:
1279
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
1280
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
1281
+ # duration'[PT1H|PT1M|P1D]
1282
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1283
+ # will be added to the HTTP request.
1284
+ #
1285
+ # @return [RecommendationCollection] which provide lazy access to pages of the
1286
+ # response.
1287
+ #
1288
+ def list_history_for_web_app_as_lazy(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
1289
+ response = list_history_for_web_app_async(resource_group_name, site_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers).value!
1290
+ unless response.nil?
1291
+ page = response.body
1292
+ page.next_method = Proc.new do |next_page_link|
1293
+ list_history_for_web_app_next_async(next_page_link, custom_headers:custom_headers)
1294
+ end
1295
+ page
1296
+ end
1297
+ end
1298
+
1299
+ #
1300
+ # Get all recommendations for an app.
1301
+ #
1302
+ # Get all recommendations for an app.
1303
+ #
1304
+ # @param resource_group_name [String] Name of the resource group to which the
1305
+ # resource belongs.
1306
+ # @param site_name [String] Name of the app.
1307
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
1308
+ # critical recommendations. The default is <code>false</code>, which returns
1309
+ # all recommendations.
1310
+ # @param filter [String] Return only channels specified in the filter. Filter
1311
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
1312
+ # channel eq 'Notification'
1313
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1314
+ # will be added to the HTTP request.
1315
+ #
1316
+ # @return [RecommendationCollection] which provide lazy access to pages of the
1317
+ # response.
1318
+ #
1319
+ def list_recommended_rules_for_web_app_as_lazy(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
1320
+ response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers).value!
1321
+ unless response.nil?
1322
+ page = response.body
1323
+ page.next_method = Proc.new do |next_page_link|
1324
+ list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:custom_headers)
1325
+ end
1326
+ page
1327
+ end
1328
+ end
1329
+
1330
+ end
1331
+ end