azure_mgmt_web 0.17.3 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (532) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  3. data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +38 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  5. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  6. data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  9. data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +4 -0
  10. data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +16 -0
  11. data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  12. data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  13. data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +12 -0
  14. data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  15. data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  16. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +51 -5
  17. data/lib/2016-06-01/generated/azure_mgmt_web.rb +76 -0
  18. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb +240 -0
  19. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateways.rb +682 -0
  20. data/lib/2016-06-01/generated/azure_mgmt_web/connections.rb +815 -0
  21. data/lib/2016-06-01/generated/azure_mgmt_web/custom_apis.rb +997 -0
  22. data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +140 -0
  23. data/lib/2016-06-01/generated/azure_mgmt_web/managed_apis.rb +233 -0
  24. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb +106 -0
  25. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb +55 -0
  26. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb +179 -0
  27. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb +57 -0
  28. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb +130 -0
  29. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb +68 -0
  30. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_reference.rb +118 -0
  31. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb +46 -0
  32. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb +57 -0
  33. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb +90 -0
  34. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb +135 -0
  35. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb +58 -0
  36. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb +186 -0
  37. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_type.rb +17 -0
  38. data/lib/2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb +68 -0
  39. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_error.rb +116 -0
  40. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb +106 -0
  41. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb +56 -0
  42. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb +122 -0
  43. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb +106 -0
  44. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb +57 -0
  45. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb +123 -0
  46. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb +73 -0
  47. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb +61 -0
  48. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb +23 -0
  49. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb +69 -0
  50. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb +55 -0
  51. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb +81 -0
  52. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb +82 -0
  53. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb +106 -0
  54. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb +55 -0
  55. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb +196 -0
  56. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb +99 -0
  57. data/lib/2016-06-01/generated/azure_mgmt_web/models/link_state.rb +17 -0
  58. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb +105 -0
  59. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb +55 -0
  60. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb +106 -0
  61. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb +55 -0
  62. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb +112 -0
  63. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb +58 -0
  64. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb +81 -0
  65. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb +17 -0
  66. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb +65 -0
  67. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb +55 -0
  68. data/lib/2016-06-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  69. data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +732 -0
  70. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  71. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +124 -0
  72. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  73. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  74. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  75. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +128 -0
  76. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  77. data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  78. data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +16 -0
  79. data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  80. data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  81. data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  82. data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +38 -0
  83. data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +12 -0
  84. data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  85. data/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  86. data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  87. data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +788 -0
  88. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +58 -6
  89. data/lib/2020-09-01/generated/azure_mgmt_web.rb +461 -0
  90. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2704 -0
  91. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_environments.rb +7327 -0
  92. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_plans.rb +3918 -0
  93. data/lib/2020-09-01/generated/azure_mgmt_web/certificate_registration_provider.rb +247 -0
  94. data/lib/2020-09-01/generated/azure_mgmt_web/certificates.rb +898 -0
  95. data/lib/2020-09-01/generated/azure_mgmt_web/deleted_web_apps.rb +550 -0
  96. data/lib/2020-09-01/generated/azure_mgmt_web/diagnostics.rb +3664 -0
  97. data/lib/2020-09-01/generated/azure_mgmt_web/domain_registration_provider.rb +247 -0
  98. data/lib/2020-09-01/generated/azure_mgmt_web/domains.rb +2186 -0
  99. data/lib/2020-09-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
  100. data/lib/2020-09-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
  101. data/lib/2020-09-01/generated/azure_mgmt_web/models/address.rb +101 -0
  102. data/lib/2020-09-01/generated/azure_mgmt_web/models/address_response.rb +141 -0
  103. data/lib/2020-09-01/generated/azure_mgmt_web/models/allowed_audiences_validation.rb +99 -0
  104. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
  105. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_definition.rb +91 -0
  106. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
  107. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_management_config.rb +46 -0
  108. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_registration.rb +102 -0
  109. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
  110. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
  111. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +368 -0
  112. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
  113. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +344 -0
  114. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +121 -0
  115. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +145 -0
  116. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment.rb +569 -0
  117. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
  118. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +613 -0
  119. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +637 -0
  120. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan.rb +352 -0
  121. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
  122. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +318 -0
  123. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
  124. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
  125. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
  126. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
  127. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_resource.rb +153 -0
  128. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token.rb +91 -0
  129. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token_request.rb +57 -0
  130. data/lib/2020-09-01/generated/azure_mgmt_web/models/arm_id_wrapper.rb +47 -0
  131. data/lib/2020-09-01/generated/azure_mgmt_web/models/auth_platform.rb +113 -0
  132. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
  133. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
  134. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
  135. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
  136. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
  137. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory.rb +138 -0
  138. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_login.rb +110 -0
  139. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_registration.rb +124 -0
  140. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_validation.rb +111 -0
  141. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
  142. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
  143. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
  144. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
  145. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +99 -0
  146. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
  147. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
  148. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
  149. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item.rb +266 -0
  150. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
  151. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
  152. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_request.rb +148 -0
  153. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
  154. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
  155. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter.rb +146 -0
  156. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
  157. data/lib/2020-09-01/generated/azure_mgmt_web/models/blob_storage_token_store.rb +91 -0
  158. data/lib/2020-09-01/generated/azure_mgmt_web/models/build_status.rb +21 -0
  159. data/lib/2020-09-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +20 -0
  160. data/lib/2020-09-01/generated/azure_mgmt_web/models/capability.rb +68 -0
  161. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate.rb +356 -0
  162. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
  163. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
  164. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_email.rb +101 -0
  165. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action.rb +110 -0
  166. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
  167. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
  168. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +332 -0
  169. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
  170. data/lib/2020-09-01/generated/azure_mgmt_web/models/channels.rb +19 -0
  171. data/lib/2020-09-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
  172. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_cert_mode.rb +16 -0
  173. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_credential_method.rb +15 -0
  174. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_registration.rb +102 -0
  175. data/lib/2020-09-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
  176. data/lib/2020-09-01/generated/azure_mgmt_web/models/cloning_info.rb +181 -0
  177. data/lib/2020-09-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
  178. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
  179. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
  180. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +99 -0
  181. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
  182. data/lib/2020-09-01/generated/azure_mgmt_web/models/contact.rb +138 -0
  183. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_statistics.rb +82 -0
  184. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_usage.rb +88 -0
  185. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_info.rb +128 -0
  186. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_memory_statistics.rb +69 -0
  187. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_network_interface_statistics.rb +124 -0
  188. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_throttling_data.rb +69 -0
  189. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job.rb +201 -0
  190. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
  191. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
  192. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration.rb +104 -0
  193. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration_convention.rb +16 -0
  194. data/lib/2020-09-01/generated/azure_mgmt_web/models/cors_settings.rb +70 -0
  195. data/lib/2020-09-01/generated/azure_mgmt_web/models/created_by_type.rb +18 -0
  196. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_copy_slot_entity.rb +63 -0
  197. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
  198. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
  199. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
  200. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
  201. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
  202. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_collection.rb +106 -0
  203. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_entity.rb +91 -0
  204. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +60 -0
  205. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
  206. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
  207. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
  208. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
  209. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +258 -0
  210. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_open_id_connect_provider.rb +115 -0
  211. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
  212. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
  213. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
  214. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
  215. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
  216. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
  217. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
  218. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
  219. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +128 -0
  220. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_site.rb +175 -0
  221. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
  222. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment.rb +179 -0
  223. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
  224. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
  225. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
  226. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_definition.rb +127 -0
  227. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
  228. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response.rb +111 -0
  229. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
  230. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +162 -0
  231. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
  232. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category.rb +91 -0
  233. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
  234. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
  235. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
  236. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +206 -0
  237. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
  238. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
  239. data/lib/2020-09-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
  240. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
  241. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
  242. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain.rb +381 -0
  243. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_availability_check_result.rb +73 -0
  244. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
  245. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
  246. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +90 -0
  247. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
  248. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +357 -0
  249. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
  250. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
  251. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
  252. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
  253. data/lib/2020-09-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
  254. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_dependency.rb +68 -0
  255. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_detail.rb +83 -0
  256. data/lib/2020-09-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
  257. data/lib/2020-09-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
  258. data/lib/2020-09-01/generated/azure_mgmt_web/models/facebook.rb +126 -0
  259. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
  260. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
  261. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_token_store.rb +91 -0
  262. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy.rb +115 -0
  263. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy_convention.rb +17 -0
  264. data/lib/2020-09-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
  265. data/lib/2020-09-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
  266. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope.rb +231 -0
  267. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
  268. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_secrets.rb +57 -0
  269. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region.rb +115 -0
  270. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
  271. data/lib/2020-09-01/generated/azure_mgmt_web/models/git_hub.rb +115 -0
  272. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
  273. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_validation.rb +134 -0
  274. data/lib/2020-09-01/generated/azure_mgmt_web/models/google.rb +127 -0
  275. data/lib/2020-09-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
  276. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_keys.rb +84 -0
  277. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
  278. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding.rb +188 -0
  279. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
  280. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
  281. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
  282. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
  283. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
  284. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
  285. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
  286. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
  287. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
  288. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings.rb +115 -0
  289. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings_routes.rb +91 -0
  290. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb +172 -0
  291. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
  292. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +104 -0
  293. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +104 -0
  294. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier.rb +90 -0
  295. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
  296. data/lib/2020-09-01/generated/azure_mgmt_web/models/identity_providers.rb +160 -0
  297. data/lib/2020-09-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
  298. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint.rb +88 -0
  299. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint_collection.rb +99 -0
  300. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +17 -0
  301. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +202 -0
  302. data/lib/2020-09-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
  303. data/lib/2020-09-01/generated/azure_mgmt_web/models/jwt_claim_checks.rb +118 -0
  304. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_info.rb +57 -0
  305. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
  306. data/lib/2020-09-01/generated/azure_mgmt_web/models/load_balancing_mode.rb +18 -0
  307. data/lib/2020-09-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
  308. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
  309. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_specification.rb +79 -0
  310. data/lib/2020-09-01/generated/azure_mgmt_web/models/login.rb +158 -0
  311. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_routes.rb +91 -0
  312. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_scopes.rb +99 -0
  313. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
  314. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +97 -0
  315. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +18 -0
  316. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  317. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
  318. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_specification.rb +256 -0
  319. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +103 -0
  320. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +117 -0
  321. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy.rb +174 -0
  322. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log.rb +100 -0
  323. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
  324. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
  325. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
  326. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_status.rb +141 -0
  327. data/lib/2020-09-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
  328. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
  329. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
  330. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
  331. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
  332. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_features.rb +149 -0
  333. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
  334. data/lib/2020-09-01/generated/azure_mgmt_web/models/nonce.rb +102 -0
  335. data/lib/2020-09-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
  336. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_client_credential.rb +104 -0
  337. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_config.rb +135 -0
  338. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_login.rb +110 -0
  339. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_registration.rb +115 -0
  340. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation.rb +135 -0
  341. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
  342. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint.rb +70 -0
  343. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint_collection.rb +99 -0
  344. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
  345. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
  346. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
  347. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
  348. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on.rb +158 -0
  349. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +193 -0
  350. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
  351. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +134 -0
  352. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access.rb +111 -0
  353. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
  354. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
  355. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_endpoint_connection_resource.rb +116 -0
  356. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_approval_request_resource.rb +92 -0
  357. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_state.rb +68 -0
  358. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource.rb +81 -0
  359. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource_properties.rb +87 -0
  360. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resources_wrapper.rb +55 -0
  361. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info.rb +518 -0
  362. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
  363. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info.rb +201 -0
  364. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
  365. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info.rb +212 -0
  366. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
  367. data/lib/2020-09-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
  368. data/lib/2020-09-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +95 -0
  369. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate.rb +115 -0
  370. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
  371. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
  372. data/lib/2020-09-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
  373. data/lib/2020-09-01/generated/azure_mgmt_web/models/push_settings.rb +132 -0
  374. data/lib/2020-09-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +142 -0
  375. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation.rb +369 -0
  376. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
  377. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_rule.rb +246 -0
  378. data/lib/2020-09-01/generated/azure_mgmt_web/models/redundancy_mode.rb +19 -0
  379. data/lib/2020-09-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +125 -0
  380. data/lib/2020-09-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +156 -0
  381. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
  382. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
  383. data/lib/2020-09-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +113 -0
  384. data/lib/2020-09-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
  385. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource.rb +133 -0
  386. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
  387. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +102 -0
  388. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  389. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
  390. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +157 -0
  391. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
  392. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
  393. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
  394. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
  395. data/lib/2020-09-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
  396. data/lib/2020-09-01/generated/azure_mgmt_web/models/restore_request.rb +226 -0
  397. data/lib/2020-09-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
  398. data/lib/2020-09-01/generated/azure_mgmt_web/models/scm_type.rb +28 -0
  399. data/lib/2020-09-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
  400. data/lib/2020-09-01/generated/azure_mgmt_web/models/site.rb +643 -0
  401. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings.rb +659 -0
  402. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings_v2.rb +140 -0
  403. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
  404. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
  405. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
  406. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config.rb +782 -0
  407. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource.rb +826 -0
  408. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
  409. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +103 -0
  410. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
  411. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info.rb +310 -0
  412. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
  413. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
  414. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
  415. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
  416. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_logs_config.rb +127 -0
  417. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
  418. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_patch_resource.rb +619 -0
  419. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +123 -0
  420. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_runtime_state.rb +17 -0
  421. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
  422. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
  423. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_source_control.rb +150 -0
  424. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
  425. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
  426. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
  427. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
  428. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
  429. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_name.rb +24 -0
  430. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +137 -0
  431. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference.rb +166 -0
  432. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
  433. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
  434. data/lib/2020-09-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
  435. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot.rb +91 -0
  436. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
  437. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
  438. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +154 -0
  439. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution.rb +148 -0
  440. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
  441. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control.rb +123 -0
  442. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
  443. data/lib/2020-09-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
  444. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_major_version.rb +138 -0
  445. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_minor_version.rb +81 -0
  446. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb +168 -0
  447. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
  448. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_armresource.rb +196 -0
  449. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_armresource.rb +166 -0
  450. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_collection.rb +99 -0
  451. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_properties.rb +68 -0
  452. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_collection.rb +99 -0
  453. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_armresource.rb +105 -0
  454. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_collection.rb +102 -0
  455. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_armresource.rb +104 -0
  456. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_collection.rb +101 -0
  457. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_patch_resource.rb +160 -0
  458. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_reset_properties_armresource.rb +103 -0
  459. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_armresource.rb +127 -0
  460. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_collection.rb +99 -0
  461. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_request_resource.rb +135 -0
  462. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_response_resource.rb +103 -0
  463. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview.rb +103 -0
  464. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview_request.rb +114 -0
  465. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
  466. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
  467. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_options.rb +128 -0
  468. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_response.rb +92 -0
  469. data/lib/2020-09-01/generated/azure_mgmt_web/models/string_dictionary.rb +98 -0
  470. data/lib/2020-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  471. data/lib/2020-09-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +105 -0
  472. data/lib/2020-09-01/generated/azure_mgmt_web/models/system_data.rb +105 -0
  473. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
  474. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
  475. data/lib/2020-09-01/generated/azure_mgmt_web/models/token_store.rb +126 -0
  476. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain.rb +91 -0
  477. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
  478. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
  479. data/lib/2020-09-01/generated/azure_mgmt_web/models/trigger_types.rb +16 -0
  480. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history.rb +100 -0
  481. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
  482. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_run.rb +202 -0
  483. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job.rb +200 -0
  484. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
  485. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
  486. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter.rb +103 -0
  487. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter_registration.rb +102 -0
  488. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
  489. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action_v2.rb +18 -0
  490. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage.rb +177 -0
  491. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
  492. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
  493. data/lib/2020-09-01/generated/azure_mgmt_web/models/user.rb +134 -0
  494. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_request.rb +221 -0
  495. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
  496. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
  497. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
  498. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
  499. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
  500. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +90 -0
  501. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
  502. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_gateway.rb +102 -0
  503. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_info.rb +173 -0
  504. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_parameters.rb +112 -0
  505. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_route.rb +124 -0
  506. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +111 -0
  507. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +102 -0
  508. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
  509. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_instance_status_collection.rb +99 -0
  510. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job.rb +166 -0
  511. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
  512. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
  513. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_site_instance_status.rb +157 -0
  514. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
  515. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
  516. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +158 -0
  517. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_size_options.rb +22 -0
  518. data/lib/2020-09-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  519. data/lib/2020-09-01/generated/azure_mgmt_web/provider.rb +681 -0
  520. data/lib/2020-09-01/generated/azure_mgmt_web/recommendations.rb +2306 -0
  521. data/lib/2020-09-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1194 -0
  522. data/lib/2020-09-01/generated/azure_mgmt_web/static_sites.rb +3889 -0
  523. data/lib/2020-09-01/generated/azure_mgmt_web/top_level_domains.rb +576 -0
  524. data/lib/2020-09-01/generated/azure_mgmt_web/web_apps.rb +52832 -0
  525. data/lib/2020-09-01/generated/azure_mgmt_web/web_site_management_client.rb +2884 -0
  526. data/lib/azure_mgmt_web.rb +7 -4
  527. data/lib/profiles/latest/modules/web_profile_module.rb +1200 -866
  528. data/lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb +1469 -0
  529. data/lib/profiles/v2019_03_01_hybrid/web_module_definition.rb +8 -0
  530. data/lib/profiles/v2019_03_01_hybrid/web_v2019_03_01_hybrid_profile_client.rb +40 -0
  531. data/lib/version.rb +1 -1
  532. metadata +497 -5
