azure_mgmt_web 0.17.3 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (532) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  3. data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +38 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  5. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  6. data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  9. data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +4 -0
  10. data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +16 -0
  11. data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  12. data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  13. data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +12 -0
  14. data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  15. data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  16. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +51 -5
  17. data/lib/2016-06-01/generated/azure_mgmt_web.rb +76 -0
  18. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb +240 -0
  19. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateways.rb +682 -0
  20. data/lib/2016-06-01/generated/azure_mgmt_web/connections.rb +815 -0
  21. data/lib/2016-06-01/generated/azure_mgmt_web/custom_apis.rb +997 -0
  22. data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +140 -0
  23. data/lib/2016-06-01/generated/azure_mgmt_web/managed_apis.rb +233 -0
  24. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb +106 -0
  25. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb +55 -0
  26. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb +179 -0
  27. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb +57 -0
  28. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb +130 -0
  29. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb +68 -0
  30. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_reference.rb +118 -0
  31. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb +46 -0
  32. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb +57 -0
  33. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb +90 -0
  34. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb +135 -0
  35. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb +58 -0
  36. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb +186 -0
  37. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_type.rb +17 -0
  38. data/lib/2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb +68 -0
  39. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_error.rb +116 -0
  40. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb +106 -0
  41. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb +56 -0
  42. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb +122 -0
  43. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb +106 -0
  44. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb +57 -0
  45. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb +123 -0
  46. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb +73 -0
  47. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb +61 -0
  48. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb +23 -0
  49. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb +69 -0
  50. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb +55 -0
  51. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb +81 -0
  52. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb +82 -0
  53. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb +106 -0
  54. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb +55 -0
  55. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb +196 -0
  56. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb +99 -0
  57. data/lib/2016-06-01/generated/azure_mgmt_web/models/link_state.rb +17 -0
  58. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb +105 -0
  59. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb +55 -0
  60. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb +106 -0
  61. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb +55 -0
  62. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb +112 -0
  63. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb +58 -0
  64. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb +81 -0
  65. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb +17 -0
  66. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb +65 -0
  67. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb +55 -0
  68. data/lib/2016-06-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  69. data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +732 -0
  70. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  71. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +124 -0
  72. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  73. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  74. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  75. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +128 -0
  76. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  77. data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  78. data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +16 -0
  79. data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  80. data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  81. data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  82. data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +38 -0
  83. data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +12 -0
  84. data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  85. data/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  86. data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  87. data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +788 -0
  88. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +58 -6
  89. data/lib/2020-09-01/generated/azure_mgmt_web.rb +461 -0
  90. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2704 -0
  91. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_environments.rb +7327 -0
  92. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_plans.rb +3918 -0
  93. data/lib/2020-09-01/generated/azure_mgmt_web/certificate_registration_provider.rb +247 -0
  94. data/lib/2020-09-01/generated/azure_mgmt_web/certificates.rb +898 -0
  95. data/lib/2020-09-01/generated/azure_mgmt_web/deleted_web_apps.rb +550 -0
  96. data/lib/2020-09-01/generated/azure_mgmt_web/diagnostics.rb +3664 -0
  97. data/lib/2020-09-01/generated/azure_mgmt_web/domain_registration_provider.rb +247 -0
  98. data/lib/2020-09-01/generated/azure_mgmt_web/domains.rb +2186 -0
  99. data/lib/2020-09-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
  100. data/lib/2020-09-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
  101. data/lib/2020-09-01/generated/azure_mgmt_web/models/address.rb +101 -0
  102. data/lib/2020-09-01/generated/azure_mgmt_web/models/address_response.rb +141 -0
  103. data/lib/2020-09-01/generated/azure_mgmt_web/models/allowed_audiences_validation.rb +99 -0
  104. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
  105. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_definition.rb +91 -0
  106. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
  107. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_management_config.rb +46 -0
  108. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_registration.rb +102 -0
  109. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
  110. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
  111. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +368 -0
  112. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
  113. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +344 -0
  114. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +121 -0
  115. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +145 -0
  116. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment.rb +569 -0
  117. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
  118. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +613 -0
  119. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +637 -0
  120. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan.rb +352 -0
  121. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
  122. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +318 -0
  123. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
  124. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
  125. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
  126. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
  127. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_resource.rb +153 -0
  128. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token.rb +91 -0
  129. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token_request.rb +57 -0
  130. data/lib/2020-09-01/generated/azure_mgmt_web/models/arm_id_wrapper.rb +47 -0
  131. data/lib/2020-09-01/generated/azure_mgmt_web/models/auth_platform.rb +113 -0
  132. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
  133. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
  134. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
  135. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
  136. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
  137. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory.rb +138 -0
  138. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_login.rb +110 -0
  139. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_registration.rb +124 -0
  140. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_validation.rb +111 -0
  141. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
  142. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
  143. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
  144. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
  145. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +99 -0
  146. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
  147. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
  148. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
  149. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item.rb +266 -0
  150. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
  151. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
  152. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_request.rb +148 -0
  153. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
  154. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
  155. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter.rb +146 -0
  156. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
  157. data/lib/2020-09-01/generated/azure_mgmt_web/models/blob_storage_token_store.rb +91 -0
  158. data/lib/2020-09-01/generated/azure_mgmt_web/models/build_status.rb +21 -0
  159. data/lib/2020-09-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +20 -0
  160. data/lib/2020-09-01/generated/azure_mgmt_web/models/capability.rb +68 -0
  161. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate.rb +356 -0
  162. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
  163. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
  164. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_email.rb +101 -0
  165. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action.rb +110 -0
  166. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
  167. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
  168. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +332 -0
  169. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
  170. data/lib/2020-09-01/generated/azure_mgmt_web/models/channels.rb +19 -0
  171. data/lib/2020-09-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
  172. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_cert_mode.rb +16 -0
  173. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_credential_method.rb +15 -0
  174. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_registration.rb +102 -0
  175. data/lib/2020-09-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
  176. data/lib/2020-09-01/generated/azure_mgmt_web/models/cloning_info.rb +181 -0
  177. data/lib/2020-09-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
  178. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
  179. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
  180. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +99 -0
  181. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
  182. data/lib/2020-09-01/generated/azure_mgmt_web/models/contact.rb +138 -0
  183. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_statistics.rb +82 -0
  184. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_usage.rb +88 -0
  185. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_info.rb +128 -0
  186. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_memory_statistics.rb +69 -0
  187. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_network_interface_statistics.rb +124 -0
  188. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_throttling_data.rb +69 -0
  189. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job.rb +201 -0
  190. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
  191. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
  192. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration.rb +104 -0
  193. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration_convention.rb +16 -0
  194. data/lib/2020-09-01/generated/azure_mgmt_web/models/cors_settings.rb +70 -0
  195. data/lib/2020-09-01/generated/azure_mgmt_web/models/created_by_type.rb +18 -0
  196. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_copy_slot_entity.rb +63 -0
  197. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
  198. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
  199. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
  200. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
  201. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
  202. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_collection.rb +106 -0
  203. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_entity.rb +91 -0
  204. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +60 -0
  205. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
  206. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
  207. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
  208. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
  209. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +258 -0
  210. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_open_id_connect_provider.rb +115 -0
  211. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
  212. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
  213. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
  214. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
  215. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
  216. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
  217. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
  218. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
  219. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +128 -0
  220. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_site.rb +175 -0
  221. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
  222. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment.rb +179 -0
  223. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
  224. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
  225. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
  226. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_definition.rb +127 -0
  227. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
  228. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response.rb +111 -0
  229. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
  230. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +162 -0
  231. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
  232. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category.rb +91 -0
  233. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
  234. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
  235. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
  236. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +206 -0
  237. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
  238. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
  239. data/lib/2020-09-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
  240. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
  241. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
  242. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain.rb +381 -0
  243. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_availability_check_result.rb +73 -0
  244. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
  245. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
  246. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +90 -0
  247. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
  248. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +357 -0
  249. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
  250. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
  251. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
  252. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
  253. data/lib/2020-09-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
  254. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_dependency.rb +68 -0
  255. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_detail.rb +83 -0
  256. data/lib/2020-09-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
  257. data/lib/2020-09-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
  258. data/lib/2020-09-01/generated/azure_mgmt_web/models/facebook.rb +126 -0
  259. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
  260. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
  261. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_token_store.rb +91 -0
  262. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy.rb +115 -0
  263. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy_convention.rb +17 -0
  264. data/lib/2020-09-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
  265. data/lib/2020-09-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
  266. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope.rb +231 -0
  267. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
  268. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_secrets.rb +57 -0
  269. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region.rb +115 -0
  270. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
  271. data/lib/2020-09-01/generated/azure_mgmt_web/models/git_hub.rb +115 -0
  272. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
  273. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_validation.rb +134 -0
  274. data/lib/2020-09-01/generated/azure_mgmt_web/models/google.rb +127 -0
  275. data/lib/2020-09-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
  276. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_keys.rb +84 -0
  277. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
  278. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding.rb +188 -0
  279. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
  280. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
  281. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
  282. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
  283. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
  284. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
  285. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
  286. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
  287. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
  288. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings.rb +115 -0
  289. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings_routes.rb +91 -0
  290. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb +172 -0
  291. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
  292. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +104 -0
  293. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +104 -0
  294. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier.rb +90 -0
  295. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
  296. data/lib/2020-09-01/generated/azure_mgmt_web/models/identity_providers.rb +160 -0
  297. data/lib/2020-09-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
  298. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint.rb +88 -0
  299. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint_collection.rb +99 -0
  300. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +17 -0
  301. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +202 -0
  302. data/lib/2020-09-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
  303. data/lib/2020-09-01/generated/azure_mgmt_web/models/jwt_claim_checks.rb +118 -0
  304. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_info.rb +57 -0
  305. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
  306. data/lib/2020-09-01/generated/azure_mgmt_web/models/load_balancing_mode.rb +18 -0
  307. data/lib/2020-09-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
  308. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
  309. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_specification.rb +79 -0
  310. data/lib/2020-09-01/generated/azure_mgmt_web/models/login.rb +158 -0
  311. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_routes.rb +91 -0
  312. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_scopes.rb +99 -0
  313. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
  314. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +97 -0
  315. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +18 -0
  316. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  317. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
  318. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_specification.rb +256 -0
  319. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +103 -0
  320. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +117 -0
  321. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy.rb +174 -0
  322. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log.rb +100 -0
  323. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
  324. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
  325. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
  326. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_status.rb +141 -0
  327. data/lib/2020-09-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
  328. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
  329. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
  330. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
  331. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
  332. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_features.rb +149 -0
  333. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
  334. data/lib/2020-09-01/generated/azure_mgmt_web/models/nonce.rb +102 -0
  335. data/lib/2020-09-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
  336. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_client_credential.rb +104 -0
  337. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_config.rb +135 -0
  338. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_login.rb +110 -0
  339. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_registration.rb +115 -0
  340. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation.rb +135 -0
  341. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
  342. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint.rb +70 -0
  343. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint_collection.rb +99 -0
  344. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
  345. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
  346. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
  347. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
  348. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on.rb +158 -0
  349. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +193 -0
  350. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
  351. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +134 -0
  352. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access.rb +111 -0
  353. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
  354. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
  355. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_endpoint_connection_resource.rb +116 -0
  356. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_approval_request_resource.rb +92 -0
  357. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_state.rb +68 -0
  358. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource.rb +81 -0
  359. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource_properties.rb +87 -0
  360. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resources_wrapper.rb +55 -0
  361. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info.rb +518 -0
  362. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
  363. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info.rb +201 -0
  364. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
  365. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info.rb +212 -0
  366. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
  367. data/lib/2020-09-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
  368. data/lib/2020-09-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +95 -0
  369. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate.rb +115 -0
  370. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
  371. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
  372. data/lib/2020-09-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
  373. data/lib/2020-09-01/generated/azure_mgmt_web/models/push_settings.rb +132 -0
  374. data/lib/2020-09-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +142 -0
  375. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation.rb +369 -0
  376. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
  377. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_rule.rb +246 -0
  378. data/lib/2020-09-01/generated/azure_mgmt_web/models/redundancy_mode.rb +19 -0
  379. data/lib/2020-09-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +125 -0
  380. data/lib/2020-09-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +156 -0
  381. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
  382. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
  383. data/lib/2020-09-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +113 -0
  384. data/lib/2020-09-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
  385. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource.rb +133 -0
  386. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
  387. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +102 -0
  388. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  389. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
  390. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +157 -0
  391. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
  392. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
  393. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
  394. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
  395. data/lib/2020-09-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
  396. data/lib/2020-09-01/generated/azure_mgmt_web/models/restore_request.rb +226 -0
  397. data/lib/2020-09-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
  398. data/lib/2020-09-01/generated/azure_mgmt_web/models/scm_type.rb +28 -0
  399. data/lib/2020-09-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
  400. data/lib/2020-09-01/generated/azure_mgmt_web/models/site.rb +643 -0
  401. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings.rb +659 -0
  402. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings_v2.rb +140 -0
  403. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
  404. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
  405. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
  406. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config.rb +782 -0
  407. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource.rb +826 -0
  408. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
  409. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +103 -0
  410. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
  411. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info.rb +310 -0
  412. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
  413. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
  414. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
  415. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
  416. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_logs_config.rb +127 -0
  417. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
  418. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_patch_resource.rb +619 -0
  419. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +123 -0
  420. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_runtime_state.rb +17 -0
  421. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
  422. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
  423. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_source_control.rb +150 -0
  424. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
  425. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
  426. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
  427. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
  428. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
  429. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_name.rb +24 -0
  430. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +137 -0
  431. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference.rb +166 -0
  432. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
  433. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
  434. data/lib/2020-09-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
  435. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot.rb +91 -0
  436. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
  437. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
  438. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +154 -0
  439. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution.rb +148 -0
  440. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
  441. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control.rb +123 -0
  442. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
  443. data/lib/2020-09-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
  444. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_major_version.rb +138 -0
  445. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_minor_version.rb +81 -0
  446. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb +168 -0
  447. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
  448. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_armresource.rb +196 -0
  449. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_armresource.rb +166 -0
  450. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_collection.rb +99 -0
  451. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_properties.rb +68 -0
  452. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_collection.rb +99 -0
  453. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_armresource.rb +105 -0
  454. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_collection.rb +102 -0
  455. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_armresource.rb +104 -0
  456. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_collection.rb +101 -0
  457. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_patch_resource.rb +160 -0
  458. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_reset_properties_armresource.rb +103 -0
  459. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_armresource.rb +127 -0
  460. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_collection.rb +99 -0
  461. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_request_resource.rb +135 -0
  462. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_response_resource.rb +103 -0
  463. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview.rb +103 -0
  464. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview_request.rb +114 -0
  465. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
  466. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
  467. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_options.rb +128 -0
  468. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_response.rb +92 -0
  469. data/lib/2020-09-01/generated/azure_mgmt_web/models/string_dictionary.rb +98 -0
  470. data/lib/2020-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  471. data/lib/2020-09-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +105 -0
  472. data/lib/2020-09-01/generated/azure_mgmt_web/models/system_data.rb +105 -0
  473. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
  474. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
  475. data/lib/2020-09-01/generated/azure_mgmt_web/models/token_store.rb +126 -0
  476. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain.rb +91 -0
  477. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
  478. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
  479. data/lib/2020-09-01/generated/azure_mgmt_web/models/trigger_types.rb +16 -0
  480. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history.rb +100 -0
  481. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
  482. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_run.rb +202 -0
  483. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job.rb +200 -0
  484. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
  485. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
  486. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter.rb +103 -0
  487. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter_registration.rb +102 -0
  488. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
  489. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action_v2.rb +18 -0
  490. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage.rb +177 -0
  491. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
  492. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
  493. data/lib/2020-09-01/generated/azure_mgmt_web/models/user.rb +134 -0
  494. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_request.rb +221 -0
  495. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
  496. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
  497. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
  498. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
  499. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
  500. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +90 -0
  501. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
  502. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_gateway.rb +102 -0
  503. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_info.rb +173 -0
  504. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_parameters.rb +112 -0
  505. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_route.rb +124 -0
  506. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +111 -0
  507. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +102 -0
  508. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
  509. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_instance_status_collection.rb +99 -0
  510. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job.rb +166 -0
  511. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
  512. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
  513. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_site_instance_status.rb +157 -0
  514. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
  515. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
  516. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +158 -0
  517. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_size_options.rb +22 -0
  518. data/lib/2020-09-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  519. data/lib/2020-09-01/generated/azure_mgmt_web/provider.rb +681 -0
  520. data/lib/2020-09-01/generated/azure_mgmt_web/recommendations.rb +2306 -0
  521. data/lib/2020-09-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1194 -0
  522. data/lib/2020-09-01/generated/azure_mgmt_web/static_sites.rb +3889 -0
  523. data/lib/2020-09-01/generated/azure_mgmt_web/top_level_domains.rb +576 -0
  524. data/lib/2020-09-01/generated/azure_mgmt_web/web_apps.rb +52832 -0
  525. data/lib/2020-09-01/generated/azure_mgmt_web/web_site_management_client.rb +2884 -0
  526. data/lib/azure_mgmt_web.rb +7 -4
  527. data/lib/profiles/latest/modules/web_profile_module.rb +1200 -866
  528. data/lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb +1469 -0
  529. data/lib/profiles/v2019_03_01_hybrid/web_module_definition.rb +8 -0
  530. data/lib/profiles/v2019_03_01_hybrid/web_v2019_03_01_hybrid_profile_client.rb +40 -0
  531. data/lib/version.rb +1 -1
  532. metadata +497 -5
