azure_mgmt_web 0.17.1 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) 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/models/csm_operation_collection.rb +1 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
  6. data/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
  7. data/lib/2015-04-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
  8. data/lib/2015-04-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
  9. data/lib/2015-04-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
  10. data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  12. data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  14. data/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
  15. data/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
  16. data/lib/2015-08-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  17. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  18. data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +4 -0
  19. data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +16 -0
  20. data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  21. data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  22. data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack_collection.rb +1 -1
  23. data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +1 -1
  24. data/lib/2016-03-01/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
  25. data/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  26. data/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
  27. data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response_collection.rb +1 -1
  28. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +1 -1
  29. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +1 -1
  30. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +1 -1
  31. data/lib/2016-03-01/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
  32. data/lib/2016-03-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  33. data/lib/2016-03-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
  34. data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_collection.rb +1 -1
  35. data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +1 -1
  36. data/lib/2016-03-01/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
  37. data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +12 -0
  38. data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  39. data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  40. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +47 -1
  41. data/lib/2016-06-01/generated/azure_mgmt_web.rb +76 -0
  42. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb +240 -0
  43. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateways.rb +682 -0
  44. data/lib/2016-06-01/generated/azure_mgmt_web/connections.rb +815 -0
  45. data/lib/2016-06-01/generated/azure_mgmt_web/custom_apis.rb +997 -0
  46. data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +140 -0
  47. data/lib/2016-06-01/generated/azure_mgmt_web/managed_apis.rb +233 -0
  48. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb +106 -0
  49. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb +55 -0
  50. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb +179 -0
  51. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb +57 -0
  52. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb +130 -0
  53. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb +68 -0
  54. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_reference.rb +118 -0
  55. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb +46 -0
  56. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb +57 -0
  57. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb +90 -0
  58. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb +135 -0
  59. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb +58 -0
  60. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb +186 -0
  61. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_type.rb +17 -0
  62. data/lib/2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb +68 -0
  63. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_error.rb +116 -0
  64. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb +106 -0
  65. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb +56 -0
  66. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb +122 -0
  67. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb +106 -0
  68. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb +57 -0
  69. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb +123 -0
  70. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb +73 -0
  71. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb +61 -0
  72. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb +23 -0
  73. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb +69 -0
  74. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb +55 -0
  75. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb +81 -0
  76. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb +82 -0
  77. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb +106 -0
  78. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb +55 -0
  79. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb +196 -0
  80. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb +99 -0
  81. data/lib/2016-06-01/generated/azure_mgmt_web/models/link_state.rb +17 -0
  82. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb +105 -0
  83. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb +55 -0
  84. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb +106 -0
  85. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb +55 -0
  86. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb +112 -0
  87. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb +58 -0
  88. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb +81 -0
  89. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb +17 -0
  90. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb +65 -0
  91. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb +55 -0
  92. data/lib/2016-06-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  93. data/lib/2016-08-01/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
  94. data/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +1 -1
  95. data/lib/2016-08-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  96. data/lib/2016-08-01/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
  97. data/lib/2016-08-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +1 -1
  98. data/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
  99. data/lib/2016-08-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  100. data/lib/2016-08-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
  101. data/lib/2016-08-01/generated/azure_mgmt_web/models/process_info_collection.rb +1 -1
  102. data/lib/2016-08-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +1 -1
  103. data/lib/2016-08-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +1 -1
  104. data/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +1 -1
  105. data/lib/2016-08-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  106. data/lib/2016-08-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  107. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +1 -1
  108. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +1 -1
  109. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +1 -1
  110. data/lib/2016-08-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
  111. data/lib/2016-08-01/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
  112. data/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +1 -1
  113. data/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +1 -1
  114. data/lib/2016-08-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  115. data/lib/2016-08-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
  116. data/lib/2016-08-01/generated/azure_mgmt_web/models/web_job_collection.rb +1 -1
  117. data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +732 -0
  118. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  119. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +124 -0
  120. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  121. data/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
  122. data/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
  123. data/lib/2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  124. data/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
  125. data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
  126. data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  127. data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  128. data/lib/2016-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
  129. data/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
  130. data/lib/2016-09-01/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
  131. data/lib/2016-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  132. data/lib/2016-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
  133. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  134. data/lib/2018-02-01/generated/azure_mgmt_web.rb +99 -91
  135. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  136. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +168 -40
  137. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +82 -8
  138. data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  139. data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +16 -0
  140. data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  141. data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  142. data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  143. data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +38 -0
  144. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
  145. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
  146. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
  147. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan.rb +26 -1
  148. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
  149. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +26 -1
  150. data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack_collection.rb +1 -1
  151. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
  152. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +90 -0
  153. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
  154. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
  155. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
  156. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_request.rb +11 -0
  157. data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +1 -1
  158. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
  159. data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +1 -1
  160. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  161. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +11 -0
  162. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  163. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_site.rb +54 -7
  164. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
  165. data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
  166. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response_collection.rb +1 -1
  167. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +1 -1
  168. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +1 -1
  169. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +1 -1
  170. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
  171. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
  172. data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +1 -1
  173. data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
  174. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
  175. data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
  176. data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  177. data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
  178. data/lib/2018-02-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
  179. data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
  180. data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
  181. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info_collection.rb +1 -1
  182. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +1 -1
  183. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +1 -1
  184. data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +1 -1
  185. data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_collection.rb +1 -1
  186. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
  187. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +93 -0
  188. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  189. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  190. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  191. data/lib/2018-02-01/generated/azure_mgmt_web/models/site.rb +13 -1
  192. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config.rb +21 -0
  193. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource.rb +21 -0
  194. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +1 -1
  195. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +1 -1
  196. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +1 -1
  197. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_patch_resource.rb +13 -1
  198. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
  199. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_name.rb +2 -0
  200. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +20 -0
  201. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
  202. data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
  203. data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
  204. data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
  205. data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
  206. data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
  207. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +1 -1
  208. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +1 -1
  209. data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
  210. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  211. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
  212. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_collection.rb +1 -1
  213. data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
  214. data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +28 -8
  215. data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +44 -20
  216. data/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1181 -0
  217. data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  218. data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +2504 -312
  219. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +88 -19
  220. data/lib/azure_mgmt_web.rb +6 -3
  221. data/lib/profiles/latest/modules/web_profile_module.rb +315 -285
  222. data/lib/profiles/v2018_03_01/modules/web_profile_module.rb +1235 -0
  223. data/lib/profiles/v2018_03_01/web_module_definition.rb +8 -0
  224. data/lib/profiles/v2018_03_01/web_v2018_03_01_profile_client.rb +40 -0
  225. data/lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb +1469 -0
  226. data/lib/profiles/v2019_03_01_hybrid/web_module_definition.rb +8 -0
  227. data/lib/profiles/v2019_03_01_hybrid/web_v2019_03_01_hybrid_profile_client.rb +40 -0
  228. data/lib/version.rb +1 -1
  229. metadata +71 -5