@@ -0,0 +1,2306 @@
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::V2020_09_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
+ # Description for 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=channel 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
+ # Description for 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=channel 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
+ # Description for 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=channel 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
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
120
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
121
+ # Deserialize Response
122
+ if status_code == 200
123
+ begin
124
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
125
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
126
+ result.body = @client.deserialize(result_mapper, parsed_response)
127
+ rescue Exception => e
128
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
129
+ end
130
+ end
131
+
132
+ result
133
+ end
134
+
135
+ promise.execute
136
+ end
137
+
138
+ #
139
+ # Reset all recommendation opt-out settings for a subscription.
140
+ #
141
+ # Description for Reset all recommendation opt-out settings for a subscription.
142
+ #
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
145
+ #
146
+ #
147
+ def reset_all_filters(custom_headers:nil)
148
+ response = reset_all_filters_async(custom_headers:custom_headers).value!
149
+ nil
150
+ end
151
+
152
+ #
153
+ # Reset all recommendation opt-out settings for a subscription.
154
+ #
155
+ # Description for Reset all recommendation opt-out settings for a subscription.
156
+ #
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def reset_all_filters_with_http_info(custom_headers:nil)
163
+ reset_all_filters_async(custom_headers:custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # Reset all recommendation opt-out settings for a subscription.
168
+ #
169
+ # Description for Reset all recommendation opt-out settings for a subscription.
170
+ #
171
+ # @param [Hash{String => String}] A hash of custom headers that will be added
172
+ # to the HTTP request.
173
+ #
174
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
175
+ #
176
+ def reset_all_filters_async(custom_headers:nil)
177
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
178
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
179
+
180
+
181
+ request_headers = {}
182
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
183
+
184
+ # Set Headers
185
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
186
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
187
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset'
188
+
189
+ request_url = @base_url || @client.base_url
190
+
191
+ options = {
192
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
193
+ path_params: {'subscriptionId' => @client.subscription_id},
194
+ query_params: {'api-version' => @client.api_version},
195
+ headers: request_headers.merge(custom_headers || {}),
196
+ base_url: request_url
197
+ }
198
+ promise = @client.make_request_async(:post, path_template, options)
199
+
200
+ promise = promise.then do |result|
201
+ http_response = result.response
202
+ status_code = http_response.status
203
+ response_content = http_response.body
204
+ unless status_code == 204
205
+ error_model = JSON.load(response_content)
206
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
207
+ end
208
+
209
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
210
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
211
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
212
+
213
+ result
214
+ end
215
+
216
+ promise.execute
217
+ end
218
+
219
+ #
220
+ # Disables the specified rule so it will not apply to a subscription in the
221
+ # future.
222
+ #
223
+ # Description for Disables the specified rule so it will not apply to a
224
+ # subscription in the future.
225
+ #
226
+ # @param name [String] Rule name
227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
228
+ # will be added to the HTTP request.
229
+ #
230
+ #
231
+ def disable_recommendation_for_subscription(name, custom_headers:nil)
232
+ response = disable_recommendation_for_subscription_async(name, custom_headers:custom_headers).value!
233
+ nil
234
+ end
235
+
236
+ #
237
+ # Disables the specified rule so it will not apply to a subscription in the
238
+ # future.
239
+ #
240
+ # Description for Disables the specified rule so it will not apply to a
241
+ # subscription in the future.
242
+ #
243
+ # @param name [String] Rule name
244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
245
+ # will be added to the HTTP request.
246
+ #
247
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
248
+ #
249
+ def disable_recommendation_for_subscription_with_http_info(name, custom_headers:nil)
250
+ disable_recommendation_for_subscription_async(name, custom_headers:custom_headers).value!
251
+ end
252
+
253
+ #
254
+ # Disables the specified rule so it will not apply to a subscription in the
255
+ # future.
256
+ #
257
+ # Description for Disables the specified rule so it will not apply to a
258
+ # subscription in the future.
259
+ #
260
+ # @param name [String] Rule name
261
+ # @param [Hash{String => String}] A hash of custom headers that will be added
262
+ # to the HTTP request.
263
+ #
264
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
265
+ #
266
+ def disable_recommendation_for_subscription_async(name, custom_headers:nil)
267
+ fail ArgumentError, 'name is nil' if name.nil?
268
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
269
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
270
+
271
+
272
+ request_headers = {}
273
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
274
+
275
+ # Set Headers
276
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
277
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
278
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable'
279
+
280
+ request_url = @base_url || @client.base_url
281
+
282
+ options = {
283
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
284
+ path_params: {'name' => name,'subscriptionId' => @client.subscription_id},
285
+ query_params: {'api-version' => @client.api_version},
286
+ headers: request_headers.merge(custom_headers || {}),
287
+ base_url: request_url
288
+ }
289
+ promise = @client.make_request_async(:post, path_template, options)
290
+
291
+ promise = promise.then do |result|
292
+ http_response = result.response
293
+ status_code = http_response.status
294
+ response_content = http_response.body
295
+ unless status_code == 200
296
+ error_model = JSON.load(response_content)
297
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
298
+ end
299
+
300
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
301
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
302
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
303
+
304
+ result
305
+ end
306
+
307
+ promise.execute
308
+ end
309
+
310
+ #
311
+ # Get past recommendations for an app, optionally specified by the time range.
312
+ #
313
+ # Description for Get past recommendations for an app, optionally specified by
314
+ # the time range.
315
+ #
316
+ # @param resource_group_name [String] Name of the resource group to which the
317
+ # resource belongs.
318
+ # @param hosting_environment_name [String] Name of the hosting environment.
319
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
320
+ # recommendations. The default is <code>true</code>, which returns only expired
321
+ # recommendations.
322
+ # @param filter [String] Filter is specified by using OData syntax. Example:
323
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
324
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
325
+ # duration'[PT1H|PT1M|P1D]
326
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
+ # will be added to the HTTP request.
328
+ #
329
+ # @return [Array<Recommendation>] operation results.
330
+ #
331
+ def list_history_for_hosting_environment(resource_group_name, hosting_environment_name, expired_only:nil, filter:nil, custom_headers:nil)
332
+ first_page = list_history_for_hosting_environment_as_lazy(resource_group_name, hosting_environment_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers)
333
+ first_page.get_all_items
334
+ end
335
+
336
+ #
337
+ # Get past recommendations for an app, optionally specified by the time range.
338
+ #
339
+ # Description for Get past recommendations for an app, optionally specified by
340
+ # the time range.
341
+ #
342
+ # @param resource_group_name [String] Name of the resource group to which the
343
+ # resource belongs.
344
+ # @param hosting_environment_name [String] Name of the hosting environment.
345
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
346
+ # recommendations. The default is <code>true</code>, which returns only expired
347
+ # recommendations.
348
+ # @param filter [String] Filter is specified by using OData syntax. Example:
349
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
350
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
351
+ # duration'[PT1H|PT1M|P1D]
352
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
353
+ # will be added to the HTTP request.
354
+ #
355
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
356
+ #
357
+ def list_history_for_hosting_environment_with_http_info(resource_group_name, hosting_environment_name, expired_only:nil, filter:nil, custom_headers:nil)
358
+ list_history_for_hosting_environment_async(resource_group_name, hosting_environment_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers).value!
359
+ end
360
+
361
+ #
362
+ # Get past recommendations for an app, optionally specified by the time range.
363
+ #
364
+ # Description for Get past recommendations for an app, optionally specified by
365
+ # the time range.
366
+ #
367
+ # @param resource_group_name [String] Name of the resource group to which the
368
+ # resource belongs.
369
+ # @param hosting_environment_name [String] Name of the hosting environment.
370
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
371
+ # recommendations. The default is <code>true</code>, which returns only expired
372
+ # recommendations.
373
+ # @param filter [String] Filter is specified by using OData syntax. Example:
374
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
375
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
376
+ # duration'[PT1H|PT1M|P1D]
377
+ # @param [Hash{String => String}] A hash of custom headers that will be added
378
+ # to the HTTP request.
379
+ #
380
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
381
+ #
382
+ def list_history_for_hosting_environment_async(resource_group_name, hosting_environment_name, expired_only:nil, filter:nil, custom_headers:nil)
383
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
384
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
385
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
386
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
387
+ fail ArgumentError, 'hosting_environment_name is nil' if hosting_environment_name.nil?
388
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
389
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
390
+
391
+
392
+ request_headers = {}
393
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
394
+
395
+ # Set Headers
396
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
397
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
398
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory'
399
+
400
+ request_url = @base_url || @client.base_url
401
+
402
+ options = {
403
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
404
+ path_params: {'resourceGroupName' => resource_group_name,'hostingEnvironmentName' => hosting_environment_name,'subscriptionId' => @client.subscription_id},
405
+ query_params: {'expiredOnly' => expired_only,'api-version' => @client.api_version},
406
+ skip_encoding_query_params: {'$filter' => filter},
407
+ headers: request_headers.merge(custom_headers || {}),
408
+ base_url: request_url
409
+ }
410
+ promise = @client.make_request_async(:get, path_template, options)
411
+
412
+ promise = promise.then do |result|
413
+ http_response = result.response
414
+ status_code = http_response.status
415
+ response_content = http_response.body
416
+ unless status_code == 200
417
+ error_model = JSON.load(response_content)
418
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
419
+ end
420
+
421
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
422
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
423
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
424
+ # Deserialize Response
425
+ if status_code == 200
426
+ begin
427
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
428
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
429
+ result.body = @client.deserialize(result_mapper, parsed_response)
430
+ rescue Exception => e
431
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
432
+ end
433
+ end
434
+
435
+ result
436
+ end
437
+
438
+ promise.execute
439
+ end
440
+
441
+ #
442
+ # Get all recommendations for a hosting environment.
443
+ #
444
+ # Description for Get all recommendations for a hosting environment.
445
+ #
446
+ # @param resource_group_name [String] Name of the resource group to which the
447
+ # resource belongs.
448
+ # @param hosting_environment_name [String] Name of the app.
449
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
450
+ # critical recommendations. The default is <code>false</code>, which returns
451
+ # all recommendations.
452
+ # @param filter [String] Return only channels specified in the filter. Filter
453
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
454
+ # channel eq 'Notification'
455
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
456
+ # will be added to the HTTP request.
457
+ #
458
+ # @return [Array<Recommendation>] operation results.
459
+ #
460
+ def list_recommended_rules_for_hosting_environment(resource_group_name, hosting_environment_name, featured:nil, filter:nil, custom_headers:nil)
461
+ first_page = list_recommended_rules_for_hosting_environment_as_lazy(resource_group_name, hosting_environment_name, featured:featured, filter:filter, custom_headers:custom_headers)
462
+ first_page.get_all_items
463
+ end
464
+
465
+ #
466
+ # Get all recommendations for a hosting environment.
467
+ #
468
+ # Description for Get all recommendations for a hosting environment.
469
+ #
470
+ # @param resource_group_name [String] Name of the resource group to which the
471
+ # resource belongs.
472
+ # @param hosting_environment_name [String] Name of the app.
473
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
474
+ # critical recommendations. The default is <code>false</code>, which returns
475
+ # all recommendations.
476
+ # @param filter [String] Return only channels specified in the filter. Filter
477
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
478
+ # channel eq 'Notification'
479
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
480
+ # will be added to the HTTP request.
481
+ #
482
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
483
+ #
484
+ def list_recommended_rules_for_hosting_environment_with_http_info(resource_group_name, hosting_environment_name, featured:nil, filter:nil, custom_headers:nil)
485
+ list_recommended_rules_for_hosting_environment_async(resource_group_name, hosting_environment_name, featured:featured, filter:filter, custom_headers:custom_headers).value!
486
+ end
487
+
488
+ #
489
+ # Get all recommendations for a hosting environment.
490
+ #
491
+ # Description for Get all recommendations for a hosting environment.
492
+ #
493
+ # @param resource_group_name [String] Name of the resource group to which the
494
+ # resource belongs.
495
+ # @param hosting_environment_name [String] Name of the app.
496
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
497
+ # critical recommendations. The default is <code>false</code>, which returns
498
+ # all recommendations.
499
+ # @param filter [String] Return only channels specified in the filter. Filter
500
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
501
+ # channel eq 'Notification'
502
+ # @param [Hash{String => String}] A hash of custom headers that will be added
503
+ # to the HTTP request.
504
+ #
505
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
506
+ #
507
+ def list_recommended_rules_for_hosting_environment_async(resource_group_name, hosting_environment_name, featured:nil, filter:nil, custom_headers:nil)
508
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
509
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
510
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
511
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
512
+ fail ArgumentError, 'hosting_environment_name is nil' if hosting_environment_name.nil?
513
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
514
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
515
+
516
+
517
+ request_headers = {}
518
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
519
+
520
+ # Set Headers
521
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
522
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
523
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations'
524
+
525
+ request_url = @base_url || @client.base_url
526
+
527
+ options = {
528
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
529
+ path_params: {'resourceGroupName' => resource_group_name,'hostingEnvironmentName' => hosting_environment_name,'subscriptionId' => @client.subscription_id},
530
+ query_params: {'featured' => featured,'api-version' => @client.api_version},
531
+ skip_encoding_query_params: {'$filter' => filter},
532
+ headers: request_headers.merge(custom_headers || {}),
533
+ base_url: request_url
534
+ }
535
+ promise = @client.make_request_async(:get, path_template, options)
536
+
537
+ promise = promise.then do |result|
538
+ http_response = result.response
539
+ status_code = http_response.status
540
+ response_content = http_response.body
541
+ unless status_code == 200
542
+ error_model = JSON.load(response_content)
543
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
544
+ end
545
+
546
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
547
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
548
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
549
+ # Deserialize Response
550
+ if status_code == 200
551
+ begin
552
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
553
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
554
+ result.body = @client.deserialize(result_mapper, parsed_response)
555
+ rescue Exception => e
556
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
557
+ end
558
+ end
559
+
560
+ result
561
+ end
562
+
563
+ promise.execute
564
+ end
565
+
566
+ #
567
+ # Disable all recommendations for an app.
568
+ #
569
+ # Description for Disable all recommendations for an app.
570
+ #
571
+ # @param resource_group_name [String] Name of the resource group to which the
572
+ # resource belongs.
573
+ # @param environment_name [String] Name of the app.
574
+ # @param hosting_environment_name [String]
575
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
576
+ # will be added to the HTTP request.
577
+ #
578
+ #
579
+ def disable_all_for_hosting_environment(resource_group_name, environment_name, hosting_environment_name, custom_headers:nil)
580
+ response = disable_all_for_hosting_environment_async(resource_group_name, environment_name, hosting_environment_name, custom_headers:custom_headers).value!
581
+ nil
582
+ end
583
+
584
+ #
585
+ # Disable all recommendations for an app.
586
+ #
587
+ # Description for Disable all recommendations for an app.
588
+ #
589
+ # @param resource_group_name [String] Name of the resource group to which the
590
+ # resource belongs.
591
+ # @param environment_name [String] Name of the app.
592
+ # @param hosting_environment_name [String]
593
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
594
+ # will be added to the HTTP request.
595
+ #
596
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
597
+ #
598
+ def disable_all_for_hosting_environment_with_http_info(resource_group_name, environment_name, hosting_environment_name, custom_headers:nil)
599
+ disable_all_for_hosting_environment_async(resource_group_name, environment_name, hosting_environment_name, custom_headers:custom_headers).value!
600
+ end
601
+
602
+ #
603
+ # Disable all recommendations for an app.
604
+ #
605
+ # Description for Disable all recommendations for an app.
606
+ #
607
+ # @param resource_group_name [String] Name of the resource group to which the
608
+ # resource belongs.
609
+ # @param environment_name [String] Name of the app.
610
+ # @param hosting_environment_name [String]
611
+ # @param [Hash{String => String}] A hash of custom headers that will be added
612
+ # to the HTTP request.
613
+ #
614
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
615
+ #
616
+ def disable_all_for_hosting_environment_async(resource_group_name, environment_name, hosting_environment_name, custom_headers:nil)
617
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
618
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
619
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
620
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
621
+ fail ArgumentError, 'environment_name is nil' if environment_name.nil?
622
+ fail ArgumentError, 'hosting_environment_name is nil' if hosting_environment_name.nil?
623
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
624
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
625
+
626
+
627
+ request_headers = {}
628
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
629
+
630
+ # Set Headers
631
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
632
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
633
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable'
634
+
635
+ request_url = @base_url || @client.base_url
636
+
637
+ options = {
638
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
639
+ path_params: {'resourceGroupName' => resource_group_name,'hostingEnvironmentName' => hosting_environment_name,'subscriptionId' => @client.subscription_id},
640
+ query_params: {'environmentName' => environment_name,'api-version' => @client.api_version},
641
+ headers: request_headers.merge(custom_headers || {}),
642
+ base_url: request_url
643
+ }
644
+ promise = @client.make_request_async(:post, path_template, options)
645
+
646
+ promise = promise.then do |result|
647
+ http_response = result.response
648
+ status_code = http_response.status
649
+ response_content = http_response.body
650
+ unless status_code == 204
651
+ error_model = JSON.load(response_content)
652
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
653
+ end
654
+
655
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
656
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
657
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
658
+
659
+ result
660
+ end
661
+
662
+ promise.execute
663
+ end
664
+
665
+ #
666
+ # Reset all recommendation opt-out settings for an app.
667
+ #
668
+ # Description for Reset all recommendation opt-out settings for an app.
669
+ #
670
+ # @param resource_group_name [String] Name of the resource group to which the
671
+ # resource belongs.
672
+ # @param environment_name [String] Name of the app.
673
+ # @param hosting_environment_name [String]
674
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
675
+ # will be added to the HTTP request.
676
+ #
677
+ #
678
+ def reset_all_filters_for_hosting_environment(resource_group_name, environment_name, hosting_environment_name, custom_headers:nil)
679
+ response = reset_all_filters_for_hosting_environment_async(resource_group_name, environment_name, hosting_environment_name, custom_headers:custom_headers).value!
680
+ nil
681
+ end
682
+
683
+ #
684
+ # Reset all recommendation opt-out settings for an app.
685
+ #
686
+ # Description for Reset all recommendation opt-out settings for an app.
687
+ #
688
+ # @param resource_group_name [String] Name of the resource group to which the
689
+ # resource belongs.
690
+ # @param environment_name [String] Name of the app.
691
+ # @param hosting_environment_name [String]
692
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
693
+ # will be added to the HTTP request.
694
+ #
695
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
696
+ #
697
+ def reset_all_filters_for_hosting_environment_with_http_info(resource_group_name, environment_name, hosting_environment_name, custom_headers:nil)
698
+ reset_all_filters_for_hosting_environment_async(resource_group_name, environment_name, hosting_environment_name, custom_headers:custom_headers).value!
699
+ end
700
+
701
+ #
702
+ # Reset all recommendation opt-out settings for an app.
703
+ #
704
+ # Description for Reset all recommendation opt-out settings for an app.
705
+ #
706
+ # @param resource_group_name [String] Name of the resource group to which the
707
+ # resource belongs.
708
+ # @param environment_name [String] Name of the app.
709
+ # @param hosting_environment_name [String]
710
+ # @param [Hash{String => String}] A hash of custom headers that will be added
711
+ # to the HTTP request.
712
+ #
713
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
714
+ #
715
+ def reset_all_filters_for_hosting_environment_async(resource_group_name, environment_name, hosting_environment_name, custom_headers:nil)
716
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
717
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
718
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
719
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
720
+ fail ArgumentError, 'environment_name is nil' if environment_name.nil?
721
+ fail ArgumentError, 'hosting_environment_name is nil' if hosting_environment_name.nil?
722
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
723
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
724
+
725
+
726
+ request_headers = {}
727
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
728
+
729
+ # Set Headers
730
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
731
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
732
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset'
733
+
734
+ request_url = @base_url || @client.base_url
735
+
736
+ options = {
737
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
738
+ path_params: {'resourceGroupName' => resource_group_name,'hostingEnvironmentName' => hosting_environment_name,'subscriptionId' => @client.subscription_id},
739
+ query_params: {'environmentName' => environment_name,'api-version' => @client.api_version},
740
+ headers: request_headers.merge(custom_headers || {}),
741
+ base_url: request_url
742
+ }
743
+ promise = @client.make_request_async(:post, path_template, options)
744
+
745
+ promise = promise.then do |result|
746
+ http_response = result.response
747
+ status_code = http_response.status
748
+ response_content = http_response.body
749
+ unless status_code == 204
750
+ error_model = JSON.load(response_content)
751
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
752
+ end
753
+
754
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
755
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
756
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
757
+
758
+ result
759
+ end
760
+
761
+ promise.execute
762
+ end
763
+
764
+ #
765
+ # Get a recommendation rule for an app.
766
+ #
767
+ # Description for Get a recommendation rule for an app.
768
+ #
769
+ # @param resource_group_name [String] Name of the resource group to which the
770
+ # resource belongs.
771
+ # @param hosting_environment_name [String] Name of the hosting environment.
772
+ # @param name [String] Name of the recommendation.
773
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
774
+ # last-seen timestamp of the recommendation object.
775
+ # @param recommendation_id [String] The GUID of the recommendation object if
776
+ # you query an expired one. You don't need to specify it to query an active
777
+ # entry.
778
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
779
+ # will be added to the HTTP request.
780
+ #
781
+ # @return [RecommendationRule] operation results.
782
+ #
783
+ def get_rule_details_by_hosting_environment(resource_group_name, hosting_environment_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
784
+ response = get_rule_details_by_hosting_environment_async(resource_group_name, hosting_environment_name, name, update_seen:update_seen, recommendation_id:recommendation_id, custom_headers:custom_headers).value!
785
+ response.body unless response.nil?
786
+ end
787
+
788
+ #
789
+ # Get a recommendation rule for an app.
790
+ #
791
+ # Description for Get a recommendation rule for an app.
792
+ #
793
+ # @param resource_group_name [String] Name of the resource group to which the
794
+ # resource belongs.
795
+ # @param hosting_environment_name [String] Name of the hosting environment.
796
+ # @param name [String] Name of the recommendation.
797
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
798
+ # last-seen timestamp of the recommendation object.
799
+ # @param recommendation_id [String] The GUID of the recommendation object if
800
+ # you query an expired one. You don't need to specify it to query an active
801
+ # entry.
802
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
803
+ # will be added to the HTTP request.
804
+ #
805
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
806
+ #
807
+ def get_rule_details_by_hosting_environment_with_http_info(resource_group_name, hosting_environment_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
808
+ get_rule_details_by_hosting_environment_async(resource_group_name, hosting_environment_name, name, update_seen:update_seen, recommendation_id:recommendation_id, custom_headers:custom_headers).value!
809
+ end
810
+
811
+ #
812
+ # Get a recommendation rule for an app.
813
+ #
814
+ # Description for Get a recommendation rule for an app.
815
+ #
816
+ # @param resource_group_name [String] Name of the resource group to which the
817
+ # resource belongs.
818
+ # @param hosting_environment_name [String] Name of the hosting environment.
819
+ # @param name [String] Name of the recommendation.
820
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
821
+ # last-seen timestamp of the recommendation object.
822
+ # @param recommendation_id [String] The GUID of the recommendation object if
823
+ # you query an expired one. You don't need to specify it to query an active
824
+ # entry.
825
+ # @param [Hash{String => String}] A hash of custom headers that will be added
826
+ # to the HTTP request.
827
+ #
828
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
829
+ #
830
+ def get_rule_details_by_hosting_environment_async(resource_group_name, hosting_environment_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
831
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
832
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
833
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
834
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
835
+ fail ArgumentError, 'hosting_environment_name is nil' if hosting_environment_name.nil?
836
+ fail ArgumentError, 'name is nil' if name.nil?
837
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
838
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
839
+
840
+
841
+ request_headers = {}
842
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
843
+
844
+ # Set Headers
845
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
846
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
847
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}'
848
+
849
+ request_url = @base_url || @client.base_url
850
+
851
+ options = {
852
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
853
+ path_params: {'resourceGroupName' => resource_group_name,'hostingEnvironmentName' => hosting_environment_name,'name' => name,'subscriptionId' => @client.subscription_id},
854
+ query_params: {'updateSeen' => update_seen,'recommendationId' => recommendation_id,'api-version' => @client.api_version},
855
+ headers: request_headers.merge(custom_headers || {}),
856
+ base_url: request_url
857
+ }
858
+ promise = @client.make_request_async(:get, path_template, options)
859
+
860
+ promise = promise.then do |result|
861
+ http_response = result.response
862
+ status_code = http_response.status
863
+ response_content = http_response.body
864
+ unless status_code == 200
865
+ error_model = JSON.load(response_content)
866
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
867
+ end
868
+
869
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
870
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
871
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
872
+ # Deserialize Response
873
+ if status_code == 200
874
+ begin
875
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
876
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationRule.mapper()
877
+ result.body = @client.deserialize(result_mapper, parsed_response)
878
+ rescue Exception => e
879
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
880
+ end
881
+ end
882
+
883
+ result
884
+ end
885
+
886
+ promise.execute
887
+ end
888
+
889
+ #
890
+ # Disables the specific rule for a web site permanently.
891
+ #
892
+ # Description for Disables the specific rule for a web site permanently.
893
+ #
894
+ # @param resource_group_name [String] Name of the resource group to which the
895
+ # resource belongs.
896
+ # @param environment_name [String] Site name
897
+ # @param name [String] Rule name
898
+ # @param hosting_environment_name [String]
899
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
900
+ # will be added to the HTTP request.
901
+ #
902
+ #
903
+ def disable_recommendation_for_hosting_environment(resource_group_name, environment_name, name, hosting_environment_name, custom_headers:nil)
904
+ response = disable_recommendation_for_hosting_environment_async(resource_group_name, environment_name, name, hosting_environment_name, custom_headers:custom_headers).value!
905
+ nil
906
+ end
907
+
908
+ #
909
+ # Disables the specific rule for a web site permanently.
910
+ #
911
+ # Description for Disables the specific rule for a web site permanently.
912
+ #
913
+ # @param resource_group_name [String] Name of the resource group to which the
914
+ # resource belongs.
915
+ # @param environment_name [String] Site name
916
+ # @param name [String] Rule name
917
+ # @param hosting_environment_name [String]
918
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
919
+ # will be added to the HTTP request.
920
+ #
921
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
922
+ #
923
+ def disable_recommendation_for_hosting_environment_with_http_info(resource_group_name, environment_name, name, hosting_environment_name, custom_headers:nil)
924
+ disable_recommendation_for_hosting_environment_async(resource_group_name, environment_name, name, hosting_environment_name, custom_headers:custom_headers).value!
925
+ end
926
+
927
+ #
928
+ # Disables the specific rule for a web site permanently.
929
+ #
930
+ # Description for Disables the specific rule for a web site permanently.
931
+ #
932
+ # @param resource_group_name [String] Name of the resource group to which the
933
+ # resource belongs.
934
+ # @param environment_name [String] Site name
935
+ # @param name [String] Rule name
936
+ # @param hosting_environment_name [String]
937
+ # @param [Hash{String => String}] A hash of custom headers that will be added
938
+ # to the HTTP request.
939
+ #
940
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
941
+ #
942
+ def disable_recommendation_for_hosting_environment_async(resource_group_name, environment_name, name, hosting_environment_name, custom_headers:nil)
943
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
944
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
945
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
946
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
947
+ fail ArgumentError, 'environment_name is nil' if environment_name.nil?
948
+ fail ArgumentError, 'name is nil' if name.nil?
949
+ fail ArgumentError, 'hosting_environment_name is nil' if hosting_environment_name.nil?
950
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
951
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
952
+
953
+
954
+ request_headers = {}
955
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
956
+
957
+ # Set Headers
958
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
959
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
960
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable'
961
+
962
+ request_url = @base_url || @client.base_url
963
+
964
+ options = {
965
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
966
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'hostingEnvironmentName' => hosting_environment_name,'subscriptionId' => @client.subscription_id},
967
+ query_params: {'environmentName' => environment_name,'api-version' => @client.api_version},
968
+ headers: request_headers.merge(custom_headers || {}),
969
+ base_url: request_url
970
+ }
971
+ promise = @client.make_request_async(:post, path_template, options)
972
+
973
+ promise = promise.then do |result|
974
+ http_response = result.response
975
+ status_code = http_response.status
976
+ response_content = http_response.body
977
+ unless status_code == 200
978
+ error_model = JSON.load(response_content)
979
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
980
+ end
981
+
982
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
983
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
984
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
985
+
986
+ result
987
+ end
988
+
989
+ promise.execute
990
+ end
991
+
992
+ #
993
+ # Get past recommendations for an app, optionally specified by the time range.
994
+ #
995
+ # Description for Get past recommendations for an app, optionally specified by
996
+ # the time range.
997
+ #
998
+ # @param resource_group_name [String] Name of the resource group to which the
999
+ # resource belongs.
1000
+ # @param site_name [String] Name of the app.
1001
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
1002
+ # recommendations. The default is <code>true</code>, which returns only expired
1003
+ # recommendations.
1004
+ # @param filter [String] Filter is specified by using OData syntax. Example:
1005
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
1006
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
1007
+ # duration'[PT1H|PT1M|P1D]
1008
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1009
+ # will be added to the HTTP request.
1010
+ #
1011
+ # @return [Array<Recommendation>] operation results.
1012
+ #
1013
+ def list_history_for_web_app(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
1014
+ first_page = list_history_for_web_app_as_lazy(resource_group_name, site_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers)
1015
+ first_page.get_all_items
1016
+ end
1017
+
1018
+ #
1019
+ # Get past recommendations for an app, optionally specified by the time range.
1020
+ #
1021
+ # Description for Get past recommendations for an app, optionally specified by
1022
+ # the time range.
1023
+ #
1024
+ # @param resource_group_name [String] Name of the resource group to which the
1025
+ # resource belongs.
1026
+ # @param site_name [String] Name of the app.
1027
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
1028
+ # recommendations. The default is <code>true</code>, which returns only expired
1029
+ # recommendations.
1030
+ # @param filter [String] Filter is specified by using OData syntax. Example:
1031
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
1032
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
1033
+ # duration'[PT1H|PT1M|P1D]
1034
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1035
+ # will be added to the HTTP request.
1036
+ #
1037
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1038
+ #
1039
+ def list_history_for_web_app_with_http_info(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
1040
+ list_history_for_web_app_async(resource_group_name, site_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers).value!
1041
+ end
1042
+
1043
+ #
1044
+ # Get past recommendations for an app, optionally specified by the time range.
1045
+ #
1046
+ # Description for Get past recommendations for an app, optionally specified by
1047
+ # the time range.
1048
+ #
1049
+ # @param resource_group_name [String] Name of the resource group to which the
1050
+ # resource belongs.
1051
+ # @param site_name [String] Name of the app.
1052
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
1053
+ # recommendations. The default is <code>true</code>, which returns only expired
1054
+ # recommendations.
1055
+ # @param filter [String] Filter is specified by using OData syntax. Example:
1056
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
1057
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
1058
+ # duration'[PT1H|PT1M|P1D]
1059
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1060
+ # to the HTTP request.
1061
+ #
1062
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1063
+ #
1064
+ def list_history_for_web_app_async(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
1065
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1066
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1067
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1068
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1069
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1070
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1071
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1072
+
1073
+
1074
+ request_headers = {}
1075
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1076
+
1077
+ # Set Headers
1078
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1079
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1080
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory'
1081
+
1082
+ request_url = @base_url || @client.base_url
1083
+
1084
+ options = {
1085
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1086
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
1087
+ query_params: {'expiredOnly' => expired_only,'api-version' => @client.api_version},
1088
+ skip_encoding_query_params: {'$filter' => filter},
1089
+ headers: request_headers.merge(custom_headers || {}),
1090
+ base_url: request_url
1091
+ }
1092
+ promise = @client.make_request_async(:get, path_template, options)
1093
+
1094
+ promise = promise.then do |result|
1095
+ http_response = result.response
1096
+ status_code = http_response.status
1097
+ response_content = http_response.body
1098
+ unless status_code == 200
1099
+ error_model = JSON.load(response_content)
1100
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1101
+ end
1102
+
1103
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1104
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1105
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1106
+ # Deserialize Response
1107
+ if status_code == 200
1108
+ begin
1109
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1110
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
1111
+ result.body = @client.deserialize(result_mapper, parsed_response)
1112
+ rescue Exception => e
1113
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1114
+ end
1115
+ end
1116
+
1117
+ result
1118
+ end
1119
+
1120
+ promise.execute
1121
+ end
1122
+
1123
+ #
1124
+ # Get all recommendations for an app.
1125
+ #
1126
+ # Description for Get all recommendations for an app.
1127
+ #
1128
+ # @param resource_group_name [String] Name of the resource group to which the
1129
+ # resource belongs.
1130
+ # @param site_name [String] Name of the app.
1131
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
1132
+ # critical recommendations. The default is <code>false</code>, which returns
1133
+ # all recommendations.
1134
+ # @param filter [String] Return only channels specified in the filter. Filter
1135
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
1136
+ # channel eq 'Notification'
1137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1138
+ # will be added to the HTTP request.
1139
+ #
1140
+ # @return [Array<Recommendation>] operation results.
1141
+ #
1142
+ def list_recommended_rules_for_web_app(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
1143
+ first_page = list_recommended_rules_for_web_app_as_lazy(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers)
1144
+ first_page.get_all_items
1145
+ end
1146
+
1147
+ #
1148
+ # Get all recommendations for an app.
1149
+ #
1150
+ # Description for Get all recommendations for an app.
1151
+ #
1152
+ # @param resource_group_name [String] Name of the resource group to which the
1153
+ # resource belongs.
1154
+ # @param site_name [String] Name of the app.
1155
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
1156
+ # critical recommendations. The default is <code>false</code>, which returns
1157
+ # all recommendations.
1158
+ # @param filter [String] Return only channels specified in the filter. Filter
1159
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
1160
+ # channel eq 'Notification'
1161
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1162
+ # will be added to the HTTP request.
1163
+ #
1164
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1165
+ #
1166
+ def list_recommended_rules_for_web_app_with_http_info(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
1167
+ list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers).value!
1168
+ end
1169
+
1170
+ #
1171
+ # Get all recommendations for an app.
1172
+ #
1173
+ # Description for Get all recommendations for an app.
1174
+ #
1175
+ # @param resource_group_name [String] Name of the resource group to which the
1176
+ # resource belongs.
1177
+ # @param site_name [String] Name of the app.
1178
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
1179
+ # critical recommendations. The default is <code>false</code>, which returns
1180
+ # all recommendations.
1181
+ # @param filter [String] Return only channels specified in the filter. Filter
1182
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
1183
+ # channel eq 'Notification'
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_async(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
1190
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1191
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1192
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1193
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1194
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1195
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1196
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1197
+
1198
+
1199
+ request_headers = {}
1200
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1201
+
1202
+ # Set Headers
1203
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1204
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1205
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations'
1206
+
1207
+ request_url = @base_url || @client.base_url
1208
+
1209
+ options = {
1210
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1211
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
1212
+ query_params: {'featured' => featured,'api-version' => @client.api_version},
1213
+ skip_encoding_query_params: {'$filter' => filter},
1214
+ headers: request_headers.merge(custom_headers || {}),
1215
+ base_url: request_url
1216
+ }
1217
+ promise = @client.make_request_async(:get, path_template, options)
1218
+
1219
+ promise = promise.then do |result|
1220
+ http_response = result.response
1221
+ status_code = http_response.status
1222
+ response_content = http_response.body
1223
+ unless status_code == 200
1224
+ error_model = JSON.load(response_content)
1225
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1226
+ end
1227
+
1228
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1229
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1230
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1231
+ # Deserialize Response
1232
+ if status_code == 200
1233
+ begin
1234
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1235
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
1236
+ result.body = @client.deserialize(result_mapper, parsed_response)
1237
+ rescue Exception => e
1238
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1239
+ end
1240
+ end
1241
+
1242
+ result
1243
+ end
1244
+
1245
+ promise.execute
1246
+ end
1247
+
1248
+ #
1249
+ # Disable all recommendations for an app.
1250
+ #
1251
+ # Description for Disable all recommendations for an app.
1252
+ #
1253
+ # @param resource_group_name [String] Name of the resource group to which the
1254
+ # resource belongs.
1255
+ # @param site_name [String] Name of the app.
1256
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1257
+ # will be added to the HTTP request.
1258
+ #
1259
+ #
1260
+ def disable_all_for_web_app(resource_group_name, site_name, custom_headers:nil)
1261
+ response = disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
1262
+ nil
1263
+ end
1264
+
1265
+ #
1266
+ # Disable all recommendations for an app.
1267
+ #
1268
+ # Description for Disable all recommendations for an app.
1269
+ #
1270
+ # @param resource_group_name [String] Name of the resource group to which the
1271
+ # resource belongs.
1272
+ # @param site_name [String] Name of the app.
1273
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1274
+ # will be added to the HTTP request.
1275
+ #
1276
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1277
+ #
1278
+ def disable_all_for_web_app_with_http_info(resource_group_name, site_name, custom_headers:nil)
1279
+ disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
1280
+ end
1281
+
1282
+ #
1283
+ # Disable all recommendations for an app.
1284
+ #
1285
+ # Description for Disable all recommendations for an app.
1286
+ #
1287
+ # @param resource_group_name [String] Name of the resource group to which the
1288
+ # resource belongs.
1289
+ # @param site_name [String] Name of the app.
1290
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1291
+ # to the HTTP request.
1292
+ #
1293
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1294
+ #
1295
+ def disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:nil)
1296
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1297
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1298
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1299
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1300
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1301
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1302
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1303
+
1304
+
1305
+ request_headers = {}
1306
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1307
+
1308
+ # Set Headers
1309
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1310
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1311
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable'
1312
+
1313
+ request_url = @base_url || @client.base_url
1314
+
1315
+ options = {
1316
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1317
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
1318
+ query_params: {'api-version' => @client.api_version},
1319
+ headers: request_headers.merge(custom_headers || {}),
1320
+ base_url: request_url
1321
+ }
1322
+ promise = @client.make_request_async(:post, path_template, options)
1323
+
1324
+ promise = promise.then do |result|
1325
+ http_response = result.response
1326
+ status_code = http_response.status
1327
+ response_content = http_response.body
1328
+ unless status_code == 204
1329
+ error_model = JSON.load(response_content)
1330
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1331
+ end
1332
+
1333
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1334
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1335
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1336
+
1337
+ result
1338
+ end
1339
+
1340
+ promise.execute
1341
+ end
1342
+
1343
+ #
1344
+ # Reset all recommendation opt-out settings for an app.
1345
+ #
1346
+ # Description for Reset all recommendation opt-out settings for an app.
1347
+ #
1348
+ # @param resource_group_name [String] Name of the resource group to which the
1349
+ # resource belongs.
1350
+ # @param site_name [String] Name of the app.
1351
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1352
+ # will be added to the HTTP request.
1353
+ #
1354
+ #
1355
+ def reset_all_filters_for_web_app(resource_group_name, site_name, custom_headers:nil)
1356
+ response = reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
1357
+ nil
1358
+ end
1359
+
1360
+ #
1361
+ # Reset all recommendation opt-out settings for an app.
1362
+ #
1363
+ # Description for Reset all recommendation opt-out settings for an app.
1364
+ #
1365
+ # @param resource_group_name [String] Name of the resource group to which the
1366
+ # resource belongs.
1367
+ # @param site_name [String] Name of the app.
1368
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1369
+ # will be added to the HTTP request.
1370
+ #
1371
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1372
+ #
1373
+ def reset_all_filters_for_web_app_with_http_info(resource_group_name, site_name, custom_headers:nil)
1374
+ reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value!
1375
+ end
1376
+
1377
+ #
1378
+ # Reset all recommendation opt-out settings for an app.
1379
+ #
1380
+ # Description for Reset all recommendation opt-out settings for an app.
1381
+ #
1382
+ # @param resource_group_name [String] Name of the resource group to which the
1383
+ # resource belongs.
1384
+ # @param site_name [String] Name of the app.
1385
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1386
+ # to the HTTP request.
1387
+ #
1388
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1389
+ #
1390
+ def reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:nil)
1391
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1392
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1393
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1394
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1395
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1396
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1397
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1398
+
1399
+
1400
+ request_headers = {}
1401
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1402
+
1403
+ # Set Headers
1404
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1405
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1406
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset'
1407
+
1408
+ request_url = @base_url || @client.base_url
1409
+
1410
+ options = {
1411
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1412
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
1413
+ query_params: {'api-version' => @client.api_version},
1414
+ headers: request_headers.merge(custom_headers || {}),
1415
+ base_url: request_url
1416
+ }
1417
+ promise = @client.make_request_async(:post, path_template, options)
1418
+
1419
+ promise = promise.then do |result|
1420
+ http_response = result.response
1421
+ status_code = http_response.status
1422
+ response_content = http_response.body
1423
+ unless status_code == 204
1424
+ error_model = JSON.load(response_content)
1425
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1426
+ end
1427
+
1428
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1429
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1430
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1431
+
1432
+ result
1433
+ end
1434
+
1435
+ promise.execute
1436
+ end
1437
+
1438
+ #
1439
+ # Get a recommendation rule for an app.
1440
+ #
1441
+ # Description for Get a recommendation rule for an app.
1442
+ #
1443
+ # @param resource_group_name [String] Name of the resource group to which the
1444
+ # resource belongs.
1445
+ # @param site_name [String] Name of the app.
1446
+ # @param name [String] Name of the recommendation.
1447
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
1448
+ # last-seen timestamp of the recommendation object.
1449
+ # @param recommendation_id [String] The GUID of the recommendation object if
1450
+ # you query an expired one. You don't need to specify it to query an active
1451
+ # entry.
1452
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1453
+ # will be added to the HTTP request.
1454
+ #
1455
+ # @return [RecommendationRule] operation results.
1456
+ #
1457
+ def get_rule_details_by_web_app(resource_group_name, site_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
1458
+ 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!
1459
+ response.body unless response.nil?
1460
+ end
1461
+
1462
+ #
1463
+ # Get a recommendation rule for an app.
1464
+ #
1465
+ # Description for Get a recommendation rule for an app.
1466
+ #
1467
+ # @param resource_group_name [String] Name of the resource group to which the
1468
+ # resource belongs.
1469
+ # @param site_name [String] Name of the app.
1470
+ # @param name [String] Name of the recommendation.
1471
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
1472
+ # last-seen timestamp of the recommendation object.
1473
+ # @param recommendation_id [String] The GUID of the recommendation object if
1474
+ # you query an expired one. You don't need to specify it to query an active
1475
+ # entry.
1476
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1477
+ # will be added to the HTTP request.
1478
+ #
1479
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1480
+ #
1481
+ 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)
1482
+ 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!
1483
+ end
1484
+
1485
+ #
1486
+ # Get a recommendation rule for an app.
1487
+ #
1488
+ # Description for Get a recommendation rule for an app.
1489
+ #
1490
+ # @param resource_group_name [String] Name of the resource group to which the
1491
+ # resource belongs.
1492
+ # @param site_name [String] Name of the app.
1493
+ # @param name [String] Name of the recommendation.
1494
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
1495
+ # last-seen timestamp of the recommendation object.
1496
+ # @param recommendation_id [String] The GUID of the recommendation object if
1497
+ # you query an expired one. You don't need to specify it to query an active
1498
+ # entry.
1499
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1500
+ # to the HTTP request.
1501
+ #
1502
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1503
+ #
1504
+ def get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:nil, recommendation_id:nil, custom_headers:nil)
1505
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1506
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1507
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1508
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1509
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1510
+ fail ArgumentError, 'name is nil' if name.nil?
1511
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1512
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1513
+
1514
+
1515
+ request_headers = {}
1516
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1517
+
1518
+ # Set Headers
1519
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1520
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1521
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}'
1522
+
1523
+ request_url = @base_url || @client.base_url
1524
+
1525
+ options = {
1526
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1527
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'name' => name,'subscriptionId' => @client.subscription_id},
1528
+ query_params: {'updateSeen' => update_seen,'recommendationId' => recommendation_id,'api-version' => @client.api_version},
1529
+ headers: request_headers.merge(custom_headers || {}),
1530
+ base_url: request_url
1531
+ }
1532
+ promise = @client.make_request_async(:get, path_template, options)
1533
+
1534
+ promise = promise.then do |result|
1535
+ http_response = result.response
1536
+ status_code = http_response.status
1537
+ response_content = http_response.body
1538
+ unless status_code == 200
1539
+ error_model = JSON.load(response_content)
1540
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1541
+ end
1542
+
1543
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1544
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1545
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1546
+ # Deserialize Response
1547
+ if status_code == 200
1548
+ begin
1549
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1550
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationRule.mapper()
1551
+ result.body = @client.deserialize(result_mapper, parsed_response)
1552
+ rescue Exception => e
1553
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1554
+ end
1555
+ end
1556
+
1557
+ result
1558
+ end
1559
+
1560
+ promise.execute
1561
+ end
1562
+
1563
+ #
1564
+ # Disables the specific rule for a web site permanently.
1565
+ #
1566
+ # Description for Disables the specific rule for a web site permanently.
1567
+ #
1568
+ # @param resource_group_name [String] Name of the resource group to which the
1569
+ # resource belongs.
1570
+ # @param site_name [String] Site name
1571
+ # @param name [String] Rule name
1572
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1573
+ # will be added to the HTTP request.
1574
+ #
1575
+ #
1576
+ def disable_recommendation_for_site(resource_group_name, site_name, name, custom_headers:nil)
1577
+ response = disable_recommendation_for_site_async(resource_group_name, site_name, name, custom_headers:custom_headers).value!
1578
+ nil
1579
+ end
1580
+
1581
+ #
1582
+ # Disables the specific rule for a web site permanently.
1583
+ #
1584
+ # Description for Disables the specific rule for a web site permanently.
1585
+ #
1586
+ # @param resource_group_name [String] Name of the resource group to which the
1587
+ # resource belongs.
1588
+ # @param site_name [String] Site name
1589
+ # @param name [String] Rule name
1590
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1591
+ # will be added to the HTTP request.
1592
+ #
1593
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1594
+ #
1595
+ def disable_recommendation_for_site_with_http_info(resource_group_name, site_name, name, custom_headers:nil)
1596
+ disable_recommendation_for_site_async(resource_group_name, site_name, name, custom_headers:custom_headers).value!
1597
+ end
1598
+
1599
+ #
1600
+ # Disables the specific rule for a web site permanently.
1601
+ #
1602
+ # Description for Disables the specific rule for a web site permanently.
1603
+ #
1604
+ # @param resource_group_name [String] Name of the resource group to which the
1605
+ # resource belongs.
1606
+ # @param site_name [String] Site name
1607
+ # @param name [String] Rule name
1608
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1609
+ # to the HTTP request.
1610
+ #
1611
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1612
+ #
1613
+ def disable_recommendation_for_site_async(resource_group_name, site_name, name, custom_headers:nil)
1614
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1615
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1616
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1617
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1618
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1619
+ fail ArgumentError, 'name is nil' if name.nil?
1620
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1621
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1622
+
1623
+
1624
+ request_headers = {}
1625
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1626
+
1627
+ # Set Headers
1628
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1629
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1630
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable'
1631
+
1632
+ request_url = @base_url || @client.base_url
1633
+
1634
+ options = {
1635
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1636
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'name' => name,'subscriptionId' => @client.subscription_id},
1637
+ query_params: {'api-version' => @client.api_version},
1638
+ headers: request_headers.merge(custom_headers || {}),
1639
+ base_url: request_url
1640
+ }
1641
+ promise = @client.make_request_async(:post, path_template, options)
1642
+
1643
+ promise = promise.then do |result|
1644
+ http_response = result.response
1645
+ status_code = http_response.status
1646
+ response_content = http_response.body
1647
+ unless status_code == 200
1648
+ error_model = JSON.load(response_content)
1649
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1650
+ end
1651
+
1652
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1653
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1654
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1655
+
1656
+ result
1657
+ end
1658
+
1659
+ promise.execute
1660
+ end
1661
+
1662
+ #
1663
+ # List all recommendations for a subscription.
1664
+ #
1665
+ # Description for List all recommendations for a subscription.
1666
+ #
1667
+ # @param next_page_link [String] The NextLink from the previous successful call
1668
+ # to List operation.
1669
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1670
+ # will be added to the HTTP request.
1671
+ #
1672
+ # @return [RecommendationCollection] operation results.
1673
+ #
1674
+ def list_next(next_page_link, custom_headers:nil)
1675
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1676
+ response.body unless response.nil?
1677
+ end
1678
+
1679
+ #
1680
+ # List all recommendations for a subscription.
1681
+ #
1682
+ # Description for List all recommendations for a subscription.
1683
+ #
1684
+ # @param next_page_link [String] The NextLink from the previous successful call
1685
+ # to List operation.
1686
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1687
+ # will be added to the HTTP request.
1688
+ #
1689
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1690
+ #
1691
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1692
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1693
+ end
1694
+
1695
+ #
1696
+ # List all recommendations for a subscription.
1697
+ #
1698
+ # Description for List all recommendations for a subscription.
1699
+ #
1700
+ # @param next_page_link [String] The NextLink from the previous successful call
1701
+ # to List operation.
1702
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1703
+ # to the HTTP request.
1704
+ #
1705
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1706
+ #
1707
+ def list_next_async(next_page_link, custom_headers:nil)
1708
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1709
+
1710
+
1711
+ request_headers = {}
1712
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1713
+
1714
+ # Set Headers
1715
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1716
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1717
+ path_template = '{nextLink}'
1718
+
1719
+ request_url = @base_url || @client.base_url
1720
+
1721
+ options = {
1722
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1723
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1724
+ headers: request_headers.merge(custom_headers || {}),
1725
+ base_url: request_url
1726
+ }
1727
+ promise = @client.make_request_async(:get, path_template, options)
1728
+
1729
+ promise = promise.then do |result|
1730
+ http_response = result.response
1731
+ status_code = http_response.status
1732
+ response_content = http_response.body
1733
+ unless status_code == 200
1734
+ error_model = JSON.load(response_content)
1735
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1736
+ end
1737
+
1738
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1739
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1740
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1741
+ # Deserialize Response
1742
+ if status_code == 200
1743
+ begin
1744
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1745
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
1746
+ result.body = @client.deserialize(result_mapper, parsed_response)
1747
+ rescue Exception => e
1748
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1749
+ end
1750
+ end
1751
+
1752
+ result
1753
+ end
1754
+
1755
+ promise.execute
1756
+ end
1757
+
1758
+ #
1759
+ # Get past recommendations for an app, optionally specified by the time range.
1760
+ #
1761
+ # Description for Get past recommendations for an app, optionally specified by
1762
+ # the time range.
1763
+ #
1764
+ # @param next_page_link [String] The NextLink from the previous successful call
1765
+ # to List operation.
1766
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1767
+ # will be added to the HTTP request.
1768
+ #
1769
+ # @return [RecommendationCollection] operation results.
1770
+ #
1771
+ def list_history_for_hosting_environment_next(next_page_link, custom_headers:nil)
1772
+ response = list_history_for_hosting_environment_next_async(next_page_link, custom_headers:custom_headers).value!
1773
+ response.body unless response.nil?
1774
+ end
1775
+
1776
+ #
1777
+ # Get past recommendations for an app, optionally specified by the time range.
1778
+ #
1779
+ # Description for Get past recommendations for an app, optionally specified by
1780
+ # the time range.
1781
+ #
1782
+ # @param next_page_link [String] The NextLink from the previous successful call
1783
+ # to List operation.
1784
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1785
+ # will be added to the HTTP request.
1786
+ #
1787
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1788
+ #
1789
+ def list_history_for_hosting_environment_next_with_http_info(next_page_link, custom_headers:nil)
1790
+ list_history_for_hosting_environment_next_async(next_page_link, custom_headers:custom_headers).value!
1791
+ end
1792
+
1793
+ #
1794
+ # Get past recommendations for an app, optionally specified by the time range.
1795
+ #
1796
+ # Description for Get past recommendations for an app, optionally specified by
1797
+ # the time range.
1798
+ #
1799
+ # @param next_page_link [String] The NextLink from the previous successful call
1800
+ # to List operation.
1801
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1802
+ # to the HTTP request.
1803
+ #
1804
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1805
+ #
1806
+ def list_history_for_hosting_environment_next_async(next_page_link, custom_headers:nil)
1807
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1808
+
1809
+
1810
+ request_headers = {}
1811
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1812
+
1813
+ # Set Headers
1814
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1815
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1816
+ path_template = '{nextLink}'
1817
+
1818
+ request_url = @base_url || @client.base_url
1819
+
1820
+ options = {
1821
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1822
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1823
+ headers: request_headers.merge(custom_headers || {}),
1824
+ base_url: request_url
1825
+ }
1826
+ promise = @client.make_request_async(:get, path_template, options)
1827
+
1828
+ promise = promise.then do |result|
1829
+ http_response = result.response
1830
+ status_code = http_response.status
1831
+ response_content = http_response.body
1832
+ unless status_code == 200
1833
+ error_model = JSON.load(response_content)
1834
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1835
+ end
1836
+
1837
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1838
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1839
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1840
+ # Deserialize Response
1841
+ if status_code == 200
1842
+ begin
1843
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1844
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
1845
+ result.body = @client.deserialize(result_mapper, parsed_response)
1846
+ rescue Exception => e
1847
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1848
+ end
1849
+ end
1850
+
1851
+ result
1852
+ end
1853
+
1854
+ promise.execute
1855
+ end
1856
+
1857
+ #
1858
+ # Get all recommendations for a hosting environment.
1859
+ #
1860
+ # Description for Get all recommendations for a hosting environment.
1861
+ #
1862
+ # @param next_page_link [String] The NextLink from the previous successful call
1863
+ # to List operation.
1864
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1865
+ # will be added to the HTTP request.
1866
+ #
1867
+ # @return [RecommendationCollection] operation results.
1868
+ #
1869
+ def list_recommended_rules_for_hosting_environment_next(next_page_link, custom_headers:nil)
1870
+ response = list_recommended_rules_for_hosting_environment_next_async(next_page_link, custom_headers:custom_headers).value!
1871
+ response.body unless response.nil?
1872
+ end
1873
+
1874
+ #
1875
+ # Get all recommendations for a hosting environment.
1876
+ #
1877
+ # Description for Get all recommendations for a hosting environment.
1878
+ #
1879
+ # @param next_page_link [String] The NextLink from the previous successful call
1880
+ # to List operation.
1881
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1882
+ # will be added to the HTTP request.
1883
+ #
1884
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1885
+ #
1886
+ def list_recommended_rules_for_hosting_environment_next_with_http_info(next_page_link, custom_headers:nil)
1887
+ list_recommended_rules_for_hosting_environment_next_async(next_page_link, custom_headers:custom_headers).value!
1888
+ end
1889
+
1890
+ #
1891
+ # Get all recommendations for a hosting environment.
1892
+ #
1893
+ # Description for Get all recommendations for a hosting environment.
1894
+ #
1895
+ # @param next_page_link [String] The NextLink from the previous successful call
1896
+ # to List operation.
1897
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1898
+ # to the HTTP request.
1899
+ #
1900
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1901
+ #
1902
+ def list_recommended_rules_for_hosting_environment_next_async(next_page_link, custom_headers:nil)
1903
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1904
+
1905
+
1906
+ request_headers = {}
1907
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1908
+
1909
+ # Set Headers
1910
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1911
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1912
+ path_template = '{nextLink}'
1913
+
1914
+ request_url = @base_url || @client.base_url
1915
+
1916
+ options = {
1917
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1918
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1919
+ headers: request_headers.merge(custom_headers || {}),
1920
+ base_url: request_url
1921
+ }
1922
+ promise = @client.make_request_async(:get, path_template, options)
1923
+
1924
+ promise = promise.then do |result|
1925
+ http_response = result.response
1926
+ status_code = http_response.status
1927
+ response_content = http_response.body
1928
+ unless status_code == 200
1929
+ error_model = JSON.load(response_content)
1930
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1931
+ end
1932
+
1933
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1934
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1935
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1936
+ # Deserialize Response
1937
+ if status_code == 200
1938
+ begin
1939
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1940
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
1941
+ result.body = @client.deserialize(result_mapper, parsed_response)
1942
+ rescue Exception => e
1943
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1944
+ end
1945
+ end
1946
+
1947
+ result
1948
+ end
1949
+
1950
+ promise.execute
1951
+ end
1952
+
1953
+ #
1954
+ # Get past recommendations for an app, optionally specified by the time range.
1955
+ #
1956
+ # Description for Get past recommendations for an app, optionally specified by
1957
+ # the time range.
1958
+ #
1959
+ # @param next_page_link [String] The NextLink from the previous successful call
1960
+ # to List operation.
1961
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1962
+ # will be added to the HTTP request.
1963
+ #
1964
+ # @return [RecommendationCollection] operation results.
1965
+ #
1966
+ def list_history_for_web_app_next(next_page_link, custom_headers:nil)
1967
+ response = list_history_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
1968
+ response.body unless response.nil?
1969
+ end
1970
+
1971
+ #
1972
+ # Get past recommendations for an app, optionally specified by the time range.
1973
+ #
1974
+ # Description for Get past recommendations for an app, optionally specified by
1975
+ # the time range.
1976
+ #
1977
+ # @param next_page_link [String] The NextLink from the previous successful call
1978
+ # to List operation.
1979
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1980
+ # will be added to the HTTP request.
1981
+ #
1982
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1983
+ #
1984
+ def list_history_for_web_app_next_with_http_info(next_page_link, custom_headers:nil)
1985
+ list_history_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
1986
+ end
1987
+
1988
+ #
1989
+ # Get past recommendations for an app, optionally specified by the time range.
1990
+ #
1991
+ # Description for Get past recommendations for an app, optionally specified by
1992
+ # the time range.
1993
+ #
1994
+ # @param next_page_link [String] The NextLink from the previous successful call
1995
+ # to List operation.
1996
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1997
+ # to the HTTP request.
1998
+ #
1999
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2000
+ #
2001
+ def list_history_for_web_app_next_async(next_page_link, custom_headers:nil)
2002
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2003
+
2004
+
2005
+ request_headers = {}
2006
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2007
+
2008
+ # Set Headers
2009
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2010
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2011
+ path_template = '{nextLink}'
2012
+
2013
+ request_url = @base_url || @client.base_url
2014
+
2015
+ options = {
2016
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2017
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2018
+ headers: request_headers.merge(custom_headers || {}),
2019
+ base_url: request_url
2020
+ }
2021
+ promise = @client.make_request_async(:get, path_template, options)
2022
+
2023
+ promise = promise.then do |result|
2024
+ http_response = result.response
2025
+ status_code = http_response.status
2026
+ response_content = http_response.body
2027
+ unless status_code == 200
2028
+ error_model = JSON.load(response_content)
2029
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2030
+ end
2031
+
2032
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2033
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2034
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2035
+ # Deserialize Response
2036
+ if status_code == 200
2037
+ begin
2038
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2039
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
2040
+ result.body = @client.deserialize(result_mapper, parsed_response)
2041
+ rescue Exception => e
2042
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2043
+ end
2044
+ end
2045
+
2046
+ result
2047
+ end
2048
+
2049
+ promise.execute
2050
+ end
2051
+
2052
+ #
2053
+ # Get all recommendations for an app.
2054
+ #
2055
+ # Description for Get all recommendations for an app.
2056
+ #
2057
+ # @param next_page_link [String] The NextLink from the previous successful call
2058
+ # to List operation.
2059
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2060
+ # will be added to the HTTP request.
2061
+ #
2062
+ # @return [RecommendationCollection] operation results.
2063
+ #
2064
+ def list_recommended_rules_for_web_app_next(next_page_link, custom_headers:nil)
2065
+ response = list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
2066
+ response.body unless response.nil?
2067
+ end
2068
+
2069
+ #
2070
+ # Get all recommendations for an app.
2071
+ #
2072
+ # Description for Get all recommendations for an app.
2073
+ #
2074
+ # @param next_page_link [String] The NextLink from the previous successful call
2075
+ # to List operation.
2076
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2077
+ # will be added to the HTTP request.
2078
+ #
2079
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2080
+ #
2081
+ def list_recommended_rules_for_web_app_next_with_http_info(next_page_link, custom_headers:nil)
2082
+ list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:custom_headers).value!
2083
+ end
2084
+
2085
+ #
2086
+ # Get all recommendations for an app.
2087
+ #
2088
+ # Description for Get all recommendations for an app.
2089
+ #
2090
+ # @param next_page_link [String] The NextLink from the previous successful call
2091
+ # to List operation.
2092
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2093
+ # to the HTTP request.
2094
+ #
2095
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2096
+ #
2097
+ def list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:nil)
2098
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2099
+
2100
+
2101
+ request_headers = {}
2102
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2103
+
2104
+ # Set Headers
2105
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2106
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2107
+ path_template = '{nextLink}'
2108
+
2109
+ request_url = @base_url || @client.base_url
2110
+
2111
+ options = {
2112
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2113
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2114
+ headers: request_headers.merge(custom_headers || {}),
2115
+ base_url: request_url
2116
+ }
2117
+ promise = @client.make_request_async(:get, path_template, options)
2118
+
2119
+ promise = promise.then do |result|
2120
+ http_response = result.response
2121
+ status_code = http_response.status
2122
+ response_content = http_response.body
2123
+ unless status_code == 200
2124
+ error_model = JSON.load(response_content)
2125
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2126
+ end
2127
+
2128
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2129
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2130
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2131
+ # Deserialize Response
2132
+ if status_code == 200
2133
+ begin
2134
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2135
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RecommendationCollection.mapper()
2136
+ result.body = @client.deserialize(result_mapper, parsed_response)
2137
+ rescue Exception => e
2138
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2139
+ end
2140
+ end
2141
+
2142
+ result
2143
+ end
2144
+
2145
+ promise.execute
2146
+ end
2147
+
2148
+ #
2149
+ # List all recommendations for a subscription.
2150
+ #
2151
+ # Description for List all recommendations for a subscription.
2152
+ #
2153
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
2154
+ # critical recommendations. The default is <code>false</code>, which returns
2155
+ # all recommendations.
2156
+ # @param filter [String] Filter is specified by using OData syntax. Example:
2157
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
2158
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
2159
+ # duration'[PT1H|PT1M|P1D]
2160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2161
+ # will be added to the HTTP request.
2162
+ #
2163
+ # @return [RecommendationCollection] which provide lazy access to pages of the
2164
+ # response.
2165
+ #
2166
+ def list_as_lazy(featured:nil, filter:nil, custom_headers:nil)
2167
+ response = list_async(featured:featured, filter:filter, custom_headers:custom_headers).value!
2168
+ unless response.nil?
2169
+ page = response.body
2170
+ page.next_method = Proc.new do |next_page_link|
2171
+ list_next_async(next_page_link, custom_headers:custom_headers)
2172
+ end
2173
+ page
2174
+ end
2175
+ end
2176
+
2177
+ #
2178
+ # Get past recommendations for an app, optionally specified by the time range.
2179
+ #
2180
+ # Description for Get past recommendations for an app, optionally specified by
2181
+ # the time range.
2182
+ #
2183
+ # @param resource_group_name [String] Name of the resource group to which the
2184
+ # resource belongs.
2185
+ # @param hosting_environment_name [String] Name of the hosting environment.
2186
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
2187
+ # recommendations. The default is <code>true</code>, which returns only expired
2188
+ # recommendations.
2189
+ # @param filter [String] Filter is specified by using OData syntax. Example:
2190
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
2191
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
2192
+ # duration'[PT1H|PT1M|P1D]
2193
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2194
+ # will be added to the HTTP request.
2195
+ #
2196
+ # @return [RecommendationCollection] which provide lazy access to pages of the
2197
+ # response.
2198
+ #
2199
+ def list_history_for_hosting_environment_as_lazy(resource_group_name, hosting_environment_name, expired_only:nil, filter:nil, custom_headers:nil)
2200
+ response = list_history_for_hosting_environment_async(resource_group_name, hosting_environment_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers).value!
2201
+ unless response.nil?
2202
+ page = response.body
2203
+ page.next_method = Proc.new do |next_page_link|
2204
+ list_history_for_hosting_environment_next_async(next_page_link, custom_headers:custom_headers)
2205
+ end
2206
+ page
2207
+ end
2208
+ end
2209
+
2210
+ #
2211
+ # Get all recommendations for a hosting environment.
2212
+ #
2213
+ # Description for Get all recommendations for a hosting environment.
2214
+ #
2215
+ # @param resource_group_name [String] Name of the resource group to which the
2216
+ # resource belongs.
2217
+ # @param hosting_environment_name [String] Name of the app.
2218
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
2219
+ # critical recommendations. The default is <code>false</code>, which returns
2220
+ # all recommendations.
2221
+ # @param filter [String] Return only channels specified in the filter. Filter
2222
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
2223
+ # channel eq 'Notification'
2224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2225
+ # will be added to the HTTP request.
2226
+ #
2227
+ # @return [RecommendationCollection] which provide lazy access to pages of the
2228
+ # response.
2229
+ #
2230
+ def list_recommended_rules_for_hosting_environment_as_lazy(resource_group_name, hosting_environment_name, featured:nil, filter:nil, custom_headers:nil)
2231
+ response = list_recommended_rules_for_hosting_environment_async(resource_group_name, hosting_environment_name, featured:featured, filter:filter, custom_headers:custom_headers).value!
2232
+ unless response.nil?
2233
+ page = response.body
2234
+ page.next_method = Proc.new do |next_page_link|
2235
+ list_recommended_rules_for_hosting_environment_next_async(next_page_link, custom_headers:custom_headers)
2236
+ end
2237
+ page
2238
+ end
2239
+ end
2240
+
2241
+ #
2242
+ # Get past recommendations for an app, optionally specified by the time range.
2243
+ #
2244
+ # Description for Get past recommendations for an app, optionally specified by
2245
+ # the time range.
2246
+ #
2247
+ # @param resource_group_name [String] Name of the resource group to which the
2248
+ # resource belongs.
2249
+ # @param site_name [String] Name of the app.
2250
+ # @param expired_only [Boolean] Specify <code>false</code> to return all
2251
+ # recommendations. The default is <code>true</code>, which returns only expired
2252
+ # recommendations.
2253
+ # @param filter [String] Filter is specified by using OData syntax. Example:
2254
+ # $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq
2255
+ # 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
2256
+ # duration'[PT1H|PT1M|P1D]
2257
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2258
+ # will be added to the HTTP request.
2259
+ #
2260
+ # @return [RecommendationCollection] which provide lazy access to pages of the
2261
+ # response.
2262
+ #
2263
+ def list_history_for_web_app_as_lazy(resource_group_name, site_name, expired_only:nil, filter:nil, custom_headers:nil)
2264
+ response = list_history_for_web_app_async(resource_group_name, site_name, expired_only:expired_only, filter:filter, custom_headers:custom_headers).value!
2265
+ unless response.nil?
2266
+ page = response.body
2267
+ page.next_method = Proc.new do |next_page_link|
2268
+ list_history_for_web_app_next_async(next_page_link, custom_headers:custom_headers)
2269
+ end
2270
+ page
2271
+ end
2272
+ end
2273
+
2274
+ #
2275
+ # Get all recommendations for an app.
2276
+ #
2277
+ # Description for Get all recommendations for an app.
2278
+ #
2279
+ # @param resource_group_name [String] Name of the resource group to which the
2280
+ # resource belongs.
2281
+ # @param site_name [String] Name of the app.
2282
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
2283
+ # critical recommendations. The default is <code>false</code>, which returns
2284
+ # all recommendations.
2285
+ # @param filter [String] Return only channels specified in the filter. Filter
2286
+ # is specified by using OData syntax. Example: $filter=channel eq 'Api' or
2287
+ # channel eq 'Notification'
2288
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2289
+ # will be added to the HTTP request.
2290
+ #
2291
+ # @return [RecommendationCollection] which provide lazy access to pages of the
2292
+ # response.
2293
+ #
2294
+ def list_recommended_rules_for_web_app_as_lazy(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil)
2295
+ response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers).value!
2296
+ unless response.nil?
2297
+ page = response.body
2298
+ page.next_method = Proc.new do |next_page_link|
2299
+ list_recommended_rules_for_web_app_next_async(next_page_link, custom_headers:custom_headers)
2300
+ end
2301
+ page
2302
+ end
2303
+ end
2304
+
2305
+ end
2306
+ end