@@ -0,0 +1,3664 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Web::Mgmt::V2020_09_01
7
+ #
8
+ # WebSite Management Client
9
+ #
10
+ class Diagnostics
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Diagnostics 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 Hosting Environment Detector Responses
26
+ #
27
+ # Description for List Hosting Environment Detector Responses
28
+ #
29
+ # @param resource_group_name [String] Name of the resource group to which the
30
+ # resource belongs.
31
+ # @param name [String] Site Name
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Array<DetectorResponse>] operation results.
36
+ #
37
+ def list_hosting_environment_detector_responses(resource_group_name, name, custom_headers:nil)
38
+ first_page = list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers:custom_headers)
39
+ first_page.get_all_items
40
+ end
41
+
42
+ #
43
+ # List Hosting Environment Detector Responses
44
+ #
45
+ # Description for List Hosting Environment Detector Responses
46
+ #
47
+ # @param resource_group_name [String] Name of the resource group to which the
48
+ # resource belongs.
49
+ # @param name [String] Site Name
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def list_hosting_environment_detector_responses_with_http_info(resource_group_name, name, custom_headers:nil)
56
+ list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # List Hosting Environment Detector Responses
61
+ #
62
+ # Description for List Hosting Environment Detector Responses
63
+ #
64
+ # @param resource_group_name [String] Name of the resource group to which the
65
+ # resource belongs.
66
+ # @param name [String] Site Name
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:nil)
73
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
76
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
77
+ fail ArgumentError, 'name is nil' if name.nil?
78
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
+
81
+
82
+ request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
+
85
+ # Set Headers
86
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
87
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
88
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors'
89
+
90
+ request_url = @base_url || @client.base_url
91
+
92
+ options = {
93
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
94
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
95
+ query_params: {'api-version' => @client.api_version},
96
+ headers: request_headers.merge(custom_headers || {}),
97
+ base_url: request_url
98
+ }
99
+ promise = @client.make_request_async(:get, path_template, options)
100
+
101
+ promise = promise.then do |result|
102
+ http_response = result.response
103
+ status_code = http_response.status
104
+ response_content = http_response.body
105
+ unless status_code == 200
106
+ error_model = JSON.load(response_content)
107
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
108
+ end
109
+
110
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
111
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
112
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
113
+ # Deserialize Response
114
+ if status_code == 200
115
+ begin
116
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponseCollection.mapper()
118
+ result.body = @client.deserialize(result_mapper, parsed_response)
119
+ rescue Exception => e
120
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
+ end
122
+ end
123
+
124
+ result
125
+ end
126
+
127
+ promise.execute
128
+ end
129
+
130
+ #
131
+ # Get Hosting Environment Detector Response
132
+ #
133
+ # Description for Get Hosting Environment Detector Response
134
+ #
135
+ # @param resource_group_name [String] Name of the resource group to which the
136
+ # resource belongs.
137
+ # @param name [String] App Service Environment Name
138
+ # @param detector_name [String] Detector Resource Name
139
+ # @param start_time [DateTime] Start Time
140
+ # @param end_time [DateTime] End Time
141
+ # @param time_grain [String] Time Grain
142
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
143
+ # will be added to the HTTP request.
144
+ #
145
+ # @return [DetectorResponse] operation results.
146
+ #
147
+ def get_hosting_environment_detector_response(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
148
+ response = get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
149
+ response.body unless response.nil?
150
+ end
151
+
152
+ #
153
+ # Get Hosting Environment Detector Response
154
+ #
155
+ # Description for Get Hosting Environment Detector Response
156
+ #
157
+ # @param resource_group_name [String] Name of the resource group to which the
158
+ # resource belongs.
159
+ # @param name [String] App Service Environment Name
160
+ # @param detector_name [String] Detector Resource Name
161
+ # @param start_time [DateTime] Start Time
162
+ # @param end_time [DateTime] End Time
163
+ # @param time_grain [String] Time Grain
164
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
+ # will be added to the HTTP request.
166
+ #
167
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
168
+ #
169
+ def get_hosting_environment_detector_response_with_http_info(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
170
+ get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
171
+ end
172
+
173
+ #
174
+ # Get Hosting Environment Detector Response
175
+ #
176
+ # Description for Get Hosting Environment Detector Response
177
+ #
178
+ # @param resource_group_name [String] Name of the resource group to which the
179
+ # resource belongs.
180
+ # @param name [String] App Service Environment Name
181
+ # @param detector_name [String] Detector Resource Name
182
+ # @param start_time [DateTime] Start Time
183
+ # @param end_time [DateTime] End Time
184
+ # @param time_grain [String] Time Grain
185
+ # @param [Hash{String => String}] A hash of custom headers that will be added
186
+ # to the HTTP request.
187
+ #
188
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
189
+ #
190
+ def get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
191
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
192
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
193
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
194
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
195
+ fail ArgumentError, 'name is nil' if name.nil?
196
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
197
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
198
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
199
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
200
+
201
+
202
+ request_headers = {}
203
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
204
+
205
+ # Set Headers
206
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
207
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
208
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}'
209
+
210
+ request_url = @base_url || @client.base_url
211
+
212
+ options = {
213
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
214
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id},
215
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
216
+ headers: request_headers.merge(custom_headers || {}),
217
+ base_url: request_url
218
+ }
219
+ promise = @client.make_request_async(:get, path_template, options)
220
+
221
+ promise = promise.then do |result|
222
+ http_response = result.response
223
+ status_code = http_response.status
224
+ response_content = http_response.body
225
+ unless status_code == 200
226
+ error_model = JSON.load(response_content)
227
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
228
+ end
229
+
230
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
231
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
232
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
233
+ # Deserialize Response
234
+ if status_code == 200
235
+ begin
236
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
237
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponse.mapper()
238
+ result.body = @client.deserialize(result_mapper, parsed_response)
239
+ rescue Exception => e
240
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
241
+ end
242
+ end
243
+
244
+ result
245
+ end
246
+
247
+ promise.execute
248
+ end
249
+
250
+ #
251
+ # List Site Detector Responses
252
+ #
253
+ # Description for List Site Detector Responses
254
+ #
255
+ # @param resource_group_name [String] Name of the resource group to which the
256
+ # resource belongs.
257
+ # @param site_name [String] Site Name
258
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
259
+ # will be added to the HTTP request.
260
+ #
261
+ # @return [Array<DetectorResponse>] operation results.
262
+ #
263
+ def list_site_detector_responses(resource_group_name, site_name, custom_headers:nil)
264
+ first_page = list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:custom_headers)
265
+ first_page.get_all_items
266
+ end
267
+
268
+ #
269
+ # List Site Detector Responses
270
+ #
271
+ # Description for List Site Detector Responses
272
+ #
273
+ # @param resource_group_name [String] Name of the resource group to which the
274
+ # resource belongs.
275
+ # @param site_name [String] Site Name
276
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
277
+ # will be added to the HTTP request.
278
+ #
279
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
280
+ #
281
+ def list_site_detector_responses_with_http_info(resource_group_name, site_name, custom_headers:nil)
282
+ list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value!
283
+ end
284
+
285
+ #
286
+ # List Site Detector Responses
287
+ #
288
+ # Description for List Site Detector Responses
289
+ #
290
+ # @param resource_group_name [String] Name of the resource group to which the
291
+ # resource belongs.
292
+ # @param site_name [String] Site Name
293
+ # @param [Hash{String => String}] A hash of custom headers that will be added
294
+ # to the HTTP request.
295
+ #
296
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
297
+ #
298
+ def list_site_detector_responses_async(resource_group_name, site_name, custom_headers:nil)
299
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
300
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
301
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
302
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
303
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
304
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
305
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
306
+
307
+
308
+ request_headers = {}
309
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
310
+
311
+ # Set Headers
312
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
313
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
314
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors'
315
+
316
+ request_url = @base_url || @client.base_url
317
+
318
+ options = {
319
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
320
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
321
+ query_params: {'api-version' => @client.api_version},
322
+ headers: request_headers.merge(custom_headers || {}),
323
+ base_url: request_url
324
+ }
325
+ promise = @client.make_request_async(:get, path_template, options)
326
+
327
+ promise = promise.then do |result|
328
+ http_response = result.response
329
+ status_code = http_response.status
330
+ response_content = http_response.body
331
+ unless status_code == 200
332
+ error_model = JSON.load(response_content)
333
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
334
+ end
335
+
336
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
337
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
338
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
339
+ # Deserialize Response
340
+ if status_code == 200
341
+ begin
342
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
343
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponseCollection.mapper()
344
+ result.body = @client.deserialize(result_mapper, parsed_response)
345
+ rescue Exception => e
346
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
347
+ end
348
+ end
349
+
350
+ result
351
+ end
352
+
353
+ promise.execute
354
+ end
355
+
356
+ #
357
+ # Get site detector response
358
+ #
359
+ # Description for Get site detector response
360
+ #
361
+ # @param resource_group_name [String] Name of the resource group to which the
362
+ # resource belongs.
363
+ # @param site_name [String] Site Name
364
+ # @param detector_name [String] Detector Resource Name
365
+ # @param start_time [DateTime] Start Time
366
+ # @param end_time [DateTime] End Time
367
+ # @param time_grain [String] Time Grain
368
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
+ # will be added to the HTTP request.
370
+ #
371
+ # @return [DetectorResponse] operation results.
372
+ #
373
+ def get_site_detector_response(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
374
+ response = get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
375
+ response.body unless response.nil?
376
+ end
377
+
378
+ #
379
+ # Get site detector response
380
+ #
381
+ # Description for Get site detector response
382
+ #
383
+ # @param resource_group_name [String] Name of the resource group to which the
384
+ # resource belongs.
385
+ # @param site_name [String] Site Name
386
+ # @param detector_name [String] Detector Resource Name
387
+ # @param start_time [DateTime] Start Time
388
+ # @param end_time [DateTime] End Time
389
+ # @param time_grain [String] Time Grain
390
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
391
+ # will be added to the HTTP request.
392
+ #
393
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
394
+ #
395
+ def get_site_detector_response_with_http_info(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
396
+ get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
397
+ end
398
+
399
+ #
400
+ # Get site detector response
401
+ #
402
+ # Description for Get site detector response
403
+ #
404
+ # @param resource_group_name [String] Name of the resource group to which the
405
+ # resource belongs.
406
+ # @param site_name [String] Site Name
407
+ # @param detector_name [String] Detector Resource Name
408
+ # @param start_time [DateTime] Start Time
409
+ # @param end_time [DateTime] End Time
410
+ # @param time_grain [String] Time Grain
411
+ # @param [Hash{String => String}] A hash of custom headers that will be added
412
+ # to the HTTP request.
413
+ #
414
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
415
+ #
416
+ def get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
417
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
418
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
419
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
420
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
421
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
422
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
423
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
424
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
425
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
426
+
427
+
428
+ request_headers = {}
429
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
430
+
431
+ # Set Headers
432
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
433
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
434
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}'
435
+
436
+ request_url = @base_url || @client.base_url
437
+
438
+ options = {
439
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
440
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id},
441
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
442
+ headers: request_headers.merge(custom_headers || {}),
443
+ base_url: request_url
444
+ }
445
+ promise = @client.make_request_async(:get, path_template, options)
446
+
447
+ promise = promise.then do |result|
448
+ http_response = result.response
449
+ status_code = http_response.status
450
+ response_content = http_response.body
451
+ unless status_code == 200
452
+ error_model = JSON.load(response_content)
453
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
454
+ end
455
+
456
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
457
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
458
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
459
+ # Deserialize Response
460
+ if status_code == 200
461
+ begin
462
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
463
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponse.mapper()
464
+ result.body = @client.deserialize(result_mapper, parsed_response)
465
+ rescue Exception => e
466
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
467
+ end
468
+ end
469
+
470
+ result
471
+ end
472
+
473
+ promise.execute
474
+ end
475
+
476
+ #
477
+ # Get Diagnostics Categories
478
+ #
479
+ # Description for Get Diagnostics Categories
480
+ #
481
+ # @param resource_group_name [String] Name of the resource group to which the
482
+ # resource belongs.
483
+ # @param site_name [String] Site Name
484
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
485
+ # will be added to the HTTP request.
486
+ #
487
+ # @return [Array<DiagnosticCategory>] operation results.
488
+ #
489
+ def list_site_diagnostic_categories(resource_group_name, site_name, custom_headers:nil)
490
+ first_page = list_site_diagnostic_categories_as_lazy(resource_group_name, site_name, custom_headers:custom_headers)
491
+ first_page.get_all_items
492
+ end
493
+
494
+ #
495
+ # Get Diagnostics Categories
496
+ #
497
+ # Description for Get Diagnostics Categories
498
+ #
499
+ # @param resource_group_name [String] Name of the resource group to which the
500
+ # resource belongs.
501
+ # @param site_name [String] Site Name
502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
+ # will be added to the HTTP request.
504
+ #
505
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
506
+ #
507
+ def list_site_diagnostic_categories_with_http_info(resource_group_name, site_name, custom_headers:nil)
508
+ list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers:custom_headers).value!
509
+ end
510
+
511
+ #
512
+ # Get Diagnostics Categories
513
+ #
514
+ # Description for Get Diagnostics Categories
515
+ #
516
+ # @param resource_group_name [String] Name of the resource group to which the
517
+ # resource belongs.
518
+ # @param site_name [String] Site Name
519
+ # @param [Hash{String => String}] A hash of custom headers that will be added
520
+ # to the HTTP request.
521
+ #
522
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
523
+ #
524
+ def list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers:nil)
525
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
526
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
527
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
528
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
529
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
530
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
531
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
532
+
533
+
534
+ request_headers = {}
535
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
536
+
537
+ # Set Headers
538
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
539
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
540
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics'
541
+
542
+ request_url = @base_url || @client.base_url
543
+
544
+ options = {
545
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
546
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
547
+ query_params: {'api-version' => @client.api_version},
548
+ headers: request_headers.merge(custom_headers || {}),
549
+ base_url: request_url
550
+ }
551
+ promise = @client.make_request_async(:get, path_template, options)
552
+
553
+ promise = promise.then do |result|
554
+ http_response = result.response
555
+ status_code = http_response.status
556
+ response_content = http_response.body
557
+ unless status_code == 200
558
+ error_model = JSON.load(response_content)
559
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
560
+ end
561
+
562
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
563
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
564
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
565
+ # Deserialize Response
566
+ if status_code == 200
567
+ begin
568
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
569
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticCategoryCollection.mapper()
570
+ result.body = @client.deserialize(result_mapper, parsed_response)
571
+ rescue Exception => e
572
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
573
+ end
574
+ end
575
+
576
+ result
577
+ end
578
+
579
+ promise.execute
580
+ end
581
+
582
+ #
583
+ # Get Diagnostics Category
584
+ #
585
+ # Description for Get Diagnostics Category
586
+ #
587
+ # @param resource_group_name [String] Name of the resource group to which the
588
+ # resource belongs.
589
+ # @param site_name [String] Site Name
590
+ # @param diagnostic_category [String] Diagnostic Category
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ # @return [DiagnosticCategory] operation results.
595
+ #
596
+ def get_site_diagnostic_category(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
597
+ response = get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
598
+ response.body unless response.nil?
599
+ end
600
+
601
+ #
602
+ # Get Diagnostics Category
603
+ #
604
+ # Description for Get Diagnostics Category
605
+ #
606
+ # @param resource_group_name [String] Name of the resource group to which the
607
+ # resource belongs.
608
+ # @param site_name [String] Site Name
609
+ # @param diagnostic_category [String] Diagnostic Category
610
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
611
+ # will be added to the HTTP request.
612
+ #
613
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
614
+ #
615
+ def get_site_diagnostic_category_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
616
+ get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
617
+ end
618
+
619
+ #
620
+ # Get Diagnostics Category
621
+ #
622
+ # Description for Get Diagnostics Category
623
+ #
624
+ # @param resource_group_name [String] Name of the resource group to which the
625
+ # resource belongs.
626
+ # @param site_name [String] Site Name
627
+ # @param diagnostic_category [String] Diagnostic Category
628
+ # @param [Hash{String => String}] A hash of custom headers that will be added
629
+ # to the HTTP request.
630
+ #
631
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
632
+ #
633
+ def get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
634
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
635
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
636
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
637
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
638
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
639
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
640
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
641
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
642
+
643
+
644
+ request_headers = {}
645
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
646
+
647
+ # Set Headers
648
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
649
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
650
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}'
651
+
652
+ request_url = @base_url || @client.base_url
653
+
654
+ options = {
655
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
656
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id},
657
+ query_params: {'api-version' => @client.api_version},
658
+ headers: request_headers.merge(custom_headers || {}),
659
+ base_url: request_url
660
+ }
661
+ promise = @client.make_request_async(:get, path_template, options)
662
+
663
+ promise = promise.then do |result|
664
+ http_response = result.response
665
+ status_code = http_response.status
666
+ response_content = http_response.body
667
+ unless status_code == 200
668
+ error_model = JSON.load(response_content)
669
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
670
+ end
671
+
672
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
673
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
674
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
675
+ # Deserialize Response
676
+ if status_code == 200
677
+ begin
678
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
679
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticCategory.mapper()
680
+ result.body = @client.deserialize(result_mapper, parsed_response)
681
+ rescue Exception => e
682
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
683
+ end
684
+ end
685
+
686
+ result
687
+ end
688
+
689
+ promise.execute
690
+ end
691
+
692
+ #
693
+ # Get Site Analyses
694
+ #
695
+ # Description for Get Site Analyses
696
+ #
697
+ # @param resource_group_name [String] Name of the resource group to which the
698
+ # resource belongs.
699
+ # @param site_name [String] Site Name
700
+ # @param diagnostic_category [String] Diagnostic Category
701
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
702
+ # will be added to the HTTP request.
703
+ #
704
+ # @return [Array<AnalysisDefinition>] operation results.
705
+ #
706
+ def list_site_analyses(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
707
+ first_page = list_site_analyses_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers)
708
+ first_page.get_all_items
709
+ end
710
+
711
+ #
712
+ # Get Site Analyses
713
+ #
714
+ # Description for Get Site Analyses
715
+ #
716
+ # @param resource_group_name [String] Name of the resource group to which the
717
+ # resource belongs.
718
+ # @param site_name [String] Site Name
719
+ # @param diagnostic_category [String] Diagnostic Category
720
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
721
+ # will be added to the HTTP request.
722
+ #
723
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
724
+ #
725
+ def list_site_analyses_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
726
+ list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
727
+ end
728
+
729
+ #
730
+ # Get Site Analyses
731
+ #
732
+ # Description for Get Site Analyses
733
+ #
734
+ # @param resource_group_name [String] Name of the resource group to which the
735
+ # resource belongs.
736
+ # @param site_name [String] Site Name
737
+ # @param diagnostic_category [String] Diagnostic Category
738
+ # @param [Hash{String => String}] A hash of custom headers that will be added
739
+ # to the HTTP request.
740
+ #
741
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
742
+ #
743
+ def list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
744
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
745
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
746
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
747
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
748
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
749
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
750
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
751
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
752
+
753
+
754
+ request_headers = {}
755
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
756
+
757
+ # Set Headers
758
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
759
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
760
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses'
761
+
762
+ request_url = @base_url || @client.base_url
763
+
764
+ options = {
765
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
766
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id},
767
+ query_params: {'api-version' => @client.api_version},
768
+ headers: request_headers.merge(custom_headers || {}),
769
+ base_url: request_url
770
+ }
771
+ promise = @client.make_request_async(:get, path_template, options)
772
+
773
+ promise = promise.then do |result|
774
+ http_response = result.response
775
+ status_code = http_response.status
776
+ response_content = http_response.body
777
+ unless status_code == 200
778
+ error_model = JSON.load(response_content)
779
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
780
+ end
781
+
782
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
783
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
784
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
785
+ # Deserialize Response
786
+ if status_code == 200
787
+ begin
788
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
789
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticAnalysisCollection.mapper()
790
+ result.body = @client.deserialize(result_mapper, parsed_response)
791
+ rescue Exception => e
792
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
793
+ end
794
+ end
795
+
796
+ result
797
+ end
798
+
799
+ promise.execute
800
+ end
801
+
802
+ #
803
+ # Get Site Analysis
804
+ #
805
+ # Description for Get Site Analysis
806
+ #
807
+ # @param resource_group_name [String] Name of the resource group to which the
808
+ # resource belongs.
809
+ # @param site_name [String] Site Name
810
+ # @param diagnostic_category [String] Diagnostic Category
811
+ # @param analysis_name [String] Analysis Name
812
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
813
+ # will be added to the HTTP request.
814
+ #
815
+ # @return [AnalysisDefinition] operation results.
816
+ #
817
+ def get_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil)
818
+ response = get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:custom_headers).value!
819
+ response.body unless response.nil?
820
+ end
821
+
822
+ #
823
+ # Get Site Analysis
824
+ #
825
+ # Description for Get Site Analysis
826
+ #
827
+ # @param resource_group_name [String] Name of the resource group to which the
828
+ # resource belongs.
829
+ # @param site_name [String] Site Name
830
+ # @param diagnostic_category [String] Diagnostic Category
831
+ # @param analysis_name [String] Analysis Name
832
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
833
+ # will be added to the HTTP request.
834
+ #
835
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
836
+ #
837
+ def get_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil)
838
+ get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:custom_headers).value!
839
+ end
840
+
841
+ #
842
+ # Get Site Analysis
843
+ #
844
+ # Description for Get Site Analysis
845
+ #
846
+ # @param resource_group_name [String] Name of the resource group to which the
847
+ # resource belongs.
848
+ # @param site_name [String] Site Name
849
+ # @param diagnostic_category [String] Diagnostic Category
850
+ # @param analysis_name [String] Analysis Name
851
+ # @param [Hash{String => String}] A hash of custom headers that will be added
852
+ # to the HTTP request.
853
+ #
854
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
855
+ #
856
+ def get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil)
857
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
858
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
859
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
860
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
861
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
862
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
863
+ fail ArgumentError, 'analysis_name is nil' if analysis_name.nil?
864
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
865
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
866
+
867
+
868
+ request_headers = {}
869
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
870
+
871
+ # Set Headers
872
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
873
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
874
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}'
875
+
876
+ request_url = @base_url || @client.base_url
877
+
878
+ options = {
879
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
880
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'subscriptionId' => @client.subscription_id},
881
+ query_params: {'api-version' => @client.api_version},
882
+ headers: request_headers.merge(custom_headers || {}),
883
+ base_url: request_url
884
+ }
885
+ promise = @client.make_request_async(:get, path_template, options)
886
+
887
+ promise = promise.then do |result|
888
+ http_response = result.response
889
+ status_code = http_response.status
890
+ response_content = http_response.body
891
+ unless status_code == 200
892
+ error_model = JSON.load(response_content)
893
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
894
+ end
895
+
896
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
897
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
898
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
899
+ # Deserialize Response
900
+ if status_code == 200
901
+ begin
902
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
903
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AnalysisDefinition.mapper()
904
+ result.body = @client.deserialize(result_mapper, parsed_response)
905
+ rescue Exception => e
906
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
907
+ end
908
+ end
909
+
910
+ result
911
+ end
912
+
913
+ promise.execute
914
+ end
915
+
916
+ #
917
+ # Execute Analysis
918
+ #
919
+ # Description for Execute Analysis
920
+ #
921
+ # @param resource_group_name [String] Name of the resource group to which the
922
+ # resource belongs.
923
+ # @param site_name [String] Site Name
924
+ # @param diagnostic_category [String] Category Name
925
+ # @param analysis_name [String] Analysis Resource Name
926
+ # @param start_time [DateTime] Start Time
927
+ # @param end_time [DateTime] End Time
928
+ # @param time_grain [String] Time Grain
929
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
930
+ # will be added to the HTTP request.
931
+ #
932
+ # @return [DiagnosticAnalysis] operation results.
933
+ #
934
+ def execute_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
935
+ response = execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
936
+ response.body unless response.nil?
937
+ end
938
+
939
+ #
940
+ # Execute Analysis
941
+ #
942
+ # Description for Execute Analysis
943
+ #
944
+ # @param resource_group_name [String] Name of the resource group to which the
945
+ # resource belongs.
946
+ # @param site_name [String] Site Name
947
+ # @param diagnostic_category [String] Category Name
948
+ # @param analysis_name [String] Analysis Resource Name
949
+ # @param start_time [DateTime] Start Time
950
+ # @param end_time [DateTime] End Time
951
+ # @param time_grain [String] Time Grain
952
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
953
+ # will be added to the HTTP request.
954
+ #
955
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
956
+ #
957
+ def execute_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
958
+ execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
959
+ end
960
+
961
+ #
962
+ # Execute Analysis
963
+ #
964
+ # Description for Execute Analysis
965
+ #
966
+ # @param resource_group_name [String] Name of the resource group to which the
967
+ # resource belongs.
968
+ # @param site_name [String] Site Name
969
+ # @param diagnostic_category [String] Category Name
970
+ # @param analysis_name [String] Analysis Resource Name
971
+ # @param start_time [DateTime] Start Time
972
+ # @param end_time [DateTime] End Time
973
+ # @param time_grain [String] Time Grain
974
+ # @param [Hash{String => String}] A hash of custom headers that will be added
975
+ # to the HTTP request.
976
+ #
977
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
978
+ #
979
+ def execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
980
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
981
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
982
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
983
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
984
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
985
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
986
+ fail ArgumentError, 'analysis_name is nil' if analysis_name.nil?
987
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
988
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
989
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
990
+
991
+
992
+ request_headers = {}
993
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
994
+
995
+ # Set Headers
996
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
997
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
998
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute'
999
+
1000
+ request_url = @base_url || @client.base_url
1001
+
1002
+ options = {
1003
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1004
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'subscriptionId' => @client.subscription_id},
1005
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
1006
+ headers: request_headers.merge(custom_headers || {}),
1007
+ base_url: request_url
1008
+ }
1009
+ promise = @client.make_request_async(:post, path_template, options)
1010
+
1011
+ promise = promise.then do |result|
1012
+ http_response = result.response
1013
+ status_code = http_response.status
1014
+ response_content = http_response.body
1015
+ unless status_code == 200
1016
+ error_model = JSON.load(response_content)
1017
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1018
+ end
1019
+
1020
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1021
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1022
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1023
+ # Deserialize Response
1024
+ if status_code == 200
1025
+ begin
1026
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1027
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticAnalysis.mapper()
1028
+ result.body = @client.deserialize(result_mapper, parsed_response)
1029
+ rescue Exception => e
1030
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1031
+ end
1032
+ end
1033
+
1034
+ result
1035
+ end
1036
+
1037
+ promise.execute
1038
+ end
1039
+
1040
+ #
1041
+ # Get Detectors
1042
+ #
1043
+ # Description for Get Detectors
1044
+ #
1045
+ # @param resource_group_name [String] Name of the resource group to which the
1046
+ # resource belongs.
1047
+ # @param site_name [String] Site Name
1048
+ # @param diagnostic_category [String] Diagnostic Category
1049
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1050
+ # will be added to the HTTP request.
1051
+ #
1052
+ # @return [Array<DetectorDefinition>] operation results.
1053
+ #
1054
+ def list_site_detectors(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
1055
+ first_page = list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers)
1056
+ first_page.get_all_items
1057
+ end
1058
+
1059
+ #
1060
+ # Get Detectors
1061
+ #
1062
+ # Description for Get Detectors
1063
+ #
1064
+ # @param resource_group_name [String] Name of the resource group to which the
1065
+ # resource belongs.
1066
+ # @param site_name [String] Site Name
1067
+ # @param diagnostic_category [String] Diagnostic Category
1068
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1069
+ # will be added to the HTTP request.
1070
+ #
1071
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1072
+ #
1073
+ def list_site_detectors_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
1074
+ list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
1075
+ end
1076
+
1077
+ #
1078
+ # Get Detectors
1079
+ #
1080
+ # Description for Get Detectors
1081
+ #
1082
+ # @param resource_group_name [String] Name of the resource group to which the
1083
+ # resource belongs.
1084
+ # @param site_name [String] Site Name
1085
+ # @param diagnostic_category [String] Diagnostic Category
1086
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1087
+ # to the HTTP request.
1088
+ #
1089
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1090
+ #
1091
+ def list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
1092
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1093
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1094
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1095
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1096
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1097
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
1098
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1099
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1100
+
1101
+
1102
+ request_headers = {}
1103
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1104
+
1105
+ # Set Headers
1106
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1107
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1108
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors'
1109
+
1110
+ request_url = @base_url || @client.base_url
1111
+
1112
+ options = {
1113
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1114
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id},
1115
+ query_params: {'api-version' => @client.api_version},
1116
+ headers: request_headers.merge(custom_headers || {}),
1117
+ base_url: request_url
1118
+ }
1119
+ promise = @client.make_request_async(:get, path_template, options)
1120
+
1121
+ promise = promise.then do |result|
1122
+ http_response = result.response
1123
+ status_code = http_response.status
1124
+ response_content = http_response.body
1125
+ unless status_code == 200
1126
+ error_model = JSON.load(response_content)
1127
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1128
+ end
1129
+
1130
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1131
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1132
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1133
+ # Deserialize Response
1134
+ if status_code == 200
1135
+ begin
1136
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1137
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticDetectorCollection.mapper()
1138
+ result.body = @client.deserialize(result_mapper, parsed_response)
1139
+ rescue Exception => e
1140
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1141
+ end
1142
+ end
1143
+
1144
+ result
1145
+ end
1146
+
1147
+ promise.execute
1148
+ end
1149
+
1150
+ #
1151
+ # Get Detector
1152
+ #
1153
+ # Description for Get Detector
1154
+ #
1155
+ # @param resource_group_name [String] Name of the resource group to which the
1156
+ # resource belongs.
1157
+ # @param site_name [String] Site Name
1158
+ # @param diagnostic_category [String] Diagnostic Category
1159
+ # @param detector_name [String] Detector Name
1160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1161
+ # will be added to the HTTP request.
1162
+ #
1163
+ # @return [DetectorDefinition] operation results.
1164
+ #
1165
+ def get_site_detector(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil)
1166
+ response = get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:custom_headers).value!
1167
+ response.body unless response.nil?
1168
+ end
1169
+
1170
+ #
1171
+ # Get Detector
1172
+ #
1173
+ # Description for Get Detector
1174
+ #
1175
+ # @param resource_group_name [String] Name of the resource group to which the
1176
+ # resource belongs.
1177
+ # @param site_name [String] Site Name
1178
+ # @param diagnostic_category [String] Diagnostic Category
1179
+ # @param detector_name [String] Detector Name
1180
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1181
+ # will be added to the HTTP request.
1182
+ #
1183
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1184
+ #
1185
+ def get_site_detector_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil)
1186
+ get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:custom_headers).value!
1187
+ end
1188
+
1189
+ #
1190
+ # Get Detector
1191
+ #
1192
+ # Description for Get Detector
1193
+ #
1194
+ # @param resource_group_name [String] Name of the resource group to which the
1195
+ # resource belongs.
1196
+ # @param site_name [String] Site Name
1197
+ # @param diagnostic_category [String] Diagnostic Category
1198
+ # @param detector_name [String] Detector Name
1199
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1200
+ # to the HTTP request.
1201
+ #
1202
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1203
+ #
1204
+ def get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil)
1205
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1206
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1207
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1208
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1209
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1210
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
1211
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
1212
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1213
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1214
+
1215
+
1216
+ request_headers = {}
1217
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1218
+
1219
+ # Set Headers
1220
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1221
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1222
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}'
1223
+
1224
+ request_url = @base_url || @client.base_url
1225
+
1226
+ options = {
1227
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1228
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id},
1229
+ query_params: {'api-version' => @client.api_version},
1230
+ headers: request_headers.merge(custom_headers || {}),
1231
+ base_url: request_url
1232
+ }
1233
+ promise = @client.make_request_async(:get, path_template, options)
1234
+
1235
+ promise = promise.then do |result|
1236
+ http_response = result.response
1237
+ status_code = http_response.status
1238
+ response_content = http_response.body
1239
+ unless status_code == 200
1240
+ error_model = JSON.load(response_content)
1241
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1242
+ end
1243
+
1244
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1245
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1246
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1247
+ # Deserialize Response
1248
+ if status_code == 200
1249
+ begin
1250
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1251
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorDefinition.mapper()
1252
+ result.body = @client.deserialize(result_mapper, parsed_response)
1253
+ rescue Exception => e
1254
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1255
+ end
1256
+ end
1257
+
1258
+ result
1259
+ end
1260
+
1261
+ promise.execute
1262
+ end
1263
+
1264
+ #
1265
+ # Execute Detector
1266
+ #
1267
+ # Description for Execute Detector
1268
+ #
1269
+ # @param resource_group_name [String] Name of the resource group to which the
1270
+ # resource belongs.
1271
+ # @param site_name [String] Site Name
1272
+ # @param detector_name [String] Detector Resource Name
1273
+ # @param diagnostic_category [String] Category Name
1274
+ # @param start_time [DateTime] Start Time
1275
+ # @param end_time [DateTime] End Time
1276
+ # @param time_grain [String] Time Grain
1277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1278
+ # will be added to the HTTP request.
1279
+ #
1280
+ # @return [DiagnosticDetectorResponse] operation results.
1281
+ #
1282
+ def execute_site_detector(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
1283
+ response = execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
1284
+ response.body unless response.nil?
1285
+ end
1286
+
1287
+ #
1288
+ # Execute Detector
1289
+ #
1290
+ # Description for Execute Detector
1291
+ #
1292
+ # @param resource_group_name [String] Name of the resource group to which the
1293
+ # resource belongs.
1294
+ # @param site_name [String] Site Name
1295
+ # @param detector_name [String] Detector Resource Name
1296
+ # @param diagnostic_category [String] Category Name
1297
+ # @param start_time [DateTime] Start Time
1298
+ # @param end_time [DateTime] End Time
1299
+ # @param time_grain [String] Time Grain
1300
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1301
+ # will be added to the HTTP request.
1302
+ #
1303
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1304
+ #
1305
+ def execute_site_detector_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
1306
+ execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
1307
+ end
1308
+
1309
+ #
1310
+ # Execute Detector
1311
+ #
1312
+ # Description for Execute Detector
1313
+ #
1314
+ # @param resource_group_name [String] Name of the resource group to which the
1315
+ # resource belongs.
1316
+ # @param site_name [String] Site Name
1317
+ # @param detector_name [String] Detector Resource Name
1318
+ # @param diagnostic_category [String] Category Name
1319
+ # @param start_time [DateTime] Start Time
1320
+ # @param end_time [DateTime] End Time
1321
+ # @param time_grain [String] Time Grain
1322
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1323
+ # to the HTTP request.
1324
+ #
1325
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1326
+ #
1327
+ def execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
1328
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1329
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1330
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1331
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1332
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1333
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
1334
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
1335
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
1336
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1337
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1338
+
1339
+
1340
+ request_headers = {}
1341
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1342
+
1343
+ # Set Headers
1344
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1345
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1346
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute'
1347
+
1348
+ request_url = @base_url || @client.base_url
1349
+
1350
+ options = {
1351
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1352
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id},
1353
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
1354
+ headers: request_headers.merge(custom_headers || {}),
1355
+ base_url: request_url
1356
+ }
1357
+ promise = @client.make_request_async(:post, path_template, options)
1358
+
1359
+ promise = promise.then do |result|
1360
+ http_response = result.response
1361
+ status_code = http_response.status
1362
+ response_content = http_response.body
1363
+ unless status_code == 200
1364
+ error_model = JSON.load(response_content)
1365
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1366
+ end
1367
+
1368
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1369
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1370
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1371
+ # Deserialize Response
1372
+ if status_code == 200
1373
+ begin
1374
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1375
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticDetectorResponse.mapper()
1376
+ result.body = @client.deserialize(result_mapper, parsed_response)
1377
+ rescue Exception => e
1378
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1379
+ end
1380
+ end
1381
+
1382
+ result
1383
+ end
1384
+
1385
+ promise.execute
1386
+ end
1387
+
1388
+ #
1389
+ # List Site Detector Responses
1390
+ #
1391
+ # Description for List Site Detector Responses
1392
+ #
1393
+ # @param resource_group_name [String] Name of the resource group to which the
1394
+ # resource belongs.
1395
+ # @param site_name [String] Site Name
1396
+ # @param slot [String] Slot Name
1397
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1398
+ # will be added to the HTTP request.
1399
+ #
1400
+ # @return [Array<DetectorResponse>] operation results.
1401
+ #
1402
+ def list_site_detector_responses_slot(resource_group_name, site_name, slot, custom_headers:nil)
1403
+ first_page = list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:custom_headers)
1404
+ first_page.get_all_items
1405
+ end
1406
+
1407
+ #
1408
+ # List Site Detector Responses
1409
+ #
1410
+ # Description for List Site Detector Responses
1411
+ #
1412
+ # @param resource_group_name [String] Name of the resource group to which the
1413
+ # resource belongs.
1414
+ # @param site_name [String] Site Name
1415
+ # @param slot [String] Slot Name
1416
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1417
+ # will be added to the HTTP request.
1418
+ #
1419
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1420
+ #
1421
+ def list_site_detector_responses_slot_with_http_info(resource_group_name, site_name, slot, custom_headers:nil)
1422
+ list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value!
1423
+ end
1424
+
1425
+ #
1426
+ # List Site Detector Responses
1427
+ #
1428
+ # Description for List Site Detector Responses
1429
+ #
1430
+ # @param resource_group_name [String] Name of the resource group to which the
1431
+ # resource belongs.
1432
+ # @param site_name [String] Site Name
1433
+ # @param slot [String] Slot Name
1434
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1435
+ # to the HTTP request.
1436
+ #
1437
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1438
+ #
1439
+ def list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:nil)
1440
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1441
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1442
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1443
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1444
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1445
+ fail ArgumentError, 'slot is nil' if slot.nil?
1446
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1447
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1448
+
1449
+
1450
+ request_headers = {}
1451
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1452
+
1453
+ # Set Headers
1454
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1455
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1456
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors'
1457
+
1458
+ request_url = @base_url || @client.base_url
1459
+
1460
+ options = {
1461
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1462
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
1463
+ query_params: {'api-version' => @client.api_version},
1464
+ headers: request_headers.merge(custom_headers || {}),
1465
+ base_url: request_url
1466
+ }
1467
+ promise = @client.make_request_async(:get, path_template, options)
1468
+
1469
+ promise = promise.then do |result|
1470
+ http_response = result.response
1471
+ status_code = http_response.status
1472
+ response_content = http_response.body
1473
+ unless status_code == 200
1474
+ error_model = JSON.load(response_content)
1475
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1476
+ end
1477
+
1478
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1479
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1480
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1481
+ # Deserialize Response
1482
+ if status_code == 200
1483
+ begin
1484
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1485
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponseCollection.mapper()
1486
+ result.body = @client.deserialize(result_mapper, parsed_response)
1487
+ rescue Exception => e
1488
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1489
+ end
1490
+ end
1491
+
1492
+ result
1493
+ end
1494
+
1495
+ promise.execute
1496
+ end
1497
+
1498
+ #
1499
+ # Get site detector response
1500
+ #
1501
+ # Description for Get site detector response
1502
+ #
1503
+ # @param resource_group_name [String] Name of the resource group to which the
1504
+ # resource belongs.
1505
+ # @param site_name [String] Site Name
1506
+ # @param detector_name [String] Detector Resource Name
1507
+ # @param slot [String] Slot Name
1508
+ # @param start_time [DateTime] Start Time
1509
+ # @param end_time [DateTime] End Time
1510
+ # @param time_grain [String] Time Grain
1511
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1512
+ # will be added to the HTTP request.
1513
+ #
1514
+ # @return [DetectorResponse] operation results.
1515
+ #
1516
+ def get_site_detector_response_slot(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
1517
+ response = get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
1518
+ response.body unless response.nil?
1519
+ end
1520
+
1521
+ #
1522
+ # Get site detector response
1523
+ #
1524
+ # Description for Get site detector response
1525
+ #
1526
+ # @param resource_group_name [String] Name of the resource group to which the
1527
+ # resource belongs.
1528
+ # @param site_name [String] Site Name
1529
+ # @param detector_name [String] Detector Resource Name
1530
+ # @param slot [String] Slot Name
1531
+ # @param start_time [DateTime] Start Time
1532
+ # @param end_time [DateTime] End Time
1533
+ # @param time_grain [String] Time Grain
1534
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1535
+ # will be added to the HTTP request.
1536
+ #
1537
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1538
+ #
1539
+ def get_site_detector_response_slot_with_http_info(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
1540
+ get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
1541
+ end
1542
+
1543
+ #
1544
+ # Get site detector response
1545
+ #
1546
+ # Description for Get site detector response
1547
+ #
1548
+ # @param resource_group_name [String] Name of the resource group to which the
1549
+ # resource belongs.
1550
+ # @param site_name [String] Site Name
1551
+ # @param detector_name [String] Detector Resource Name
1552
+ # @param slot [String] Slot Name
1553
+ # @param start_time [DateTime] Start Time
1554
+ # @param end_time [DateTime] End Time
1555
+ # @param time_grain [String] Time Grain
1556
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1557
+ # to the HTTP request.
1558
+ #
1559
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1560
+ #
1561
+ def get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
1562
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1563
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1564
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1565
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1566
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1567
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
1568
+ fail ArgumentError, 'slot is nil' if slot.nil?
1569
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
1570
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1571
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1572
+
1573
+
1574
+ request_headers = {}
1575
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1576
+
1577
+ # Set Headers
1578
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1579
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1580
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}'
1581
+
1582
+ request_url = @base_url || @client.base_url
1583
+
1584
+ options = {
1585
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1586
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
1587
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
1588
+ headers: request_headers.merge(custom_headers || {}),
1589
+ base_url: request_url
1590
+ }
1591
+ promise = @client.make_request_async(:get, path_template, options)
1592
+
1593
+ promise = promise.then do |result|
1594
+ http_response = result.response
1595
+ status_code = http_response.status
1596
+ response_content = http_response.body
1597
+ unless status_code == 200
1598
+ error_model = JSON.load(response_content)
1599
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1600
+ end
1601
+
1602
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1603
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1604
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1605
+ # Deserialize Response
1606
+ if status_code == 200
1607
+ begin
1608
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1609
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponse.mapper()
1610
+ result.body = @client.deserialize(result_mapper, parsed_response)
1611
+ rescue Exception => e
1612
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1613
+ end
1614
+ end
1615
+
1616
+ result
1617
+ end
1618
+
1619
+ promise.execute
1620
+ end
1621
+
1622
+ #
1623
+ # Get Diagnostics Categories
1624
+ #
1625
+ # Description for Get Diagnostics Categories
1626
+ #
1627
+ # @param resource_group_name [String] Name of the resource group to which the
1628
+ # resource belongs.
1629
+ # @param site_name [String] Site Name
1630
+ # @param slot [String] Slot Name
1631
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1632
+ # will be added to the HTTP request.
1633
+ #
1634
+ # @return [Array<DiagnosticCategory>] operation results.
1635
+ #
1636
+ def list_site_diagnostic_categories_slot(resource_group_name, site_name, slot, custom_headers:nil)
1637
+ first_page = list_site_diagnostic_categories_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:custom_headers)
1638
+ first_page.get_all_items
1639
+ end
1640
+
1641
+ #
1642
+ # Get Diagnostics Categories
1643
+ #
1644
+ # Description for Get Diagnostics Categories
1645
+ #
1646
+ # @param resource_group_name [String] Name of the resource group to which the
1647
+ # resource belongs.
1648
+ # @param site_name [String] Site Name
1649
+ # @param slot [String] Slot Name
1650
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1651
+ # will be added to the HTTP request.
1652
+ #
1653
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1654
+ #
1655
+ def list_site_diagnostic_categories_slot_with_http_info(resource_group_name, site_name, slot, custom_headers:nil)
1656
+ list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value!
1657
+ end
1658
+
1659
+ #
1660
+ # Get Diagnostics Categories
1661
+ #
1662
+ # Description for Get Diagnostics Categories
1663
+ #
1664
+ # @param resource_group_name [String] Name of the resource group to which the
1665
+ # resource belongs.
1666
+ # @param site_name [String] Site Name
1667
+ # @param slot [String] Slot Name
1668
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1669
+ # to the HTTP request.
1670
+ #
1671
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1672
+ #
1673
+ def list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers:nil)
1674
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1675
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1676
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1677
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1678
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1679
+ fail ArgumentError, 'slot is nil' if slot.nil?
1680
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1681
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1682
+
1683
+
1684
+ request_headers = {}
1685
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1686
+
1687
+ # Set Headers
1688
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1689
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1690
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics'
1691
+
1692
+ request_url = @base_url || @client.base_url
1693
+
1694
+ options = {
1695
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1696
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
1697
+ query_params: {'api-version' => @client.api_version},
1698
+ headers: request_headers.merge(custom_headers || {}),
1699
+ base_url: request_url
1700
+ }
1701
+ promise = @client.make_request_async(:get, path_template, options)
1702
+
1703
+ promise = promise.then do |result|
1704
+ http_response = result.response
1705
+ status_code = http_response.status
1706
+ response_content = http_response.body
1707
+ unless status_code == 200
1708
+ error_model = JSON.load(response_content)
1709
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1710
+ end
1711
+
1712
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1713
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1714
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1715
+ # Deserialize Response
1716
+ if status_code == 200
1717
+ begin
1718
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1719
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticCategoryCollection.mapper()
1720
+ result.body = @client.deserialize(result_mapper, parsed_response)
1721
+ rescue Exception => e
1722
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1723
+ end
1724
+ end
1725
+
1726
+ result
1727
+ end
1728
+
1729
+ promise.execute
1730
+ end
1731
+
1732
+ #
1733
+ # Get Diagnostics Category
1734
+ #
1735
+ # Description for Get Diagnostics Category
1736
+ #
1737
+ # @param resource_group_name [String] Name of the resource group to which the
1738
+ # resource belongs.
1739
+ # @param site_name [String] Site Name
1740
+ # @param diagnostic_category [String] Diagnostic Category
1741
+ # @param slot [String] Slot Name
1742
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1743
+ # will be added to the HTTP request.
1744
+ #
1745
+ # @return [DiagnosticCategory] operation results.
1746
+ #
1747
+ def get_site_diagnostic_category_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
1748
+ response = get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value!
1749
+ response.body unless response.nil?
1750
+ end
1751
+
1752
+ #
1753
+ # Get Diagnostics Category
1754
+ #
1755
+ # Description for Get Diagnostics Category
1756
+ #
1757
+ # @param resource_group_name [String] Name of the resource group to which the
1758
+ # resource belongs.
1759
+ # @param site_name [String] Site Name
1760
+ # @param diagnostic_category [String] Diagnostic Category
1761
+ # @param slot [String] Slot Name
1762
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1763
+ # will be added to the HTTP request.
1764
+ #
1765
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1766
+ #
1767
+ def get_site_diagnostic_category_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
1768
+ get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value!
1769
+ end
1770
+
1771
+ #
1772
+ # Get Diagnostics Category
1773
+ #
1774
+ # Description for Get Diagnostics Category
1775
+ #
1776
+ # @param resource_group_name [String] Name of the resource group to which the
1777
+ # resource belongs.
1778
+ # @param site_name [String] Site Name
1779
+ # @param diagnostic_category [String] Diagnostic Category
1780
+ # @param slot [String] Slot Name
1781
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1782
+ # to the HTTP request.
1783
+ #
1784
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1785
+ #
1786
+ def get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
1787
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1788
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1789
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1790
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1791
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1792
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
1793
+ fail ArgumentError, 'slot is nil' if slot.nil?
1794
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1795
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1796
+
1797
+
1798
+ request_headers = {}
1799
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1800
+
1801
+ # Set Headers
1802
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1803
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1804
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}'
1805
+
1806
+ request_url = @base_url || @client.base_url
1807
+
1808
+ options = {
1809
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1810
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id},
1811
+ query_params: {'api-version' => @client.api_version},
1812
+ headers: request_headers.merge(custom_headers || {}),
1813
+ base_url: request_url
1814
+ }
1815
+ promise = @client.make_request_async(:get, path_template, options)
1816
+
1817
+ promise = promise.then do |result|
1818
+ http_response = result.response
1819
+ status_code = http_response.status
1820
+ response_content = http_response.body
1821
+ unless status_code == 200
1822
+ error_model = JSON.load(response_content)
1823
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1824
+ end
1825
+
1826
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1827
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1828
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1829
+ # Deserialize Response
1830
+ if status_code == 200
1831
+ begin
1832
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1833
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticCategory.mapper()
1834
+ result.body = @client.deserialize(result_mapper, parsed_response)
1835
+ rescue Exception => e
1836
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1837
+ end
1838
+ end
1839
+
1840
+ result
1841
+ end
1842
+
1843
+ promise.execute
1844
+ end
1845
+
1846
+ #
1847
+ # Get Site Analyses
1848
+ #
1849
+ # Description for Get Site Analyses
1850
+ #
1851
+ # @param resource_group_name [String] Name of the resource group to which the
1852
+ # resource belongs.
1853
+ # @param site_name [String] Site Name
1854
+ # @param diagnostic_category [String] Diagnostic Category
1855
+ # @param slot [String] Slot Name
1856
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1857
+ # will be added to the HTTP request.
1858
+ #
1859
+ # @return [Array<AnalysisDefinition>] operation results.
1860
+ #
1861
+ def list_site_analyses_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
1862
+ first_page = list_site_analyses_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers)
1863
+ first_page.get_all_items
1864
+ end
1865
+
1866
+ #
1867
+ # Get Site Analyses
1868
+ #
1869
+ # Description for Get Site Analyses
1870
+ #
1871
+ # @param resource_group_name [String] Name of the resource group to which the
1872
+ # resource belongs.
1873
+ # @param site_name [String] Site Name
1874
+ # @param diagnostic_category [String] Diagnostic Category
1875
+ # @param slot [String] Slot Name
1876
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1877
+ # will be added to the HTTP request.
1878
+ #
1879
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1880
+ #
1881
+ def list_site_analyses_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
1882
+ list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value!
1883
+ end
1884
+
1885
+ #
1886
+ # Get Site Analyses
1887
+ #
1888
+ # Description for Get Site Analyses
1889
+ #
1890
+ # @param resource_group_name [String] Name of the resource group to which the
1891
+ # resource belongs.
1892
+ # @param site_name [String] Site Name
1893
+ # @param diagnostic_category [String] Diagnostic Category
1894
+ # @param slot [String] Slot Name
1895
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1896
+ # to the HTTP request.
1897
+ #
1898
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1899
+ #
1900
+ def list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
1901
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1902
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1903
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1904
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1905
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
1906
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
1907
+ fail ArgumentError, 'slot is nil' if slot.nil?
1908
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1909
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1910
+
1911
+
1912
+ request_headers = {}
1913
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1914
+
1915
+ # Set Headers
1916
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1917
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1918
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses'
1919
+
1920
+ request_url = @base_url || @client.base_url
1921
+
1922
+ options = {
1923
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1924
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id},
1925
+ query_params: {'api-version' => @client.api_version},
1926
+ headers: request_headers.merge(custom_headers || {}),
1927
+ base_url: request_url
1928
+ }
1929
+ promise = @client.make_request_async(:get, path_template, options)
1930
+
1931
+ promise = promise.then do |result|
1932
+ http_response = result.response
1933
+ status_code = http_response.status
1934
+ response_content = http_response.body
1935
+ unless status_code == 200
1936
+ error_model = JSON.load(response_content)
1937
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1938
+ end
1939
+
1940
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1941
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1942
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1943
+ # Deserialize Response
1944
+ if status_code == 200
1945
+ begin
1946
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1947
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticAnalysisCollection.mapper()
1948
+ result.body = @client.deserialize(result_mapper, parsed_response)
1949
+ rescue Exception => e
1950
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1951
+ end
1952
+ end
1953
+
1954
+ result
1955
+ end
1956
+
1957
+ promise.execute
1958
+ end
1959
+
1960
+ #
1961
+ # Get Site Analysis
1962
+ #
1963
+ # Description for Get Site Analysis
1964
+ #
1965
+ # @param resource_group_name [String] Name of the resource group to which the
1966
+ # resource belongs.
1967
+ # @param site_name [String] Site Name
1968
+ # @param diagnostic_category [String] Diagnostic Category
1969
+ # @param analysis_name [String] Analysis Name
1970
+ # @param slot [String] Slot - optional
1971
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1972
+ # will be added to the HTTP request.
1973
+ #
1974
+ # @return [AnalysisDefinition] operation results.
1975
+ #
1976
+ def get_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:nil)
1977
+ response = get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:custom_headers).value!
1978
+ response.body unless response.nil?
1979
+ end
1980
+
1981
+ #
1982
+ # Get Site Analysis
1983
+ #
1984
+ # Description for Get Site Analysis
1985
+ #
1986
+ # @param resource_group_name [String] Name of the resource group to which the
1987
+ # resource belongs.
1988
+ # @param site_name [String] Site Name
1989
+ # @param diagnostic_category [String] Diagnostic Category
1990
+ # @param analysis_name [String] Analysis Name
1991
+ # @param slot [String] Slot - optional
1992
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1993
+ # will be added to the HTTP request.
1994
+ #
1995
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1996
+ #
1997
+ def get_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:nil)
1998
+ get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:custom_headers).value!
1999
+ end
2000
+
2001
+ #
2002
+ # Get Site Analysis
2003
+ #
2004
+ # Description for Get Site Analysis
2005
+ #
2006
+ # @param resource_group_name [String] Name of the resource group to which the
2007
+ # resource belongs.
2008
+ # @param site_name [String] Site Name
2009
+ # @param diagnostic_category [String] Diagnostic Category
2010
+ # @param analysis_name [String] Analysis Name
2011
+ # @param slot [String] Slot - optional
2012
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2013
+ # to the HTTP request.
2014
+ #
2015
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2016
+ #
2017
+ def get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:nil)
2018
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2019
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2020
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2021
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2022
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
2023
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
2024
+ fail ArgumentError, 'analysis_name is nil' if analysis_name.nil?
2025
+ fail ArgumentError, 'slot is nil' if slot.nil?
2026
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2027
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2028
+
2029
+
2030
+ request_headers = {}
2031
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2032
+
2033
+ # Set Headers
2034
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2035
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2036
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}'
2037
+
2038
+ request_url = @base_url || @client.base_url
2039
+
2040
+ options = {
2041
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2042
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
2043
+ query_params: {'api-version' => @client.api_version},
2044
+ headers: request_headers.merge(custom_headers || {}),
2045
+ base_url: request_url
2046
+ }
2047
+ promise = @client.make_request_async(:get, path_template, options)
2048
+
2049
+ promise = promise.then do |result|
2050
+ http_response = result.response
2051
+ status_code = http_response.status
2052
+ response_content = http_response.body
2053
+ unless status_code == 200
2054
+ error_model = JSON.load(response_content)
2055
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2056
+ end
2057
+
2058
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2059
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2060
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2061
+ # Deserialize Response
2062
+ if status_code == 200
2063
+ begin
2064
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2065
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AnalysisDefinition.mapper()
2066
+ result.body = @client.deserialize(result_mapper, parsed_response)
2067
+ rescue Exception => e
2068
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2069
+ end
2070
+ end
2071
+
2072
+ result
2073
+ end
2074
+
2075
+ promise.execute
2076
+ end
2077
+
2078
+ #
2079
+ # Execute Analysis
2080
+ #
2081
+ # Description for Execute Analysis
2082
+ #
2083
+ # @param resource_group_name [String] Name of the resource group to which the
2084
+ # resource belongs.
2085
+ # @param site_name [String] Site Name
2086
+ # @param diagnostic_category [String] Category Name
2087
+ # @param analysis_name [String] Analysis Resource Name
2088
+ # @param slot [String] Slot Name
2089
+ # @param start_time [DateTime] Start Time
2090
+ # @param end_time [DateTime] End Time
2091
+ # @param time_grain [String] Time Grain
2092
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2093
+ # will be added to the HTTP request.
2094
+ #
2095
+ # @return [DiagnosticAnalysis] operation results.
2096
+ #
2097
+ def execute_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
2098
+ response = execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
2099
+ response.body unless response.nil?
2100
+ end
2101
+
2102
+ #
2103
+ # Execute Analysis
2104
+ #
2105
+ # Description for Execute Analysis
2106
+ #
2107
+ # @param resource_group_name [String] Name of the resource group to which the
2108
+ # resource belongs.
2109
+ # @param site_name [String] Site Name
2110
+ # @param diagnostic_category [String] Category Name
2111
+ # @param analysis_name [String] Analysis Resource Name
2112
+ # @param slot [String] Slot Name
2113
+ # @param start_time [DateTime] Start Time
2114
+ # @param end_time [DateTime] End Time
2115
+ # @param time_grain [String] Time Grain
2116
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2117
+ # will be added to the HTTP request.
2118
+ #
2119
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2120
+ #
2121
+ def execute_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
2122
+ execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
2123
+ end
2124
+
2125
+ #
2126
+ # Execute Analysis
2127
+ #
2128
+ # Description for Execute Analysis
2129
+ #
2130
+ # @param resource_group_name [String] Name of the resource group to which the
2131
+ # resource belongs.
2132
+ # @param site_name [String] Site Name
2133
+ # @param diagnostic_category [String] Category Name
2134
+ # @param analysis_name [String] Analysis Resource Name
2135
+ # @param slot [String] Slot Name
2136
+ # @param start_time [DateTime] Start Time
2137
+ # @param end_time [DateTime] End Time
2138
+ # @param time_grain [String] Time Grain
2139
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2140
+ # to the HTTP request.
2141
+ #
2142
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2143
+ #
2144
+ def execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
2145
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2146
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2147
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2148
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2149
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
2150
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
2151
+ fail ArgumentError, 'analysis_name is nil' if analysis_name.nil?
2152
+ fail ArgumentError, 'slot is nil' if slot.nil?
2153
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
2154
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2155
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2156
+
2157
+
2158
+ request_headers = {}
2159
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2160
+
2161
+ # Set Headers
2162
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2163
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2164
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute'
2165
+
2166
+ request_url = @base_url || @client.base_url
2167
+
2168
+ options = {
2169
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2170
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
2171
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
2172
+ headers: request_headers.merge(custom_headers || {}),
2173
+ base_url: request_url
2174
+ }
2175
+ promise = @client.make_request_async(:post, path_template, options)
2176
+
2177
+ promise = promise.then do |result|
2178
+ http_response = result.response
2179
+ status_code = http_response.status
2180
+ response_content = http_response.body
2181
+ unless status_code == 200
2182
+ error_model = JSON.load(response_content)
2183
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2184
+ end
2185
+
2186
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2187
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2188
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2189
+ # Deserialize Response
2190
+ if status_code == 200
2191
+ begin
2192
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2193
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticAnalysis.mapper()
2194
+ result.body = @client.deserialize(result_mapper, parsed_response)
2195
+ rescue Exception => e
2196
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2197
+ end
2198
+ end
2199
+
2200
+ result
2201
+ end
2202
+
2203
+ promise.execute
2204
+ end
2205
+
2206
+ #
2207
+ # Get Detectors
2208
+ #
2209
+ # Description for Get Detectors
2210
+ #
2211
+ # @param resource_group_name [String] Name of the resource group to which the
2212
+ # resource belongs.
2213
+ # @param site_name [String] Site Name
2214
+ # @param diagnostic_category [String] Diagnostic Category
2215
+ # @param slot [String] Slot Name
2216
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2217
+ # will be added to the HTTP request.
2218
+ #
2219
+ # @return [Array<DetectorDefinition>] operation results.
2220
+ #
2221
+ def list_site_detectors_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
2222
+ first_page = list_site_detectors_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers)
2223
+ first_page.get_all_items
2224
+ end
2225
+
2226
+ #
2227
+ # Get Detectors
2228
+ #
2229
+ # Description for Get Detectors
2230
+ #
2231
+ # @param resource_group_name [String] Name of the resource group to which the
2232
+ # resource belongs.
2233
+ # @param site_name [String] Site Name
2234
+ # @param diagnostic_category [String] Diagnostic Category
2235
+ # @param slot [String] Slot Name
2236
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2237
+ # will be added to the HTTP request.
2238
+ #
2239
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2240
+ #
2241
+ def list_site_detectors_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
2242
+ list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value!
2243
+ end
2244
+
2245
+ #
2246
+ # Get Detectors
2247
+ #
2248
+ # Description for Get Detectors
2249
+ #
2250
+ # @param resource_group_name [String] Name of the resource group to which the
2251
+ # resource belongs.
2252
+ # @param site_name [String] Site Name
2253
+ # @param diagnostic_category [String] Diagnostic Category
2254
+ # @param slot [String] Slot Name
2255
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2256
+ # to the HTTP request.
2257
+ #
2258
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2259
+ #
2260
+ def list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
2261
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2262
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2263
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2264
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2265
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
2266
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
2267
+ fail ArgumentError, 'slot is nil' if slot.nil?
2268
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2269
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2270
+
2271
+
2272
+ request_headers = {}
2273
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2274
+
2275
+ # Set Headers
2276
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2277
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2278
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors'
2279
+
2280
+ request_url = @base_url || @client.base_url
2281
+
2282
+ options = {
2283
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2284
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id},
2285
+ query_params: {'api-version' => @client.api_version},
2286
+ headers: request_headers.merge(custom_headers || {}),
2287
+ base_url: request_url
2288
+ }
2289
+ promise = @client.make_request_async(:get, path_template, options)
2290
+
2291
+ promise = promise.then do |result|
2292
+ http_response = result.response
2293
+ status_code = http_response.status
2294
+ response_content = http_response.body
2295
+ unless status_code == 200
2296
+ error_model = JSON.load(response_content)
2297
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2298
+ end
2299
+
2300
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2301
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2302
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2303
+ # Deserialize Response
2304
+ if status_code == 200
2305
+ begin
2306
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2307
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticDetectorCollection.mapper()
2308
+ result.body = @client.deserialize(result_mapper, parsed_response)
2309
+ rescue Exception => e
2310
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2311
+ end
2312
+ end
2313
+
2314
+ result
2315
+ end
2316
+
2317
+ promise.execute
2318
+ end
2319
+
2320
+ #
2321
+ # Get Detector
2322
+ #
2323
+ # Description for Get Detector
2324
+ #
2325
+ # @param resource_group_name [String] Name of the resource group to which the
2326
+ # resource belongs.
2327
+ # @param site_name [String] Site Name
2328
+ # @param diagnostic_category [String] Diagnostic Category
2329
+ # @param detector_name [String] Detector Name
2330
+ # @param slot [String] Slot Name
2331
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2332
+ # will be added to the HTTP request.
2333
+ #
2334
+ # @return [DetectorDefinition] operation results.
2335
+ #
2336
+ def get_site_detector_slot(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil)
2337
+ response = get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers).value!
2338
+ response.body unless response.nil?
2339
+ end
2340
+
2341
+ #
2342
+ # Get Detector
2343
+ #
2344
+ # Description for Get Detector
2345
+ #
2346
+ # @param resource_group_name [String] Name of the resource group to which the
2347
+ # resource belongs.
2348
+ # @param site_name [String] Site Name
2349
+ # @param diagnostic_category [String] Diagnostic Category
2350
+ # @param detector_name [String] Detector Name
2351
+ # @param slot [String] Slot Name
2352
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2353
+ # will be added to the HTTP request.
2354
+ #
2355
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2356
+ #
2357
+ def get_site_detector_slot_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil)
2358
+ get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers).value!
2359
+ end
2360
+
2361
+ #
2362
+ # Get Detector
2363
+ #
2364
+ # Description for Get Detector
2365
+ #
2366
+ # @param resource_group_name [String] Name of the resource group to which the
2367
+ # resource belongs.
2368
+ # @param site_name [String] Site Name
2369
+ # @param diagnostic_category [String] Diagnostic Category
2370
+ # @param detector_name [String] Detector Name
2371
+ # @param slot [String] Slot Name
2372
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2373
+ # to the HTTP request.
2374
+ #
2375
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2376
+ #
2377
+ def get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil)
2378
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2379
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2380
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2382
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
2383
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
2384
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
2385
+ fail ArgumentError, 'slot is nil' if slot.nil?
2386
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2387
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2388
+
2389
+
2390
+ request_headers = {}
2391
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2392
+
2393
+ # Set Headers
2394
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2395
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2396
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}'
2397
+
2398
+ request_url = @base_url || @client.base_url
2399
+
2400
+ options = {
2401
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2402
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'detectorName' => detector_name,'slot' => slot,'subscriptionId' => @client.subscription_id},
2403
+ query_params: {'api-version' => @client.api_version},
2404
+ headers: request_headers.merge(custom_headers || {}),
2405
+ base_url: request_url
2406
+ }
2407
+ promise = @client.make_request_async(:get, path_template, options)
2408
+
2409
+ promise = promise.then do |result|
2410
+ http_response = result.response
2411
+ status_code = http_response.status
2412
+ response_content = http_response.body
2413
+ unless status_code == 200
2414
+ error_model = JSON.load(response_content)
2415
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2416
+ end
2417
+
2418
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2419
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2420
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2421
+ # Deserialize Response
2422
+ if status_code == 200
2423
+ begin
2424
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2425
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorDefinition.mapper()
2426
+ result.body = @client.deserialize(result_mapper, parsed_response)
2427
+ rescue Exception => e
2428
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2429
+ end
2430
+ end
2431
+
2432
+ result
2433
+ end
2434
+
2435
+ promise.execute
2436
+ end
2437
+
2438
+ #
2439
+ # Execute Detector
2440
+ #
2441
+ # Description for Execute Detector
2442
+ #
2443
+ # @param resource_group_name [String] Name of the resource group to which the
2444
+ # resource belongs.
2445
+ # @param site_name [String] Site Name
2446
+ # @param detector_name [String] Detector Resource Name
2447
+ # @param diagnostic_category [String] Category Name
2448
+ # @param slot [String] Slot Name
2449
+ # @param start_time [DateTime] Start Time
2450
+ # @param end_time [DateTime] End Time
2451
+ # @param time_grain [String] Time Grain
2452
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2453
+ # will be added to the HTTP request.
2454
+ #
2455
+ # @return [DiagnosticDetectorResponse] operation results.
2456
+ #
2457
+ def execute_site_detector_slot(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
2458
+ response = execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
2459
+ response.body unless response.nil?
2460
+ end
2461
+
2462
+ #
2463
+ # Execute Detector
2464
+ #
2465
+ # Description for Execute Detector
2466
+ #
2467
+ # @param resource_group_name [String] Name of the resource group to which the
2468
+ # resource belongs.
2469
+ # @param site_name [String] Site Name
2470
+ # @param detector_name [String] Detector Resource Name
2471
+ # @param diagnostic_category [String] Category Name
2472
+ # @param slot [String] Slot Name
2473
+ # @param start_time [DateTime] Start Time
2474
+ # @param end_time [DateTime] End Time
2475
+ # @param time_grain [String] Time Grain
2476
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2477
+ # will be added to the HTTP request.
2478
+ #
2479
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2480
+ #
2481
+ def execute_site_detector_slot_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
2482
+ execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value!
2483
+ end
2484
+
2485
+ #
2486
+ # Execute Detector
2487
+ #
2488
+ # Description for Execute Detector
2489
+ #
2490
+ # @param resource_group_name [String] Name of the resource group to which the
2491
+ # resource belongs.
2492
+ # @param site_name [String] Site Name
2493
+ # @param detector_name [String] Detector Resource Name
2494
+ # @param diagnostic_category [String] Category Name
2495
+ # @param slot [String] Slot Name
2496
+ # @param start_time [DateTime] Start Time
2497
+ # @param end_time [DateTime] End Time
2498
+ # @param time_grain [String] Time Grain
2499
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2500
+ # to the HTTP request.
2501
+ #
2502
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2503
+ #
2504
+ def execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil)
2505
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2506
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2507
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2508
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2509
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
2510
+ fail ArgumentError, 'detector_name is nil' if detector_name.nil?
2511
+ fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil?
2512
+ fail ArgumentError, 'slot is nil' if slot.nil?
2513
+ fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil?
2514
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2515
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2516
+
2517
+
2518
+ request_headers = {}
2519
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2520
+
2521
+ # Set Headers
2522
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2523
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2524
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute'
2525
+
2526
+ request_url = @base_url || @client.base_url
2527
+
2528
+ options = {
2529
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2530
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id},
2531
+ query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version},
2532
+ headers: request_headers.merge(custom_headers || {}),
2533
+ base_url: request_url
2534
+ }
2535
+ promise = @client.make_request_async(:post, path_template, options)
2536
+
2537
+ promise = promise.then do |result|
2538
+ http_response = result.response
2539
+ status_code = http_response.status
2540
+ response_content = http_response.body
2541
+ unless status_code == 200
2542
+ error_model = JSON.load(response_content)
2543
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2544
+ end
2545
+
2546
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2547
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2548
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2549
+ # Deserialize Response
2550
+ if status_code == 200
2551
+ begin
2552
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2553
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticDetectorResponse.mapper()
2554
+ result.body = @client.deserialize(result_mapper, parsed_response)
2555
+ rescue Exception => e
2556
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2557
+ end
2558
+ end
2559
+
2560
+ result
2561
+ end
2562
+
2563
+ promise.execute
2564
+ end
2565
+
2566
+ #
2567
+ # List Hosting Environment Detector Responses
2568
+ #
2569
+ # Description for List Hosting Environment Detector Responses
2570
+ #
2571
+ # @param next_page_link [String] The NextLink from the previous successful call
2572
+ # to List operation.
2573
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2574
+ # will be added to the HTTP request.
2575
+ #
2576
+ # @return [DetectorResponseCollection] operation results.
2577
+ #
2578
+ def list_hosting_environment_detector_responses_next(next_page_link, custom_headers:nil)
2579
+ response = list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
2580
+ response.body unless response.nil?
2581
+ end
2582
+
2583
+ #
2584
+ # List Hosting Environment Detector Responses
2585
+ #
2586
+ # Description for List Hosting Environment Detector Responses
2587
+ #
2588
+ # @param next_page_link [String] The NextLink from the previous successful call
2589
+ # to List operation.
2590
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2591
+ # will be added to the HTTP request.
2592
+ #
2593
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2594
+ #
2595
+ def list_hosting_environment_detector_responses_next_with_http_info(next_page_link, custom_headers:nil)
2596
+ list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
2597
+ end
2598
+
2599
+ #
2600
+ # List Hosting Environment Detector Responses
2601
+ #
2602
+ # Description for List Hosting Environment Detector Responses
2603
+ #
2604
+ # @param next_page_link [String] The NextLink from the previous successful call
2605
+ # to List operation.
2606
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2607
+ # to the HTTP request.
2608
+ #
2609
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2610
+ #
2611
+ def list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:nil)
2612
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2613
+
2614
+
2615
+ request_headers = {}
2616
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2617
+
2618
+ # Set Headers
2619
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2620
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2621
+ path_template = '{nextLink}'
2622
+
2623
+ request_url = @base_url || @client.base_url
2624
+
2625
+ options = {
2626
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2627
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2628
+ headers: request_headers.merge(custom_headers || {}),
2629
+ base_url: request_url
2630
+ }
2631
+ promise = @client.make_request_async(:get, path_template, options)
2632
+
2633
+ promise = promise.then do |result|
2634
+ http_response = result.response
2635
+ status_code = http_response.status
2636
+ response_content = http_response.body
2637
+ unless status_code == 200
2638
+ error_model = JSON.load(response_content)
2639
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2640
+ end
2641
+
2642
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2643
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2644
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2645
+ # Deserialize Response
2646
+ if status_code == 200
2647
+ begin
2648
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2649
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponseCollection.mapper()
2650
+ result.body = @client.deserialize(result_mapper, parsed_response)
2651
+ rescue Exception => e
2652
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2653
+ end
2654
+ end
2655
+
2656
+ result
2657
+ end
2658
+
2659
+ promise.execute
2660
+ end
2661
+
2662
+ #
2663
+ # List Site Detector Responses
2664
+ #
2665
+ # Description for List Site Detector Responses
2666
+ #
2667
+ # @param next_page_link [String] The NextLink from the previous successful call
2668
+ # to List operation.
2669
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2670
+ # will be added to the HTTP request.
2671
+ #
2672
+ # @return [DetectorResponseCollection] operation results.
2673
+ #
2674
+ def list_site_detector_responses_next(next_page_link, custom_headers:nil)
2675
+ response = list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
2676
+ response.body unless response.nil?
2677
+ end
2678
+
2679
+ #
2680
+ # List Site Detector Responses
2681
+ #
2682
+ # Description for List Site Detector Responses
2683
+ #
2684
+ # @param next_page_link [String] The NextLink from the previous successful call
2685
+ # to List operation.
2686
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2687
+ # will be added to the HTTP request.
2688
+ #
2689
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2690
+ #
2691
+ def list_site_detector_responses_next_with_http_info(next_page_link, custom_headers:nil)
2692
+ list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value!
2693
+ end
2694
+
2695
+ #
2696
+ # List Site Detector Responses
2697
+ #
2698
+ # Description for List Site Detector Responses
2699
+ #
2700
+ # @param next_page_link [String] The NextLink from the previous successful call
2701
+ # to List operation.
2702
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2703
+ # to the HTTP request.
2704
+ #
2705
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2706
+ #
2707
+ def list_site_detector_responses_next_async(next_page_link, custom_headers:nil)
2708
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2709
+
2710
+
2711
+ request_headers = {}
2712
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2713
+
2714
+ # Set Headers
2715
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2716
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2717
+ path_template = '{nextLink}'
2718
+
2719
+ request_url = @base_url || @client.base_url
2720
+
2721
+ options = {
2722
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2723
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2724
+ headers: request_headers.merge(custom_headers || {}),
2725
+ base_url: request_url
2726
+ }
2727
+ promise = @client.make_request_async(:get, path_template, options)
2728
+
2729
+ promise = promise.then do |result|
2730
+ http_response = result.response
2731
+ status_code = http_response.status
2732
+ response_content = http_response.body
2733
+ unless status_code == 200
2734
+ error_model = JSON.load(response_content)
2735
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2736
+ end
2737
+
2738
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2739
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2740
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2741
+ # Deserialize Response
2742
+ if status_code == 200
2743
+ begin
2744
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2745
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponseCollection.mapper()
2746
+ result.body = @client.deserialize(result_mapper, parsed_response)
2747
+ rescue Exception => e
2748
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2749
+ end
2750
+ end
2751
+
2752
+ result
2753
+ end
2754
+
2755
+ promise.execute
2756
+ end
2757
+
2758
+ #
2759
+ # Get Diagnostics Categories
2760
+ #
2761
+ # Description for Get Diagnostics Categories
2762
+ #
2763
+ # @param next_page_link [String] The NextLink from the previous successful call
2764
+ # to List operation.
2765
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2766
+ # will be added to the HTTP request.
2767
+ #
2768
+ # @return [DiagnosticCategoryCollection] operation results.
2769
+ #
2770
+ def list_site_diagnostic_categories_next(next_page_link, custom_headers:nil)
2771
+ response = list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers).value!
2772
+ response.body unless response.nil?
2773
+ end
2774
+
2775
+ #
2776
+ # Get Diagnostics Categories
2777
+ #
2778
+ # Description for Get Diagnostics Categories
2779
+ #
2780
+ # @param next_page_link [String] The NextLink from the previous successful call
2781
+ # to List operation.
2782
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2783
+ # will be added to the HTTP request.
2784
+ #
2785
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2786
+ #
2787
+ def list_site_diagnostic_categories_next_with_http_info(next_page_link, custom_headers:nil)
2788
+ list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers).value!
2789
+ end
2790
+
2791
+ #
2792
+ # Get Diagnostics Categories
2793
+ #
2794
+ # Description for Get Diagnostics Categories
2795
+ #
2796
+ # @param next_page_link [String] The NextLink from the previous successful call
2797
+ # to List operation.
2798
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2799
+ # to the HTTP request.
2800
+ #
2801
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2802
+ #
2803
+ def list_site_diagnostic_categories_next_async(next_page_link, custom_headers:nil)
2804
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2805
+
2806
+
2807
+ request_headers = {}
2808
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2809
+
2810
+ # Set Headers
2811
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2812
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2813
+ path_template = '{nextLink}'
2814
+
2815
+ request_url = @base_url || @client.base_url
2816
+
2817
+ options = {
2818
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2819
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2820
+ headers: request_headers.merge(custom_headers || {}),
2821
+ base_url: request_url
2822
+ }
2823
+ promise = @client.make_request_async(:get, path_template, options)
2824
+
2825
+ promise = promise.then do |result|
2826
+ http_response = result.response
2827
+ status_code = http_response.status
2828
+ response_content = http_response.body
2829
+ unless status_code == 200
2830
+ error_model = JSON.load(response_content)
2831
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2832
+ end
2833
+
2834
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2835
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2836
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2837
+ # Deserialize Response
2838
+ if status_code == 200
2839
+ begin
2840
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2841
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticCategoryCollection.mapper()
2842
+ result.body = @client.deserialize(result_mapper, parsed_response)
2843
+ rescue Exception => e
2844
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2845
+ end
2846
+ end
2847
+
2848
+ result
2849
+ end
2850
+
2851
+ promise.execute
2852
+ end
2853
+
2854
+ #
2855
+ # Get Site Analyses
2856
+ #
2857
+ # Description for Get Site Analyses
2858
+ #
2859
+ # @param next_page_link [String] The NextLink from the previous successful call
2860
+ # to List operation.
2861
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2862
+ # will be added to the HTTP request.
2863
+ #
2864
+ # @return [DiagnosticAnalysisCollection] operation results.
2865
+ #
2866
+ def list_site_analyses_next(next_page_link, custom_headers:nil)
2867
+ response = list_site_analyses_next_async(next_page_link, custom_headers:custom_headers).value!
2868
+ response.body unless response.nil?
2869
+ end
2870
+
2871
+ #
2872
+ # Get Site Analyses
2873
+ #
2874
+ # Description for Get Site Analyses
2875
+ #
2876
+ # @param next_page_link [String] The NextLink from the previous successful call
2877
+ # to List operation.
2878
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2879
+ # will be added to the HTTP request.
2880
+ #
2881
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2882
+ #
2883
+ def list_site_analyses_next_with_http_info(next_page_link, custom_headers:nil)
2884
+ list_site_analyses_next_async(next_page_link, custom_headers:custom_headers).value!
2885
+ end
2886
+
2887
+ #
2888
+ # Get Site Analyses
2889
+ #
2890
+ # Description for Get Site Analyses
2891
+ #
2892
+ # @param next_page_link [String] The NextLink from the previous successful call
2893
+ # to List operation.
2894
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2895
+ # to the HTTP request.
2896
+ #
2897
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2898
+ #
2899
+ def list_site_analyses_next_async(next_page_link, custom_headers:nil)
2900
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2901
+
2902
+
2903
+ request_headers = {}
2904
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2905
+
2906
+ # Set Headers
2907
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2908
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2909
+ path_template = '{nextLink}'
2910
+
2911
+ request_url = @base_url || @client.base_url
2912
+
2913
+ options = {
2914
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2915
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2916
+ headers: request_headers.merge(custom_headers || {}),
2917
+ base_url: request_url
2918
+ }
2919
+ promise = @client.make_request_async(:get, path_template, options)
2920
+
2921
+ promise = promise.then do |result|
2922
+ http_response = result.response
2923
+ status_code = http_response.status
2924
+ response_content = http_response.body
2925
+ unless status_code == 200
2926
+ error_model = JSON.load(response_content)
2927
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2928
+ end
2929
+
2930
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2931
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2932
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2933
+ # Deserialize Response
2934
+ if status_code == 200
2935
+ begin
2936
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2937
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticAnalysisCollection.mapper()
2938
+ result.body = @client.deserialize(result_mapper, parsed_response)
2939
+ rescue Exception => e
2940
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2941
+ end
2942
+ end
2943
+
2944
+ result
2945
+ end
2946
+
2947
+ promise.execute
2948
+ end
2949
+
2950
+ #
2951
+ # Get Detectors
2952
+ #
2953
+ # Description for Get Detectors
2954
+ #
2955
+ # @param next_page_link [String] The NextLink from the previous successful call
2956
+ # to List operation.
2957
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2958
+ # will be added to the HTTP request.
2959
+ #
2960
+ # @return [DiagnosticDetectorCollection] operation results.
2961
+ #
2962
+ def list_site_detectors_next(next_page_link, custom_headers:nil)
2963
+ response = list_site_detectors_next_async(next_page_link, custom_headers:custom_headers).value!
2964
+ response.body unless response.nil?
2965
+ end
2966
+
2967
+ #
2968
+ # Get Detectors
2969
+ #
2970
+ # Description for Get Detectors
2971
+ #
2972
+ # @param next_page_link [String] The NextLink from the previous successful call
2973
+ # to List operation.
2974
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2975
+ # will be added to the HTTP request.
2976
+ #
2977
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2978
+ #
2979
+ def list_site_detectors_next_with_http_info(next_page_link, custom_headers:nil)
2980
+ list_site_detectors_next_async(next_page_link, custom_headers:custom_headers).value!
2981
+ end
2982
+
2983
+ #
2984
+ # Get Detectors
2985
+ #
2986
+ # Description for Get Detectors
2987
+ #
2988
+ # @param next_page_link [String] The NextLink from the previous successful call
2989
+ # to List operation.
2990
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2991
+ # to the HTTP request.
2992
+ #
2993
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2994
+ #
2995
+ def list_site_detectors_next_async(next_page_link, custom_headers:nil)
2996
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2997
+
2998
+
2999
+ request_headers = {}
3000
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3001
+
3002
+ # Set Headers
3003
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3004
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3005
+ path_template = '{nextLink}'
3006
+
3007
+ request_url = @base_url || @client.base_url
3008
+
3009
+ options = {
3010
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3011
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3012
+ headers: request_headers.merge(custom_headers || {}),
3013
+ base_url: request_url
3014
+ }
3015
+ promise = @client.make_request_async(:get, path_template, options)
3016
+
3017
+ promise = promise.then do |result|
3018
+ http_response = result.response
3019
+ status_code = http_response.status
3020
+ response_content = http_response.body
3021
+ unless status_code == 200
3022
+ error_model = JSON.load(response_content)
3023
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3024
+ end
3025
+
3026
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3027
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3028
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3029
+ # Deserialize Response
3030
+ if status_code == 200
3031
+ begin
3032
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3033
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticDetectorCollection.mapper()
3034
+ result.body = @client.deserialize(result_mapper, parsed_response)
3035
+ rescue Exception => e
3036
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3037
+ end
3038
+ end
3039
+
3040
+ result
3041
+ end
3042
+
3043
+ promise.execute
3044
+ end
3045
+
3046
+ #
3047
+ # List Site Detector Responses
3048
+ #
3049
+ # Description for List Site Detector Responses
3050
+ #
3051
+ # @param next_page_link [String] The NextLink from the previous successful call
3052
+ # to List operation.
3053
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3054
+ # will be added to the HTTP request.
3055
+ #
3056
+ # @return [DetectorResponseCollection] operation results.
3057
+ #
3058
+ def list_site_detector_responses_slot_next(next_page_link, custom_headers:nil)
3059
+ response = list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3060
+ response.body unless response.nil?
3061
+ end
3062
+
3063
+ #
3064
+ # List Site Detector Responses
3065
+ #
3066
+ # Description for List Site Detector Responses
3067
+ #
3068
+ # @param next_page_link [String] The NextLink from the previous successful call
3069
+ # to List operation.
3070
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3071
+ # will be added to the HTTP request.
3072
+ #
3073
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3074
+ #
3075
+ def list_site_detector_responses_slot_next_with_http_info(next_page_link, custom_headers:nil)
3076
+ list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3077
+ end
3078
+
3079
+ #
3080
+ # List Site Detector Responses
3081
+ #
3082
+ # Description for List Site Detector Responses
3083
+ #
3084
+ # @param next_page_link [String] The NextLink from the previous successful call
3085
+ # to List operation.
3086
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3087
+ # to the HTTP request.
3088
+ #
3089
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3090
+ #
3091
+ def list_site_detector_responses_slot_next_async(next_page_link, custom_headers:nil)
3092
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3093
+
3094
+
3095
+ request_headers = {}
3096
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3097
+
3098
+ # Set Headers
3099
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3100
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3101
+ path_template = '{nextLink}'
3102
+
3103
+ request_url = @base_url || @client.base_url
3104
+
3105
+ options = {
3106
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3107
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3108
+ headers: request_headers.merge(custom_headers || {}),
3109
+ base_url: request_url
3110
+ }
3111
+ promise = @client.make_request_async(:get, path_template, options)
3112
+
3113
+ promise = promise.then do |result|
3114
+ http_response = result.response
3115
+ status_code = http_response.status
3116
+ response_content = http_response.body
3117
+ unless status_code == 200
3118
+ error_model = JSON.load(response_content)
3119
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3120
+ end
3121
+
3122
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3123
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3124
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3125
+ # Deserialize Response
3126
+ if status_code == 200
3127
+ begin
3128
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3129
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DetectorResponseCollection.mapper()
3130
+ result.body = @client.deserialize(result_mapper, parsed_response)
3131
+ rescue Exception => e
3132
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3133
+ end
3134
+ end
3135
+
3136
+ result
3137
+ end
3138
+
3139
+ promise.execute
3140
+ end
3141
+
3142
+ #
3143
+ # Get Diagnostics Categories
3144
+ #
3145
+ # Description for Get Diagnostics Categories
3146
+ #
3147
+ # @param next_page_link [String] The NextLink from the previous successful call
3148
+ # to List operation.
3149
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3150
+ # will be added to the HTTP request.
3151
+ #
3152
+ # @return [DiagnosticCategoryCollection] operation results.
3153
+ #
3154
+ def list_site_diagnostic_categories_slot_next(next_page_link, custom_headers:nil)
3155
+ response = list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3156
+ response.body unless response.nil?
3157
+ end
3158
+
3159
+ #
3160
+ # Get Diagnostics Categories
3161
+ #
3162
+ # Description for Get Diagnostics Categories
3163
+ #
3164
+ # @param next_page_link [String] The NextLink from the previous successful call
3165
+ # to List operation.
3166
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3167
+ # will be added to the HTTP request.
3168
+ #
3169
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3170
+ #
3171
+ def list_site_diagnostic_categories_slot_next_with_http_info(next_page_link, custom_headers:nil)
3172
+ list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3173
+ end
3174
+
3175
+ #
3176
+ # Get Diagnostics Categories
3177
+ #
3178
+ # Description for Get Diagnostics Categories
3179
+ #
3180
+ # @param next_page_link [String] The NextLink from the previous successful call
3181
+ # to List operation.
3182
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3183
+ # to the HTTP request.
3184
+ #
3185
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3186
+ #
3187
+ def list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:nil)
3188
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3189
+
3190
+
3191
+ request_headers = {}
3192
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3193
+
3194
+ # Set Headers
3195
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3196
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3197
+ path_template = '{nextLink}'
3198
+
3199
+ request_url = @base_url || @client.base_url
3200
+
3201
+ options = {
3202
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3203
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3204
+ headers: request_headers.merge(custom_headers || {}),
3205
+ base_url: request_url
3206
+ }
3207
+ promise = @client.make_request_async(:get, path_template, options)
3208
+
3209
+ promise = promise.then do |result|
3210
+ http_response = result.response
3211
+ status_code = http_response.status
3212
+ response_content = http_response.body
3213
+ unless status_code == 200
3214
+ error_model = JSON.load(response_content)
3215
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3216
+ end
3217
+
3218
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3219
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3220
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3221
+ # Deserialize Response
3222
+ if status_code == 200
3223
+ begin
3224
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3225
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticCategoryCollection.mapper()
3226
+ result.body = @client.deserialize(result_mapper, parsed_response)
3227
+ rescue Exception => e
3228
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3229
+ end
3230
+ end
3231
+
3232
+ result
3233
+ end
3234
+
3235
+ promise.execute
3236
+ end
3237
+
3238
+ #
3239
+ # Get Site Analyses
3240
+ #
3241
+ # Description for Get Site Analyses
3242
+ #
3243
+ # @param next_page_link [String] The NextLink from the previous successful call
3244
+ # to List operation.
3245
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3246
+ # will be added to the HTTP request.
3247
+ #
3248
+ # @return [DiagnosticAnalysisCollection] operation results.
3249
+ #
3250
+ def list_site_analyses_slot_next(next_page_link, custom_headers:nil)
3251
+ response = list_site_analyses_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3252
+ response.body unless response.nil?
3253
+ end
3254
+
3255
+ #
3256
+ # Get Site Analyses
3257
+ #
3258
+ # Description for Get Site Analyses
3259
+ #
3260
+ # @param next_page_link [String] The NextLink from the previous successful call
3261
+ # to List operation.
3262
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3263
+ # will be added to the HTTP request.
3264
+ #
3265
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3266
+ #
3267
+ def list_site_analyses_slot_next_with_http_info(next_page_link, custom_headers:nil)
3268
+ list_site_analyses_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3269
+ end
3270
+
3271
+ #
3272
+ # Get Site Analyses
3273
+ #
3274
+ # Description for Get Site Analyses
3275
+ #
3276
+ # @param next_page_link [String] The NextLink from the previous successful call
3277
+ # to List operation.
3278
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3279
+ # to the HTTP request.
3280
+ #
3281
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3282
+ #
3283
+ def list_site_analyses_slot_next_async(next_page_link, custom_headers:nil)
3284
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3285
+
3286
+
3287
+ request_headers = {}
3288
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3289
+
3290
+ # Set Headers
3291
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3292
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3293
+ path_template = '{nextLink}'
3294
+
3295
+ request_url = @base_url || @client.base_url
3296
+
3297
+ options = {
3298
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3299
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3300
+ headers: request_headers.merge(custom_headers || {}),
3301
+ base_url: request_url
3302
+ }
3303
+ promise = @client.make_request_async(:get, path_template, options)
3304
+
3305
+ promise = promise.then do |result|
3306
+ http_response = result.response
3307
+ status_code = http_response.status
3308
+ response_content = http_response.body
3309
+ unless status_code == 200
3310
+ error_model = JSON.load(response_content)
3311
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3312
+ end
3313
+
3314
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3315
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3316
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3317
+ # Deserialize Response
3318
+ if status_code == 200
3319
+ begin
3320
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3321
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticAnalysisCollection.mapper()
3322
+ result.body = @client.deserialize(result_mapper, parsed_response)
3323
+ rescue Exception => e
3324
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3325
+ end
3326
+ end
3327
+
3328
+ result
3329
+ end
3330
+
3331
+ promise.execute
3332
+ end
3333
+
3334
+ #
3335
+ # Get Detectors
3336
+ #
3337
+ # Description for Get Detectors
3338
+ #
3339
+ # @param next_page_link [String] The NextLink from the previous successful call
3340
+ # to List operation.
3341
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3342
+ # will be added to the HTTP request.
3343
+ #
3344
+ # @return [DiagnosticDetectorCollection] operation results.
3345
+ #
3346
+ def list_site_detectors_slot_next(next_page_link, custom_headers:nil)
3347
+ response = list_site_detectors_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3348
+ response.body unless response.nil?
3349
+ end
3350
+
3351
+ #
3352
+ # Get Detectors
3353
+ #
3354
+ # Description for Get Detectors
3355
+ #
3356
+ # @param next_page_link [String] The NextLink from the previous successful call
3357
+ # to List operation.
3358
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3359
+ # will be added to the HTTP request.
3360
+ #
3361
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3362
+ #
3363
+ def list_site_detectors_slot_next_with_http_info(next_page_link, custom_headers:nil)
3364
+ list_site_detectors_slot_next_async(next_page_link, custom_headers:custom_headers).value!
3365
+ end
3366
+
3367
+ #
3368
+ # Get Detectors
3369
+ #
3370
+ # Description for Get Detectors
3371
+ #
3372
+ # @param next_page_link [String] The NextLink from the previous successful call
3373
+ # to List operation.
3374
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3375
+ # to the HTTP request.
3376
+ #
3377
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3378
+ #
3379
+ def list_site_detectors_slot_next_async(next_page_link, custom_headers:nil)
3380
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3381
+
3382
+
3383
+ request_headers = {}
3384
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3385
+
3386
+ # Set Headers
3387
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3388
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3389
+ path_template = '{nextLink}'
3390
+
3391
+ request_url = @base_url || @client.base_url
3392
+
3393
+ options = {
3394
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3395
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3396
+ headers: request_headers.merge(custom_headers || {}),
3397
+ base_url: request_url
3398
+ }
3399
+ promise = @client.make_request_async(:get, path_template, options)
3400
+
3401
+ promise = promise.then do |result|
3402
+ http_response = result.response
3403
+ status_code = http_response.status
3404
+ response_content = http_response.body
3405
+ unless status_code == 200
3406
+ error_model = JSON.load(response_content)
3407
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3408
+ end
3409
+
3410
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3411
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3412
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3413
+ # Deserialize Response
3414
+ if status_code == 200
3415
+ begin
3416
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3417
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticDetectorCollection.mapper()
3418
+ result.body = @client.deserialize(result_mapper, parsed_response)
3419
+ rescue Exception => e
3420
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3421
+ end
3422
+ end
3423
+
3424
+ result
3425
+ end
3426
+
3427
+ promise.execute
3428
+ end
3429
+
3430
+ #
3431
+ # List Hosting Environment Detector Responses
3432
+ #
3433
+ # Description for List Hosting Environment Detector Responses
3434
+ #
3435
+ # @param resource_group_name [String] Name of the resource group to which the
3436
+ # resource belongs.
3437
+ # @param name [String] Site Name
3438
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3439
+ # will be added to the HTTP request.
3440
+ #
3441
+ # @return [DetectorResponseCollection] which provide lazy access to pages of
3442
+ # the response.
3443
+ #
3444
+ def list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers:nil)
3445
+ response = list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:custom_headers).value!
3446
+ unless response.nil?
3447
+ page = response.body
3448
+ page.next_method = Proc.new do |next_page_link|
3449
+ list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers)
3450
+ end
3451
+ page
3452
+ end
3453
+ end
3454
+
3455
+ #
3456
+ # List Site Detector Responses
3457
+ #
3458
+ # Description for List Site Detector Responses
3459
+ #
3460
+ # @param resource_group_name [String] Name of the resource group to which the
3461
+ # resource belongs.
3462
+ # @param site_name [String] Site Name
3463
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3464
+ # will be added to the HTTP request.
3465
+ #
3466
+ # @return [DetectorResponseCollection] which provide lazy access to pages of
3467
+ # the response.
3468
+ #
3469
+ def list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:nil)
3470
+ response = list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value!
3471
+ unless response.nil?
3472
+ page = response.body
3473
+ page.next_method = Proc.new do |next_page_link|
3474
+ list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers)
3475
+ end
3476
+ page
3477
+ end
3478
+ end
3479
+
3480
+ #
3481
+ # Get Diagnostics Categories
3482
+ #
3483
+ # Description for Get Diagnostics Categories
3484
+ #
3485
+ # @param resource_group_name [String] Name of the resource group to which the
3486
+ # resource belongs.
3487
+ # @param site_name [String] Site Name
3488
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3489
+ # will be added to the HTTP request.
3490
+ #
3491
+ # @return [DiagnosticCategoryCollection] which provide lazy access to pages of
3492
+ # the response.
3493
+ #
3494
+ def list_site_diagnostic_categories_as_lazy(resource_group_name, site_name, custom_headers:nil)
3495
+ response = list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers:custom_headers).value!
3496
+ unless response.nil?
3497
+ page = response.body
3498
+ page.next_method = Proc.new do |next_page_link|
3499
+ list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers)
3500
+ end
3501
+ page
3502
+ end
3503
+ end
3504
+
3505
+ #
3506
+ # Get Site Analyses
3507
+ #
3508
+ # Description for Get Site Analyses
3509
+ #
3510
+ # @param resource_group_name [String] Name of the resource group to which the
3511
+ # resource belongs.
3512
+ # @param site_name [String] Site Name
3513
+ # @param diagnostic_category [String] Diagnostic Category
3514
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3515
+ # will be added to the HTTP request.
3516
+ #
3517
+ # @return [DiagnosticAnalysisCollection] which provide lazy access to pages of
3518
+ # the response.
3519
+ #
3520
+ def list_site_analyses_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
3521
+ response = list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
3522
+ unless response.nil?
3523
+ page = response.body
3524
+ page.next_method = Proc.new do |next_page_link|
3525
+ list_site_analyses_next_async(next_page_link, custom_headers:custom_headers)
3526
+ end
3527
+ page
3528
+ end
3529
+ end
3530
+
3531
+ #
3532
+ # Get Detectors
3533
+ #
3534
+ # Description for Get Detectors
3535
+ #
3536
+ # @param resource_group_name [String] Name of the resource group to which the
3537
+ # resource belongs.
3538
+ # @param site_name [String] Site Name
3539
+ # @param diagnostic_category [String] Diagnostic Category
3540
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3541
+ # will be added to the HTTP request.
3542
+ #
3543
+ # @return [DiagnosticDetectorCollection] which provide lazy access to pages of
3544
+ # the response.
3545
+ #
3546
+ def list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:nil)
3547
+ response = list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value!
3548
+ unless response.nil?
3549
+ page = response.body
3550
+ page.next_method = Proc.new do |next_page_link|
3551
+ list_site_detectors_next_async(next_page_link, custom_headers:custom_headers)
3552
+ end
3553
+ page
3554
+ end
3555
+ end
3556
+
3557
+ #
3558
+ # List Site Detector Responses
3559
+ #
3560
+ # Description for List Site Detector Responses
3561
+ #
3562
+ # @param resource_group_name [String] Name of the resource group to which the
3563
+ # resource belongs.
3564
+ # @param site_name [String] Site Name
3565
+ # @param slot [String] Slot Name
3566
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3567
+ # will be added to the HTTP request.
3568
+ #
3569
+ # @return [DetectorResponseCollection] which provide lazy access to pages of
3570
+ # the response.
3571
+ #
3572
+ def list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:nil)
3573
+ response = list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value!
3574
+ unless response.nil?
3575
+ page = response.body
3576
+ page.next_method = Proc.new do |next_page_link|
3577
+ list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers)
3578
+ end
3579
+ page
3580
+ end
3581
+ end
3582
+
3583
+ #
3584
+ # Get Diagnostics Categories
3585
+ #
3586
+ # Description for Get Diagnostics Categories
3587
+ #
3588
+ # @param resource_group_name [String] Name of the resource group to which the
3589
+ # resource belongs.
3590
+ # @param site_name [String] Site Name
3591
+ # @param slot [String] Slot Name
3592
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3593
+ # will be added to the HTTP request.
3594
+ #
3595
+ # @return [DiagnosticCategoryCollection] which provide lazy access to pages of
3596
+ # the response.
3597
+ #
3598
+ def list_site_diagnostic_categories_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:nil)
3599
+ response = list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value!
3600
+ unless response.nil?
3601
+ page = response.body
3602
+ page.next_method = Proc.new do |next_page_link|
3603
+ list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:custom_headers)
3604
+ end
3605
+ page
3606
+ end
3607
+ end
3608
+
3609
+ #
3610
+ # Get Site Analyses
3611
+ #
3612
+ # Description for Get Site Analyses
3613
+ #
3614
+ # @param resource_group_name [String] Name of the resource group to which the
3615
+ # resource belongs.
3616
+ # @param site_name [String] Site Name
3617
+ # @param diagnostic_category [String] Diagnostic Category
3618
+ # @param slot [String] Slot Name
3619
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3620
+ # will be added to the HTTP request.
3621
+ #
3622
+ # @return [DiagnosticAnalysisCollection] which provide lazy access to pages of
3623
+ # the response.
3624
+ #
3625
+ def list_site_analyses_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
3626
+ response = list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value!
3627
+ unless response.nil?
3628
+ page = response.body
3629
+ page.next_method = Proc.new do |next_page_link|
3630
+ list_site_analyses_slot_next_async(next_page_link, custom_headers:custom_headers)
3631
+ end
3632
+ page
3633
+ end
3634
+ end
3635
+
3636
+ #
3637
+ # Get Detectors
3638
+ #
3639
+ # Description for Get Detectors
3640
+ #
3641
+ # @param resource_group_name [String] Name of the resource group to which the
3642
+ # resource belongs.
3643
+ # @param site_name [String] Site Name
3644
+ # @param diagnostic_category [String] Diagnostic Category
3645
+ # @param slot [String] Slot Name
3646
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3647
+ # will be added to the HTTP request.
3648
+ #
3649
+ # @return [DiagnosticDetectorCollection] which provide lazy access to pages of
3650
+ # the response.
3651
+ #
3652
+ def list_site_detectors_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil)
3653
+ response = list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value!
3654
+ unless response.nil?
3655
+ page = response.body
3656
+ page.next_method = Proc.new do |next_page_link|
3657
+ list_site_detectors_slot_next_async(next_page_link, custom_headers:custom_headers)
3658
+ end
3659
+ page
3660
+ end
3661
+ end
3662
+
3663
+ end
3664
+ end