@@ -0,0 +1,1181 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Web::Mgmt::V2018_02_01
7
+ #
8
+ # WebSite Management Client
9
+ #
10
+ class 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
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
98
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
99
+ # Deserialize Response
100
+ if status_code == 200
101
+ begin
102
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
103
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
104
+ result.body = @client.deserialize(result_mapper, parsed_response)
105
+ rescue Exception => e
106
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
107
+ end
108
+ end
109
+
110
+ result
111
+ end
112
+
113
+ promise.execute
114
+ end
115
+
116
+ #
117
+ # List all ResourceHealthMetadata for all sites in the resource group in the
118
+ # subscription.
119
+ #
120
+ # List all ResourceHealthMetadata for all sites in the resource group in the
121
+ # subscription.
122
+ #
123
+ # @param resource_group_name [String] Name of the resource group to which the
124
+ # resource belongs.
125
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
+ # will be added to the HTTP request.
127
+ #
128
+ # @return [Array<ResourceHealthMetadata>] operation results.
129
+ #
130
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
131
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
132
+ first_page.get_all_items
133
+ end
134
+
135
+ #
136
+ # List all ResourceHealthMetadata for all sites in the resource group in the
137
+ # subscription.
138
+ #
139
+ # List all ResourceHealthMetadata for all sites in the resource group in the
140
+ # subscription.
141
+ #
142
+ # @param resource_group_name [String] Name of the resource group to which the
143
+ # resource belongs.
144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
+ # will be added to the HTTP request.
146
+ #
147
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
+ #
149
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
150
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
151
+ end
152
+
153
+ #
154
+ # List all ResourceHealthMetadata for all sites in the resource group in the
155
+ # subscription.
156
+ #
157
+ # List all ResourceHealthMetadata for all sites in the resource group in the
158
+ # subscription.
159
+ #
160
+ # @param resource_group_name [String] Name of the resource group to which the
161
+ # resource belongs.
162
+ # @param [Hash{String => String}] A hash of custom headers that will be added
163
+ # to the HTTP request.
164
+ #
165
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
166
+ #
167
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
168
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
169
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
170
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
171
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
172
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
173
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
174
+
175
+
176
+ request_headers = {}
177
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
178
+
179
+ # Set Headers
180
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
181
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
182
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata'
183
+
184
+ request_url = @base_url || @client.base_url
185
+
186
+ options = {
187
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
188
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
189
+ query_params: {'api-version' => @client.api_version},
190
+ headers: request_headers.merge(custom_headers || {}),
191
+ base_url: request_url
192
+ }
193
+ promise = @client.make_request_async(:get, path_template, options)
194
+
195
+ promise = promise.then do |result|
196
+ http_response = result.response
197
+ status_code = http_response.status
198
+ response_content = http_response.body
199
+ unless status_code == 200
200
+ error_model = JSON.load(response_content)
201
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
202
+ end
203
+
204
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
205
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
206
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
207
+ # Deserialize Response
208
+ if status_code == 200
209
+ begin
210
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
211
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
212
+ result.body = @client.deserialize(result_mapper, parsed_response)
213
+ rescue Exception => e
214
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
215
+ end
216
+ end
217
+
218
+ result
219
+ end
220
+
221
+ promise.execute
222
+ end
223
+
224
+ #
225
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
226
+ # collection
227
+ #
228
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
229
+ # collection
230
+ #
231
+ # @param resource_group_name [String] Name of the resource group to which the
232
+ # resource belongs.
233
+ # @param name [String] Name of web app.
234
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
+ # will be added to the HTTP request.
236
+ #
237
+ # @return [Array<ResourceHealthMetadata>] operation results.
238
+ #
239
+ def list_by_site(resource_group_name, name, custom_headers:nil)
240
+ first_page = list_by_site_as_lazy(resource_group_name, name, custom_headers:custom_headers)
241
+ first_page.get_all_items
242
+ end
243
+
244
+ #
245
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
246
+ # collection
247
+ #
248
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
249
+ # collection
250
+ #
251
+ # @param resource_group_name [String] Name of the resource group to which the
252
+ # resource belongs.
253
+ # @param name [String] Name of web app.
254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
+ # will be added to the HTTP request.
256
+ #
257
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
258
+ #
259
+ def list_by_site_with_http_info(resource_group_name, name, custom_headers:nil)
260
+ list_by_site_async(resource_group_name, name, custom_headers:custom_headers).value!
261
+ end
262
+
263
+ #
264
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
265
+ # collection
266
+ #
267
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
268
+ # collection
269
+ #
270
+ # @param resource_group_name [String] Name of the resource group to which the
271
+ # resource belongs.
272
+ # @param name [String] Name of web app.
273
+ # @param [Hash{String => String}] A hash of custom headers that will be added
274
+ # to the HTTP request.
275
+ #
276
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
277
+ #
278
+ def list_by_site_async(resource_group_name, name, custom_headers:nil)
279
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
280
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
281
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
282
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
283
+ fail ArgumentError, 'name is nil' if name.nil?
284
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
285
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
286
+
287
+
288
+ request_headers = {}
289
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
+
291
+ # Set Headers
292
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
293
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
294
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata'
295
+
296
+ request_url = @base_url || @client.base_url
297
+
298
+ options = {
299
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
300
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
301
+ query_params: {'api-version' => @client.api_version},
302
+ headers: request_headers.merge(custom_headers || {}),
303
+ base_url: request_url
304
+ }
305
+ promise = @client.make_request_async(:get, path_template, options)
306
+
307
+ promise = promise.then do |result|
308
+ http_response = result.response
309
+ status_code = http_response.status
310
+ response_content = http_response.body
311
+ unless status_code == 200
312
+ error_model = JSON.load(response_content)
313
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
314
+ end
315
+
316
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
317
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
318
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
319
+ # Deserialize Response
320
+ if status_code == 200
321
+ begin
322
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
323
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
324
+ result.body = @client.deserialize(result_mapper, parsed_response)
325
+ rescue Exception => e
326
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
327
+ end
328
+ end
329
+
330
+ result
331
+ end
332
+
333
+ promise.execute
334
+ end
335
+
336
+ #
337
+ # Gets the category of ResourceHealthMetadata to use for the given site
338
+ #
339
+ # Gets the category of ResourceHealthMetadata to use for the given site
340
+ #
341
+ # @param resource_group_name [String] Name of the resource group to which the
342
+ # resource belongs.
343
+ # @param name [String] Name of web app
344
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
345
+ # will be added to the HTTP request.
346
+ #
347
+ # @return [ResourceHealthMetadata] operation results.
348
+ #
349
+ def get_by_site(resource_group_name, name, custom_headers:nil)
350
+ response = get_by_site_async(resource_group_name, name, custom_headers:custom_headers).value!
351
+ response.body unless response.nil?
352
+ end
353
+
354
+ #
355
+ # Gets the category of ResourceHealthMetadata to use for the given site
356
+ #
357
+ # Gets the category of ResourceHealthMetadata to use for the given site
358
+ #
359
+ # @param resource_group_name [String] Name of the resource group to which the
360
+ # resource belongs.
361
+ # @param name [String] Name of web app
362
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
363
+ # will be added to the HTTP request.
364
+ #
365
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
366
+ #
367
+ def get_by_site_with_http_info(resource_group_name, name, custom_headers:nil)
368
+ get_by_site_async(resource_group_name, name, custom_headers:custom_headers).value!
369
+ end
370
+
371
+ #
372
+ # Gets the category of ResourceHealthMetadata to use for the given site
373
+ #
374
+ # Gets the category of ResourceHealthMetadata to use for the given site
375
+ #
376
+ # @param resource_group_name [String] Name of the resource group to which the
377
+ # resource belongs.
378
+ # @param name [String] Name of web app
379
+ # @param [Hash{String => String}] A hash of custom headers that will be added
380
+ # to the HTTP request.
381
+ #
382
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
383
+ #
384
+ def get_by_site_async(resource_group_name, name, custom_headers:nil)
385
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
386
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
387
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
388
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
389
+ fail ArgumentError, 'name is nil' if name.nil?
390
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
391
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
392
+
393
+
394
+ request_headers = {}
395
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
396
+
397
+ # Set Headers
398
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
399
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
400
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default'
401
+
402
+ request_url = @base_url || @client.base_url
403
+
404
+ options = {
405
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
406
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
407
+ query_params: {'api-version' => @client.api_version},
408
+ headers: request_headers.merge(custom_headers || {}),
409
+ base_url: request_url
410
+ }
411
+ promise = @client.make_request_async(:get, path_template, options)
412
+
413
+ promise = promise.then do |result|
414
+ http_response = result.response
415
+ status_code = http_response.status
416
+ response_content = http_response.body
417
+ unless status_code == 200
418
+ error_model = JSON.load(response_content)
419
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
420
+ end
421
+
422
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
425
+ # Deserialize Response
426
+ if status_code == 200
427
+ begin
428
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
429
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata.mapper()
430
+ result.body = @client.deserialize(result_mapper, parsed_response)
431
+ rescue Exception => e
432
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
433
+ end
434
+ end
435
+
436
+ result
437
+ end
438
+
439
+ promise.execute
440
+ end
441
+
442
+ #
443
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
444
+ # collection
445
+ #
446
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
447
+ # collection
448
+ #
449
+ # @param resource_group_name [String] Name of the resource group to which the
450
+ # resource belongs.
451
+ # @param name [String] Name of web app.
452
+ # @param slot [String] Name of web app slot. If not specified then will default
453
+ # to production slot.
454
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
455
+ # will be added to the HTTP request.
456
+ #
457
+ # @return [Array<ResourceHealthMetadata>] operation results.
458
+ #
459
+ def list_by_site_slot(resource_group_name, name, slot, custom_headers:nil)
460
+ first_page = list_by_site_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers)
461
+ first_page.get_all_items
462
+ end
463
+
464
+ #
465
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
466
+ # collection
467
+ #
468
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
469
+ # collection
470
+ #
471
+ # @param resource_group_name [String] Name of the resource group to which the
472
+ # resource belongs.
473
+ # @param name [String] Name of web app.
474
+ # @param slot [String] Name of web app slot. If not specified then will default
475
+ # to production slot.
476
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
477
+ # will be added to the HTTP request.
478
+ #
479
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
480
+ #
481
+ def list_by_site_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil)
482
+ list_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value!
483
+ end
484
+
485
+ #
486
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
487
+ # collection
488
+ #
489
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
490
+ # collection
491
+ #
492
+ # @param resource_group_name [String] Name of the resource group to which the
493
+ # resource belongs.
494
+ # @param name [String] Name of web app.
495
+ # @param slot [String] Name of web app slot. If not specified then will default
496
+ # to production slot.
497
+ # @param [Hash{String => String}] A hash of custom headers that will be added
498
+ # to the HTTP request.
499
+ #
500
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
501
+ #
502
+ def list_by_site_slot_async(resource_group_name, name, slot, custom_headers:nil)
503
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
504
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
505
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
506
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
507
+ fail ArgumentError, 'name is nil' if name.nil?
508
+ fail ArgumentError, 'slot is nil' if slot.nil?
509
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
510
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
511
+
512
+
513
+ request_headers = {}
514
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
515
+
516
+ # Set Headers
517
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
518
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
519
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata'
520
+
521
+ request_url = @base_url || @client.base_url
522
+
523
+ options = {
524
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
525
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id},
526
+ query_params: {'api-version' => @client.api_version},
527
+ headers: request_headers.merge(custom_headers || {}),
528
+ base_url: request_url
529
+ }
530
+ promise = @client.make_request_async(:get, path_template, options)
531
+
532
+ promise = promise.then do |result|
533
+ http_response = result.response
534
+ status_code = http_response.status
535
+ response_content = http_response.body
536
+ unless status_code == 200
537
+ error_model = JSON.load(response_content)
538
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
539
+ end
540
+
541
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
542
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
543
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
544
+ # Deserialize Response
545
+ if status_code == 200
546
+ begin
547
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
548
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
549
+ result.body = @client.deserialize(result_mapper, parsed_response)
550
+ rescue Exception => e
551
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
552
+ end
553
+ end
554
+
555
+ result
556
+ end
557
+
558
+ promise.execute
559
+ end
560
+
561
+ #
562
+ # Gets the category of ResourceHealthMetadata to use for the given site
563
+ #
564
+ # Gets the category of ResourceHealthMetadata to use for the given site
565
+ #
566
+ # @param resource_group_name [String] Name of the resource group to which the
567
+ # resource belongs.
568
+ # @param name [String] Name of web app
569
+ # @param slot [String] Name of web app slot. If not specified then will default
570
+ # to production slot.
571
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
572
+ # will be added to the HTTP request.
573
+ #
574
+ # @return [ResourceHealthMetadata] operation results.
575
+ #
576
+ def get_by_site_slot(resource_group_name, name, slot, custom_headers:nil)
577
+ response = get_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value!
578
+ response.body unless response.nil?
579
+ end
580
+
581
+ #
582
+ # Gets the category of ResourceHealthMetadata to use for the given site
583
+ #
584
+ # Gets the category of ResourceHealthMetadata to use for the given site
585
+ #
586
+ # @param resource_group_name [String] Name of the resource group to which the
587
+ # resource belongs.
588
+ # @param name [String] Name of web app
589
+ # @param slot [String] Name of web app slot. If not specified then will default
590
+ # to production slot.
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
595
+ #
596
+ def get_by_site_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil)
597
+ get_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value!
598
+ end
599
+
600
+ #
601
+ # Gets the category of ResourceHealthMetadata to use for the given site
602
+ #
603
+ # Gets the category of ResourceHealthMetadata to use for the given site
604
+ #
605
+ # @param resource_group_name [String] Name of the resource group to which the
606
+ # resource belongs.
607
+ # @param name [String] Name of web app
608
+ # @param slot [String] Name of web app slot. If not specified then will default
609
+ # to production slot.
610
+ # @param [Hash{String => String}] A hash of custom headers that will be added
611
+ # to the HTTP request.
612
+ #
613
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
614
+ #
615
+ def get_by_site_slot_async(resource_group_name, name, slot, custom_headers:nil)
616
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
617
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
618
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
619
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
620
+ fail ArgumentError, 'name is nil' if name.nil?
621
+ fail ArgumentError, 'slot is nil' if slot.nil?
622
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
623
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
624
+
625
+
626
+ request_headers = {}
627
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
628
+
629
+ # Set Headers
630
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
631
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
632
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default'
633
+
634
+ request_url = @base_url || @client.base_url
635
+
636
+ options = {
637
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
638
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'slot' => slot,'subscriptionId' => @client.subscription_id},
639
+ query_params: {'api-version' => @client.api_version},
640
+ headers: request_headers.merge(custom_headers || {}),
641
+ base_url: request_url
642
+ }
643
+ promise = @client.make_request_async(:get, path_template, options)
644
+
645
+ promise = promise.then do |result|
646
+ http_response = result.response
647
+ status_code = http_response.status
648
+ response_content = http_response.body
649
+ unless status_code == 200
650
+ error_model = JSON.load(response_content)
651
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
652
+ end
653
+
654
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
655
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
656
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
657
+ # Deserialize Response
658
+ if status_code == 200
659
+ begin
660
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
661
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata.mapper()
662
+ result.body = @client.deserialize(result_mapper, parsed_response)
663
+ rescue Exception => e
664
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
665
+ end
666
+ end
667
+
668
+ result
669
+ end
670
+
671
+ promise.execute
672
+ end
673
+
674
+ #
675
+ # List all ResourceHealthMetadata for all sites in the subscription.
676
+ #
677
+ # List all ResourceHealthMetadata for all sites in the subscription.
678
+ #
679
+ # @param next_page_link [String] The NextLink from the previous successful call
680
+ # to List operation.
681
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
682
+ # will be added to the HTTP request.
683
+ #
684
+ # @return [ResourceHealthMetadataCollection] operation results.
685
+ #
686
+ def list_next(next_page_link, custom_headers:nil)
687
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
688
+ response.body unless response.nil?
689
+ end
690
+
691
+ #
692
+ # List all ResourceHealthMetadata for all sites in the subscription.
693
+ #
694
+ # List all ResourceHealthMetadata for all sites in the subscription.
695
+ #
696
+ # @param next_page_link [String] The NextLink from the previous successful call
697
+ # to List operation.
698
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
699
+ # will be added to the HTTP request.
700
+ #
701
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
702
+ #
703
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
704
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
705
+ end
706
+
707
+ #
708
+ # List all ResourceHealthMetadata for all sites in the subscription.
709
+ #
710
+ # List all ResourceHealthMetadata for all sites in the subscription.
711
+ #
712
+ # @param next_page_link [String] The NextLink from the previous successful call
713
+ # to List operation.
714
+ # @param [Hash{String => String}] A hash of custom headers that will be added
715
+ # to the HTTP request.
716
+ #
717
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
718
+ #
719
+ def list_next_async(next_page_link, custom_headers:nil)
720
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
721
+
722
+
723
+ request_headers = {}
724
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
725
+
726
+ # Set Headers
727
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
728
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
729
+ path_template = '{nextLink}'
730
+
731
+ request_url = @base_url || @client.base_url
732
+
733
+ options = {
734
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
735
+ skip_encoding_path_params: {'nextLink' => next_page_link},
736
+ headers: request_headers.merge(custom_headers || {}),
737
+ base_url: request_url
738
+ }
739
+ promise = @client.make_request_async(:get, path_template, options)
740
+
741
+ promise = promise.then do |result|
742
+ http_response = result.response
743
+ status_code = http_response.status
744
+ response_content = http_response.body
745
+ unless status_code == 200
746
+ error_model = JSON.load(response_content)
747
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
748
+ end
749
+
750
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
751
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
752
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
753
+ # Deserialize Response
754
+ if status_code == 200
755
+ begin
756
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
757
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
758
+ result.body = @client.deserialize(result_mapper, parsed_response)
759
+ rescue Exception => e
760
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
761
+ end
762
+ end
763
+
764
+ result
765
+ end
766
+
767
+ promise.execute
768
+ end
769
+
770
+ #
771
+ # List all ResourceHealthMetadata for all sites in the resource group in the
772
+ # subscription.
773
+ #
774
+ # List all ResourceHealthMetadata for all sites in the resource group in the
775
+ # subscription.
776
+ #
777
+ # @param next_page_link [String] The NextLink from the previous successful call
778
+ # to List operation.
779
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
780
+ # will be added to the HTTP request.
781
+ #
782
+ # @return [ResourceHealthMetadataCollection] operation results.
783
+ #
784
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
785
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
786
+ response.body unless response.nil?
787
+ end
788
+
789
+ #
790
+ # List all ResourceHealthMetadata for all sites in the resource group in the
791
+ # subscription.
792
+ #
793
+ # List all ResourceHealthMetadata for all sites in the resource group in the
794
+ # subscription.
795
+ #
796
+ # @param next_page_link [String] The NextLink from the previous successful call
797
+ # to List operation.
798
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
799
+ # will be added to the HTTP request.
800
+ #
801
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
802
+ #
803
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
804
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
805
+ end
806
+
807
+ #
808
+ # List all ResourceHealthMetadata for all sites in the resource group in the
809
+ # subscription.
810
+ #
811
+ # List all ResourceHealthMetadata for all sites in the resource group in the
812
+ # subscription.
813
+ #
814
+ # @param next_page_link [String] The NextLink from the previous successful call
815
+ # to List operation.
816
+ # @param [Hash{String => String}] A hash of custom headers that will be added
817
+ # to the HTTP request.
818
+ #
819
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
820
+ #
821
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
822
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
823
+
824
+
825
+ request_headers = {}
826
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
827
+
828
+ # Set Headers
829
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
830
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
831
+ path_template = '{nextLink}'
832
+
833
+ request_url = @base_url || @client.base_url
834
+
835
+ options = {
836
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
837
+ skip_encoding_path_params: {'nextLink' => next_page_link},
838
+ headers: request_headers.merge(custom_headers || {}),
839
+ base_url: request_url
840
+ }
841
+ promise = @client.make_request_async(:get, path_template, options)
842
+
843
+ promise = promise.then do |result|
844
+ http_response = result.response
845
+ status_code = http_response.status
846
+ response_content = http_response.body
847
+ unless status_code == 200
848
+ error_model = JSON.load(response_content)
849
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
850
+ end
851
+
852
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
853
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
854
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
855
+ # Deserialize Response
856
+ if status_code == 200
857
+ begin
858
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
859
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
860
+ result.body = @client.deserialize(result_mapper, parsed_response)
861
+ rescue Exception => e
862
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
863
+ end
864
+ end
865
+
866
+ result
867
+ end
868
+
869
+ promise.execute
870
+ end
871
+
872
+ #
873
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
874
+ # collection
875
+ #
876
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
877
+ # collection
878
+ #
879
+ # @param next_page_link [String] The NextLink from the previous successful call
880
+ # to List operation.
881
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
882
+ # will be added to the HTTP request.
883
+ #
884
+ # @return [ResourceHealthMetadataCollection] operation results.
885
+ #
886
+ def list_by_site_next(next_page_link, custom_headers:nil)
887
+ response = list_by_site_next_async(next_page_link, custom_headers:custom_headers).value!
888
+ response.body unless response.nil?
889
+ end
890
+
891
+ #
892
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
893
+ # collection
894
+ #
895
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
896
+ # collection
897
+ #
898
+ # @param next_page_link [String] The NextLink from the previous successful call
899
+ # to List operation.
900
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
901
+ # will be added to the HTTP request.
902
+ #
903
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
904
+ #
905
+ def list_by_site_next_with_http_info(next_page_link, custom_headers:nil)
906
+ list_by_site_next_async(next_page_link, custom_headers:custom_headers).value!
907
+ end
908
+
909
+ #
910
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
911
+ # collection
912
+ #
913
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
914
+ # collection
915
+ #
916
+ # @param next_page_link [String] The NextLink from the previous successful call
917
+ # to List operation.
918
+ # @param [Hash{String => String}] A hash of custom headers that will be added
919
+ # to the HTTP request.
920
+ #
921
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
922
+ #
923
+ def list_by_site_next_async(next_page_link, custom_headers:nil)
924
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
925
+
926
+
927
+ request_headers = {}
928
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
929
+
930
+ # Set Headers
931
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
932
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
933
+ path_template = '{nextLink}'
934
+
935
+ request_url = @base_url || @client.base_url
936
+
937
+ options = {
938
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
939
+ skip_encoding_path_params: {'nextLink' => next_page_link},
940
+ headers: request_headers.merge(custom_headers || {}),
941
+ base_url: request_url
942
+ }
943
+ promise = @client.make_request_async(:get, path_template, options)
944
+
945
+ promise = promise.then do |result|
946
+ http_response = result.response
947
+ status_code = http_response.status
948
+ response_content = http_response.body
949
+ unless status_code == 200
950
+ error_model = JSON.load(response_content)
951
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
952
+ end
953
+
954
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
955
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
956
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
957
+ # Deserialize Response
958
+ if status_code == 200
959
+ begin
960
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
961
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
962
+ result.body = @client.deserialize(result_mapper, parsed_response)
963
+ rescue Exception => e
964
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
965
+ end
966
+ end
967
+
968
+ result
969
+ end
970
+
971
+ promise.execute
972
+ end
973
+
974
+ #
975
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
976
+ # collection
977
+ #
978
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
979
+ # collection
980
+ #
981
+ # @param next_page_link [String] The NextLink from the previous successful call
982
+ # to List operation.
983
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
984
+ # will be added to the HTTP request.
985
+ #
986
+ # @return [ResourceHealthMetadataCollection] operation results.
987
+ #
988
+ def list_by_site_slot_next(next_page_link, custom_headers:nil)
989
+ response = list_by_site_slot_next_async(next_page_link, custom_headers:custom_headers).value!
990
+ response.body unless response.nil?
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 custom_headers [Hash{String => String}] A hash of custom headers that
1003
+ # will be added to the HTTP request.
1004
+ #
1005
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1006
+ #
1007
+ def list_by_site_slot_next_with_http_info(next_page_link, custom_headers:nil)
1008
+ list_by_site_slot_next_async(next_page_link, custom_headers:custom_headers).value!
1009
+ end
1010
+
1011
+ #
1012
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
1013
+ # collection
1014
+ #
1015
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
1016
+ # collection
1017
+ #
1018
+ # @param next_page_link [String] The NextLink from the previous successful call
1019
+ # to List operation.
1020
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1021
+ # to the HTTP request.
1022
+ #
1023
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1024
+ #
1025
+ def list_by_site_slot_next_async(next_page_link, custom_headers:nil)
1026
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1027
+
1028
+
1029
+ request_headers = {}
1030
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1031
+
1032
+ # Set Headers
1033
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1034
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1035
+ path_template = '{nextLink}'
1036
+
1037
+ request_url = @base_url || @client.base_url
1038
+
1039
+ options = {
1040
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1041
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1042
+ headers: request_headers.merge(custom_headers || {}),
1043
+ base_url: request_url
1044
+ }
1045
+ promise = @client.make_request_async(:get, path_template, options)
1046
+
1047
+ promise = promise.then do |result|
1048
+ http_response = result.response
1049
+ status_code = http_response.status
1050
+ response_content = http_response.body
1051
+ unless status_code == 200
1052
+ error_model = JSON.load(response_content)
1053
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1054
+ end
1055
+
1056
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1057
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1058
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1059
+ # Deserialize Response
1060
+ if status_code == 200
1061
+ begin
1062
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1063
+ result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection.mapper()
1064
+ result.body = @client.deserialize(result_mapper, parsed_response)
1065
+ rescue Exception => e
1066
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1067
+ end
1068
+ end
1069
+
1070
+ result
1071
+ end
1072
+
1073
+ promise.execute
1074
+ end
1075
+
1076
+ #
1077
+ # List all ResourceHealthMetadata for all sites in the subscription.
1078
+ #
1079
+ # List all ResourceHealthMetadata for all sites in the subscription.
1080
+ #
1081
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1082
+ # will be added to the HTTP request.
1083
+ #
1084
+ # @return [ResourceHealthMetadataCollection] which provide lazy access to pages
1085
+ # of the response.
1086
+ #
1087
+ def list_as_lazy(custom_headers:nil)
1088
+ response = list_async(custom_headers:custom_headers).value!
1089
+ unless response.nil?
1090
+ page = response.body
1091
+ page.next_method = Proc.new do |next_page_link|
1092
+ list_next_async(next_page_link, custom_headers:custom_headers)
1093
+ end
1094
+ page
1095
+ end
1096
+ end
1097
+
1098
+ #
1099
+ # List all ResourceHealthMetadata for all sites in the resource group in the
1100
+ # subscription.
1101
+ #
1102
+ # List all ResourceHealthMetadata for all sites in the resource group in the
1103
+ # subscription.
1104
+ #
1105
+ # @param resource_group_name [String] Name of the resource group to which the
1106
+ # resource belongs.
1107
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1108
+ # will be added to the HTTP request.
1109
+ #
1110
+ # @return [ResourceHealthMetadataCollection] which provide lazy access to pages
1111
+ # of the response.
1112
+ #
1113
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1114
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1115
+ unless response.nil?
1116
+ page = response.body
1117
+ page.next_method = Proc.new do |next_page_link|
1118
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1119
+ end
1120
+ page
1121
+ end
1122
+ end
1123
+
1124
+ #
1125
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
1126
+ # collection
1127
+ #
1128
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
1129
+ # collection
1130
+ #
1131
+ # @param resource_group_name [String] Name of the resource group to which the
1132
+ # resource belongs.
1133
+ # @param name [String] Name of web app.
1134
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1135
+ # will be added to the HTTP request.
1136
+ #
1137
+ # @return [ResourceHealthMetadataCollection] which provide lazy access to pages
1138
+ # of the response.
1139
+ #
1140
+ def list_by_site_as_lazy(resource_group_name, name, custom_headers:nil)
1141
+ response = list_by_site_async(resource_group_name, name, custom_headers:custom_headers).value!
1142
+ unless response.nil?
1143
+ page = response.body
1144
+ page.next_method = Proc.new do |next_page_link|
1145
+ list_by_site_next_async(next_page_link, custom_headers:custom_headers)
1146
+ end
1147
+ page
1148
+ end
1149
+ end
1150
+
1151
+ #
1152
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
1153
+ # collection
1154
+ #
1155
+ # Gets the category of ResourceHealthMetadata to use for the given site as a
1156
+ # collection
1157
+ #
1158
+ # @param resource_group_name [String] Name of the resource group to which the
1159
+ # resource belongs.
1160
+ # @param name [String] Name of web app.
1161
+ # @param slot [String] Name of web app slot. If not specified then will default
1162
+ # to production slot.
1163
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1164
+ # will be added to the HTTP request.
1165
+ #
1166
+ # @return [ResourceHealthMetadataCollection] which provide lazy access to pages
1167
+ # of the response.
1168
+ #
1169
+ def list_by_site_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil)
1170
+ response = list_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value!
1171
+ unless response.nil?
1172
+ page = response.body
1173
+ page.next_method = Proc.new do |next_page_link|
1174
+ list_by_site_slot_next_async(next_page_link, custom_headers:custom_headers)
1175
+ end
1176
+ page
1177
+ end
1178
+ end
1179
+
1180
+ end
1181
+ end