azure_mgmt_web 0.16.0 → 0.17.0

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