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,2884 @@
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
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class WebSiteManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Your Azure subscription ID. This is a GUID-formatted
21
+ # string (e.g. 00000000-0000-0000-0000-000000000000).
22
+ attr_accessor :subscription_id
23
+
24
+ # @return [String] API Version
25
+ attr_reader :api_version
26
+
27
+ # @return [String] The preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return [AppServiceCertificateOrders] app_service_certificate_orders
40
+ attr_reader :app_service_certificate_orders
41
+
42
+ # @return [CertificateRegistrationProvider]
43
+ # certificate_registration_provider
44
+ attr_reader :certificate_registration_provider
45
+
46
+ # @return [Domains] domains
47
+ attr_reader :domains
48
+
49
+ # @return [TopLevelDomains] top_level_domains
50
+ attr_reader :top_level_domains
51
+
52
+ # @return [DomainRegistrationProvider] domain_registration_provider
53
+ attr_reader :domain_registration_provider
54
+
55
+ # @return [Certificates] certificates
56
+ attr_reader :certificates
57
+
58
+ # @return [DeletedWebApps] deleted_web_apps
59
+ attr_reader :deleted_web_apps
60
+
61
+ # @return [Diagnostics] diagnostics
62
+ attr_reader :diagnostics
63
+
64
+ # @return [Provider] provider
65
+ attr_reader :provider
66
+
67
+ # @return [Recommendations] recommendations
68
+ attr_reader :recommendations
69
+
70
+ # @return [WebApps] web_apps
71
+ attr_reader :web_apps
72
+
73
+ # @return [StaticSites] static_sites
74
+ attr_reader :static_sites
75
+
76
+ # @return [AppServiceEnvironments] app_service_environments
77
+ attr_reader :app_service_environments
78
+
79
+ # @return [AppServicePlans] app_service_plans
80
+ attr_reader :app_service_plans
81
+
82
+ # @return [ResourceHealthMetadataOperations]
83
+ # resource_health_metadata_operations
84
+ attr_reader :resource_health_metadata_operations
85
+
86
+ #
87
+ # Creates initializes a new instance of the WebSiteManagementClient class.
88
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
89
+ # @param base_url [String] the base URI of the service.
90
+ # @param options [Array] filters to be applied to the HTTP requests.
91
+ #
92
+ def initialize(credentials = nil, base_url = nil, options = nil)
93
+ super(credentials, options)
94
+ @base_url = base_url || 'https://management.azure.com'
95
+
96
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
97
+ @credentials = credentials
98
+
99
+ @app_service_certificate_orders = AppServiceCertificateOrders.new(self)
100
+ @certificate_registration_provider = CertificateRegistrationProvider.new(self)
101
+ @domains = Domains.new(self)
102
+ @top_level_domains = TopLevelDomains.new(self)
103
+ @domain_registration_provider = DomainRegistrationProvider.new(self)
104
+ @certificates = Certificates.new(self)
105
+ @deleted_web_apps = DeletedWebApps.new(self)
106
+ @diagnostics = Diagnostics.new(self)
107
+ @provider = Provider.new(self)
108
+ @recommendations = Recommendations.new(self)
109
+ @web_apps = WebApps.new(self)
110
+ @static_sites = StaticSites.new(self)
111
+ @app_service_environments = AppServiceEnvironments.new(self)
112
+ @app_service_plans = AppServicePlans.new(self)
113
+ @resource_health_metadata_operations = ResourceHealthMetadataOperations.new(self)
114
+ @api_version = '2020-09-01'
115
+ @accept_language = 'en-US'
116
+ @long_running_operation_retry_timeout = 30
117
+ @generate_client_request_id = true
118
+ add_telemetry
119
+ end
120
+
121
+ #
122
+ # Makes a request and returns the body of the response.
123
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
124
+ # @param path [String] the path, relative to {base_url}.
125
+ # @param options [Hash{String=>String}] specifying any request options like :body.
126
+ # @return [Hash{String=>String}] containing the body of the response.
127
+ # Example:
128
+ #
129
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
130
+ # path = "/path"
131
+ # options = {
132
+ # body: request_content,
133
+ # query_params: {'api-version' => '2016-02-01'}
134
+ # }
135
+ # result = @client.make_request(:put, path, options)
136
+ #
137
+ def make_request(method, path, options = {})
138
+ result = make_request_with_http_info(method, path, options)
139
+ result.body unless result.nil?
140
+ end
141
+
142
+ #
143
+ # Makes a request and returns the operation response.
144
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
145
+ # @param path [String] the path, relative to {base_url}.
146
+ # @param options [Hash{String=>String}] specifying any request options like :body.
147
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
148
+ #
149
+ def make_request_with_http_info(method, path, options = {})
150
+ result = make_request_async(method, path, options).value!
151
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
152
+ result
153
+ end
154
+
155
+ #
156
+ # Makes a request asynchronously.
157
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
158
+ # @param path [String] the path, relative to {base_url}.
159
+ # @param options [Hash{String=>String}] specifying any request options like :body.
160
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
161
+ #
162
+ def make_request_async(method, path, options = {})
163
+ fail ArgumentError, 'method is nil' if method.nil?
164
+ fail ArgumentError, 'path is nil' if path.nil?
165
+
166
+ request_url = options[:base_url] || @base_url
167
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
168
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
169
+ end
170
+
171
+ request_headers = @request_headers
172
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
173
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
174
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
175
+
176
+ super(request_url, method, path, options)
177
+ end
178
+
179
+ #
180
+ # Exchange code for GitHub access token for AppService CLI
181
+ #
182
+ # Description for Exchange code for GitHub access token for AppService CLI
183
+ #
184
+ # @param code [String] Code string to exchange for Github Access token
185
+ # @param state [String] State string used for verification.
186
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
187
+ # will be added to the HTTP request.
188
+ #
189
+ # @return [AppserviceGithubToken] operation results.
190
+ #
191
+ def generate_github_access_token_for_appservice_cliasync(code, state, custom_headers:nil)
192
+ response = generate_github_access_token_for_appservice_cliasync_async(code, state, custom_headers:custom_headers).value!
193
+ response.body unless response.nil?
194
+ end
195
+
196
+ #
197
+ # Exchange code for GitHub access token for AppService CLI
198
+ #
199
+ # Description for Exchange code for GitHub access token for AppService CLI
200
+ #
201
+ # @param code [String] Code string to exchange for Github Access token
202
+ # @param state [String] State string used for verification.
203
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
204
+ # will be added to the HTTP request.
205
+ #
206
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
207
+ #
208
+ def generate_github_access_token_for_appservice_cliasync_with_http_info(code, state, custom_headers:nil)
209
+ generate_github_access_token_for_appservice_cliasync_async(code, state, custom_headers:custom_headers).value!
210
+ end
211
+
212
+ #
213
+ # Exchange code for GitHub access token for AppService CLI
214
+ #
215
+ # Description for Exchange code for GitHub access token for AppService CLI
216
+ #
217
+ # @param code [String] Code string to exchange for Github Access token
218
+ # @param state [String] State string used for verification.
219
+ # @param [Hash{String => String}] A hash of custom headers that will be added
220
+ # to the HTTP request.
221
+ #
222
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
223
+ #
224
+ def generate_github_access_token_for_appservice_cliasync_async(code, state, custom_headers:nil)
225
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
226
+ fail ArgumentError, 'code is nil' if code.nil?
227
+ fail ArgumentError, 'state is nil' if state.nil?
228
+
229
+ request = AppserviceGithubTokenRequest.new
230
+ unless code.nil? && state.nil?
231
+ request.code = code
232
+ request.state = state
233
+ end
234
+
235
+ request_headers = {}
236
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
237
+
238
+ # Set Headers
239
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
240
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
241
+
242
+ # Serialize Request
243
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppserviceGithubTokenRequest.mapper()
244
+ request_content = self.serialize(request_mapper, request)
245
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
246
+
247
+ path_template = 'providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI'
248
+
249
+ request_url = @base_url || self.base_url
250
+
251
+ options = {
252
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
253
+ query_params: {'api-version' => api_version},
254
+ body: request_content,
255
+ headers: request_headers.merge(custom_headers || {}),
256
+ base_url: request_url
257
+ }
258
+ promise = self.make_request_async(:post, path_template, options)
259
+
260
+ promise = promise.then do |result|
261
+ http_response = result.response
262
+ status_code = http_response.status
263
+ response_content = http_response.body
264
+ unless status_code == 200
265
+ error_model = JSON.load(response_content)
266
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
267
+ end
268
+
269
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
270
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
271
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
272
+ # Deserialize Response
273
+ if status_code == 200
274
+ begin
275
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
276
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppserviceGithubToken.mapper()
277
+ result.body = self.deserialize(result_mapper, parsed_response)
278
+ rescue Exception => e
279
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
280
+ end
281
+ end
282
+
283
+ result
284
+ end
285
+
286
+ promise.execute
287
+ end
288
+
289
+ #
290
+ # Gets publishing user
291
+ #
292
+ # Description for Gets publishing user
293
+ #
294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
+ # will be added to the HTTP request.
296
+ #
297
+ # @return [User] operation results.
298
+ #
299
+ def get_publishing_user(custom_headers:nil)
300
+ response = get_publishing_user_async(custom_headers:custom_headers).value!
301
+ response.body unless response.nil?
302
+ end
303
+
304
+ #
305
+ # Gets publishing user
306
+ #
307
+ # Description for Gets publishing user
308
+ #
309
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
310
+ # will be added to the HTTP request.
311
+ #
312
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
313
+ #
314
+ def get_publishing_user_with_http_info(custom_headers:nil)
315
+ get_publishing_user_async(custom_headers:custom_headers).value!
316
+ end
317
+
318
+ #
319
+ # Gets publishing user
320
+ #
321
+ # Description for Gets publishing user
322
+ #
323
+ # @param [Hash{String => String}] A hash of custom headers that will be added
324
+ # to the HTTP request.
325
+ #
326
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
327
+ #
328
+ def get_publishing_user_async(custom_headers:nil)
329
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
330
+
331
+
332
+ request_headers = {}
333
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
334
+
335
+ # Set Headers
336
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
337
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
338
+ path_template = 'providers/Microsoft.Web/publishingUsers/web'
339
+
340
+ request_url = @base_url || self.base_url
341
+
342
+ options = {
343
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
344
+ query_params: {'api-version' => api_version},
345
+ headers: request_headers.merge(custom_headers || {}),
346
+ base_url: request_url
347
+ }
348
+ promise = self.make_request_async(:get, path_template, options)
349
+
350
+ promise = promise.then do |result|
351
+ http_response = result.response
352
+ status_code = http_response.status
353
+ response_content = http_response.body
354
+ unless status_code == 200
355
+ error_model = JSON.load(response_content)
356
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
357
+ end
358
+
359
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
360
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
361
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
362
+ # Deserialize Response
363
+ if status_code == 200
364
+ begin
365
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
366
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::User.mapper()
367
+ result.body = self.deserialize(result_mapper, parsed_response)
368
+ rescue Exception => e
369
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
370
+ end
371
+ end
372
+
373
+ result
374
+ end
375
+
376
+ promise.execute
377
+ end
378
+
379
+ #
380
+ # Updates publishing user
381
+ #
382
+ # Description for Updates publishing user
383
+ #
384
+ # @param user_details [User] Details of publishing user
385
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
386
+ # will be added to the HTTP request.
387
+ #
388
+ # @return [User] operation results.
389
+ #
390
+ def update_publishing_user(user_details, custom_headers:nil)
391
+ response = update_publishing_user_async(user_details, custom_headers:custom_headers).value!
392
+ response.body unless response.nil?
393
+ end
394
+
395
+ #
396
+ # Updates publishing user
397
+ #
398
+ # Description for Updates publishing user
399
+ #
400
+ # @param user_details [User] Details of publishing user
401
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
402
+ # will be added to the HTTP request.
403
+ #
404
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
405
+ #
406
+ def update_publishing_user_with_http_info(user_details, custom_headers:nil)
407
+ update_publishing_user_async(user_details, custom_headers:custom_headers).value!
408
+ end
409
+
410
+ #
411
+ # Updates publishing user
412
+ #
413
+ # Description for Updates publishing user
414
+ #
415
+ # @param user_details [User] Details of publishing user
416
+ # @param [Hash{String => String}] A hash of custom headers that will be added
417
+ # to the HTTP request.
418
+ #
419
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
420
+ #
421
+ def update_publishing_user_async(user_details, custom_headers:nil)
422
+ fail ArgumentError, 'user_details is nil' if user_details.nil?
423
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
424
+
425
+
426
+ request_headers = {}
427
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
428
+
429
+ # Set Headers
430
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
431
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
432
+
433
+ # Serialize Request
434
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::User.mapper()
435
+ request_content = self.serialize(request_mapper, user_details)
436
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
437
+
438
+ path_template = 'providers/Microsoft.Web/publishingUsers/web'
439
+
440
+ request_url = @base_url || self.base_url
441
+
442
+ options = {
443
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
444
+ query_params: {'api-version' => api_version},
445
+ body: request_content,
446
+ headers: request_headers.merge(custom_headers || {}),
447
+ base_url: request_url
448
+ }
449
+ promise = self.make_request_async(:put, path_template, options)
450
+
451
+ promise = promise.then do |result|
452
+ http_response = result.response
453
+ status_code = http_response.status
454
+ response_content = http_response.body
455
+ unless status_code == 200
456
+ error_model = JSON.load(response_content)
457
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
458
+ end
459
+
460
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
461
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
462
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
463
+ # Deserialize Response
464
+ if status_code == 200
465
+ begin
466
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
467
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::User.mapper()
468
+ result.body = self.deserialize(result_mapper, parsed_response)
469
+ rescue Exception => e
470
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
471
+ end
472
+ end
473
+
474
+ result
475
+ end
476
+
477
+ promise.execute
478
+ end
479
+
480
+ #
481
+ # Gets the source controls available for Azure websites.
482
+ #
483
+ # Description for Gets the source controls available for Azure websites.
484
+ #
485
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
486
+ # will be added to the HTTP request.
487
+ #
488
+ # @return [Array<SourceControl>] operation results.
489
+ #
490
+ def list_source_controls(custom_headers:nil)
491
+ first_page = list_source_controls_as_lazy(custom_headers:custom_headers)
492
+ first_page.get_all_items
493
+ end
494
+
495
+ #
496
+ # Gets the source controls available for Azure websites.
497
+ #
498
+ # Description for Gets the source controls available for Azure websites.
499
+ #
500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
501
+ # will be added to the HTTP request.
502
+ #
503
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
504
+ #
505
+ def list_source_controls_with_http_info(custom_headers:nil)
506
+ list_source_controls_async(custom_headers:custom_headers).value!
507
+ end
508
+
509
+ #
510
+ # Gets the source controls available for Azure websites.
511
+ #
512
+ # Description for Gets the source controls available for Azure websites.
513
+ #
514
+ # @param [Hash{String => String}] A hash of custom headers that will be added
515
+ # to the HTTP request.
516
+ #
517
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
518
+ #
519
+ def list_source_controls_async(custom_headers:nil)
520
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
521
+
522
+
523
+ request_headers = {}
524
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
525
+
526
+ # Set Headers
527
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
528
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
529
+ path_template = 'providers/Microsoft.Web/sourcecontrols'
530
+
531
+ request_url = @base_url || self.base_url
532
+
533
+ options = {
534
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
535
+ query_params: {'api-version' => api_version},
536
+ headers: request_headers.merge(custom_headers || {}),
537
+ base_url: request_url
538
+ }
539
+ promise = self.make_request_async(:get, path_template, options)
540
+
541
+ promise = promise.then do |result|
542
+ http_response = result.response
543
+ status_code = http_response.status
544
+ response_content = http_response.body
545
+ unless status_code == 200
546
+ error_model = JSON.load(response_content)
547
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
548
+ end
549
+
550
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
551
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
552
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
553
+ # Deserialize Response
554
+ if status_code == 200
555
+ begin
556
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
557
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SourceControlCollection.mapper()
558
+ result.body = self.deserialize(result_mapper, parsed_response)
559
+ rescue Exception => e
560
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
561
+ end
562
+ end
563
+
564
+ result
565
+ end
566
+
567
+ promise.execute
568
+ end
569
+
570
+ #
571
+ # Gets source control token
572
+ #
573
+ # Description for Gets source control token
574
+ #
575
+ # @param source_control_type [String] Type of source control
576
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
577
+ # will be added to the HTTP request.
578
+ #
579
+ # @return [SourceControl] operation results.
580
+ #
581
+ def get_source_control(source_control_type, custom_headers:nil)
582
+ response = get_source_control_async(source_control_type, custom_headers:custom_headers).value!
583
+ response.body unless response.nil?
584
+ end
585
+
586
+ #
587
+ # Gets source control token
588
+ #
589
+ # Description for Gets source control token
590
+ #
591
+ # @param source_control_type [String] Type of source control
592
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
593
+ # will be added to the HTTP request.
594
+ #
595
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
596
+ #
597
+ def get_source_control_with_http_info(source_control_type, custom_headers:nil)
598
+ get_source_control_async(source_control_type, custom_headers:custom_headers).value!
599
+ end
600
+
601
+ #
602
+ # Gets source control token
603
+ #
604
+ # Description for Gets source control token
605
+ #
606
+ # @param source_control_type [String] Type of source control
607
+ # @param [Hash{String => String}] A hash of custom headers that will be added
608
+ # to the HTTP request.
609
+ #
610
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
611
+ #
612
+ def get_source_control_async(source_control_type, custom_headers:nil)
613
+ fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
614
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
615
+
616
+
617
+ request_headers = {}
618
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
619
+
620
+ # Set Headers
621
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
622
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
623
+ path_template = 'providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
624
+
625
+ request_url = @base_url || self.base_url
626
+
627
+ options = {
628
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
629
+ path_params: {'sourceControlType' => source_control_type},
630
+ query_params: {'api-version' => api_version},
631
+ headers: request_headers.merge(custom_headers || {}),
632
+ base_url: request_url
633
+ }
634
+ promise = self.make_request_async(:get, path_template, options)
635
+
636
+ promise = promise.then do |result|
637
+ http_response = result.response
638
+ status_code = http_response.status
639
+ response_content = http_response.body
640
+ unless status_code == 200
641
+ error_model = JSON.load(response_content)
642
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
643
+ end
644
+
645
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
646
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
647
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
648
+ # Deserialize Response
649
+ if status_code == 200
650
+ begin
651
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
652
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SourceControl.mapper()
653
+ result.body = self.deserialize(result_mapper, parsed_response)
654
+ rescue Exception => e
655
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
656
+ end
657
+ end
658
+
659
+ result
660
+ end
661
+
662
+ promise.execute
663
+ end
664
+
665
+ #
666
+ # Updates source control token
667
+ #
668
+ # Description for Updates source control token
669
+ #
670
+ # @param source_control_type [String] Type of source control
671
+ # @param request_message [SourceControl] Source control token information
672
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
673
+ # will be added to the HTTP request.
674
+ #
675
+ # @return [SourceControl] operation results.
676
+ #
677
+ def update_source_control(source_control_type, request_message, custom_headers:nil)
678
+ response = update_source_control_async(source_control_type, request_message, custom_headers:custom_headers).value!
679
+ response.body unless response.nil?
680
+ end
681
+
682
+ #
683
+ # Updates source control token
684
+ #
685
+ # Description for Updates source control token
686
+ #
687
+ # @param source_control_type [String] Type of source control
688
+ # @param request_message [SourceControl] Source control token information
689
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
690
+ # will be added to the HTTP request.
691
+ #
692
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
693
+ #
694
+ def update_source_control_with_http_info(source_control_type, request_message, custom_headers:nil)
695
+ update_source_control_async(source_control_type, request_message, custom_headers:custom_headers).value!
696
+ end
697
+
698
+ #
699
+ # Updates source control token
700
+ #
701
+ # Description for Updates source control token
702
+ #
703
+ # @param source_control_type [String] Type of source control
704
+ # @param request_message [SourceControl] Source control token information
705
+ # @param [Hash{String => String}] A hash of custom headers that will be added
706
+ # to the HTTP request.
707
+ #
708
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
709
+ #
710
+ def update_source_control_async(source_control_type, request_message, custom_headers:nil)
711
+ fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
712
+ fail ArgumentError, 'request_message is nil' if request_message.nil?
713
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
714
+
715
+
716
+ request_headers = {}
717
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
718
+
719
+ # Set Headers
720
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
721
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
722
+
723
+ # Serialize Request
724
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SourceControl.mapper()
725
+ request_content = self.serialize(request_mapper, request_message)
726
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
727
+
728
+ path_template = 'providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
729
+
730
+ request_url = @base_url || self.base_url
731
+
732
+ options = {
733
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
734
+ path_params: {'sourceControlType' => source_control_type},
735
+ query_params: {'api-version' => api_version},
736
+ body: request_content,
737
+ headers: request_headers.merge(custom_headers || {}),
738
+ base_url: request_url
739
+ }
740
+ promise = self.make_request_async(:put, path_template, options)
741
+
742
+ promise = promise.then do |result|
743
+ http_response = result.response
744
+ status_code = http_response.status
745
+ response_content = http_response.body
746
+ unless status_code == 200
747
+ error_model = JSON.load(response_content)
748
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
749
+ end
750
+
751
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
752
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
753
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
754
+ # Deserialize Response
755
+ if status_code == 200
756
+ begin
757
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
758
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SourceControl.mapper()
759
+ result.body = self.deserialize(result_mapper, parsed_response)
760
+ rescue Exception => e
761
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
762
+ end
763
+ end
764
+
765
+ result
766
+ end
767
+
768
+ promise.execute
769
+ end
770
+
771
+ #
772
+ # Gets a list of meters for a given location.
773
+ #
774
+ # Description for Gets a list of meters for a given location.
775
+ #
776
+ # @param billing_location [String] Azure Location of billable resource
777
+ # @param os_type [String] App Service OS type meters used for
778
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
779
+ # will be added to the HTTP request.
780
+ #
781
+ # @return [Array<BillingMeter>] operation results.
782
+ #
783
+ def list_billing_meters(billing_location:nil, os_type:nil, custom_headers:nil)
784
+ first_page = list_billing_meters_as_lazy(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers)
785
+ first_page.get_all_items
786
+ end
787
+
788
+ #
789
+ # Gets a list of meters for a given location.
790
+ #
791
+ # Description for Gets a list of meters for a given location.
792
+ #
793
+ # @param billing_location [String] Azure Location of billable resource
794
+ # @param os_type [String] App Service OS type meters used for
795
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
796
+ # will be added to the HTTP request.
797
+ #
798
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
799
+ #
800
+ def list_billing_meters_with_http_info(billing_location:nil, os_type:nil, custom_headers:nil)
801
+ list_billing_meters_async(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers).value!
802
+ end
803
+
804
+ #
805
+ # Gets a list of meters for a given location.
806
+ #
807
+ # Description for Gets a list of meters for a given location.
808
+ #
809
+ # @param billing_location [String] Azure Location of billable resource
810
+ # @param os_type [String] App Service OS type meters used for
811
+ # @param [Hash{String => String}] A hash of custom headers that will be added
812
+ # to the HTTP request.
813
+ #
814
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
815
+ #
816
+ def list_billing_meters_async(billing_location:nil, os_type:nil, custom_headers:nil)
817
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
818
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
819
+
820
+
821
+ request_headers = {}
822
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
823
+
824
+ # Set Headers
825
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
826
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
827
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters'
828
+
829
+ request_url = @base_url || self.base_url
830
+
831
+ options = {
832
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
833
+ path_params: {'subscriptionId' => subscription_id},
834
+ query_params: {'billingLocation' => billing_location,'osType' => os_type,'api-version' => api_version},
835
+ headers: request_headers.merge(custom_headers || {}),
836
+ base_url: request_url
837
+ }
838
+ promise = self.make_request_async(:get, path_template, options)
839
+
840
+ promise = promise.then do |result|
841
+ http_response = result.response
842
+ status_code = http_response.status
843
+ response_content = http_response.body
844
+ unless status_code == 200
845
+ error_model = JSON.load(response_content)
846
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
847
+ end
848
+
849
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
850
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
851
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
852
+ # Deserialize Response
853
+ if status_code == 200
854
+ begin
855
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
856
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::BillingMeterCollection.mapper()
857
+ result.body = self.deserialize(result_mapper, parsed_response)
858
+ rescue Exception => e
859
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
860
+ end
861
+ end
862
+
863
+ result
864
+ end
865
+
866
+ promise.execute
867
+ end
868
+
869
+ #
870
+ # Check if a resource name is available.
871
+ #
872
+ # Description for Check if a resource name is available.
873
+ #
874
+ # @param name [String] Resource name to verify.
875
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
876
+ # Possible values include: 'Site', 'Slot', 'HostingEnvironment',
877
+ # 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots',
878
+ # 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
879
+ # @param is_fqdn [Boolean] Is fully qualified domain name.
880
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
881
+ # will be added to the HTTP request.
882
+ #
883
+ # @return [ResourceNameAvailability] operation results.
884
+ #
885
+ def check_name_availability(name, type, is_fqdn:nil, custom_headers:nil)
886
+ response = check_name_availability_async(name, type, is_fqdn:is_fqdn, custom_headers:custom_headers).value!
887
+ response.body unless response.nil?
888
+ end
889
+
890
+ #
891
+ # Check if a resource name is available.
892
+ #
893
+ # Description for Check if a resource name is available.
894
+ #
895
+ # @param name [String] Resource name to verify.
896
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
897
+ # Possible values include: 'Site', 'Slot', 'HostingEnvironment',
898
+ # 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots',
899
+ # 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
900
+ # @param is_fqdn [Boolean] Is fully qualified domain name.
901
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
902
+ # will be added to the HTTP request.
903
+ #
904
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
905
+ #
906
+ def check_name_availability_with_http_info(name, type, is_fqdn:nil, custom_headers:nil)
907
+ check_name_availability_async(name, type, is_fqdn:is_fqdn, custom_headers:custom_headers).value!
908
+ end
909
+
910
+ #
911
+ # Check if a resource name is available.
912
+ #
913
+ # Description for Check if a resource name is available.
914
+ #
915
+ # @param name [String] Resource name to verify.
916
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
917
+ # Possible values include: 'Site', 'Slot', 'HostingEnvironment',
918
+ # 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots',
919
+ # 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
920
+ # @param is_fqdn [Boolean] Is fully qualified domain name.
921
+ # @param [Hash{String => String}] A hash of custom headers that will be added
922
+ # to the HTTP request.
923
+ #
924
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
925
+ #
926
+ def check_name_availability_async(name, type, is_fqdn:nil, custom_headers:nil)
927
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
928
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
929
+ fail ArgumentError, 'name is nil' if name.nil?
930
+ fail ArgumentError, 'type is nil' if type.nil?
931
+
932
+ request = ResourceNameAvailabilityRequest.new
933
+ unless name.nil? && type.nil? && is_fqdn.nil?
934
+ request.name = name
935
+ request.type = type
936
+ request.is_fqdn = is_fqdn
937
+ end
938
+
939
+ request_headers = {}
940
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
941
+
942
+ # Set Headers
943
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
944
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
945
+
946
+ # Serialize Request
947
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::ResourceNameAvailabilityRequest.mapper()
948
+ request_content = self.serialize(request_mapper, request)
949
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
950
+
951
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
952
+
953
+ request_url = @base_url || self.base_url
954
+
955
+ options = {
956
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
957
+ path_params: {'subscriptionId' => subscription_id},
958
+ query_params: {'api-version' => api_version},
959
+ body: request_content,
960
+ headers: request_headers.merge(custom_headers || {}),
961
+ base_url: request_url
962
+ }
963
+ promise = self.make_request_async(:post, path_template, options)
964
+
965
+ promise = promise.then do |result|
966
+ http_response = result.response
967
+ status_code = http_response.status
968
+ response_content = http_response.body
969
+ unless status_code == 200
970
+ error_model = JSON.load(response_content)
971
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
972
+ end
973
+
974
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
975
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
976
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
977
+ # Deserialize Response
978
+ if status_code == 200
979
+ begin
980
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
981
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::ResourceNameAvailability.mapper()
982
+ result.body = self.deserialize(result_mapper, parsed_response)
983
+ rescue Exception => e
984
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
985
+ end
986
+ end
987
+
988
+ result
989
+ end
990
+
991
+ promise.execute
992
+ end
993
+
994
+ #
995
+ # Gets list of available geo regions plus ministamps
996
+ #
997
+ # Description for Gets list of available geo regions plus ministamps
998
+ #
999
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1000
+ # will be added to the HTTP request.
1001
+ #
1002
+ # @return [DeploymentLocations] operation results.
1003
+ #
1004
+ def get_subscription_deployment_locations(custom_headers:nil)
1005
+ response = get_subscription_deployment_locations_async(custom_headers:custom_headers).value!
1006
+ response.body unless response.nil?
1007
+ end
1008
+
1009
+ #
1010
+ # Gets list of available geo regions plus ministamps
1011
+ #
1012
+ # Description for Gets list of available geo regions plus ministamps
1013
+ #
1014
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1015
+ # will be added to the HTTP request.
1016
+ #
1017
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1018
+ #
1019
+ def get_subscription_deployment_locations_with_http_info(custom_headers:nil)
1020
+ get_subscription_deployment_locations_async(custom_headers:custom_headers).value!
1021
+ end
1022
+
1023
+ #
1024
+ # Gets list of available geo regions plus ministamps
1025
+ #
1026
+ # Description for Gets list of available geo regions plus ministamps
1027
+ #
1028
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1029
+ # to the HTTP request.
1030
+ #
1031
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1032
+ #
1033
+ def get_subscription_deployment_locations_async(custom_headers:nil)
1034
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1035
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1036
+
1037
+
1038
+ request_headers = {}
1039
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1040
+
1041
+ # Set Headers
1042
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1043
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1044
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations'
1045
+
1046
+ request_url = @base_url || self.base_url
1047
+
1048
+ options = {
1049
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1050
+ path_params: {'subscriptionId' => subscription_id},
1051
+ query_params: {'api-version' => api_version},
1052
+ headers: request_headers.merge(custom_headers || {}),
1053
+ base_url: request_url
1054
+ }
1055
+ promise = self.make_request_async(:get, path_template, options)
1056
+
1057
+ promise = promise.then do |result|
1058
+ http_response = result.response
1059
+ status_code = http_response.status
1060
+ response_content = http_response.body
1061
+ unless status_code == 200
1062
+ error_model = JSON.load(response_content)
1063
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1064
+ end
1065
+
1066
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1067
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1068
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1069
+ # Deserialize Response
1070
+ if status_code == 200
1071
+ begin
1072
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1073
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DeploymentLocations.mapper()
1074
+ result.body = self.deserialize(result_mapper, parsed_response)
1075
+ rescue Exception => e
1076
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1077
+ end
1078
+ end
1079
+
1080
+ result
1081
+ end
1082
+
1083
+ promise.execute
1084
+ end
1085
+
1086
+ #
1087
+ # Get a list of available geographical regions.
1088
+ #
1089
+ # Description for Get a list of available geographical regions.
1090
+ #
1091
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
1092
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
1093
+ # 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
1094
+ # @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
1095
+ # to filter to only regions that support Linux workers.
1096
+ # @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
1097
+ # to filter to only regions that support Xenon workers.
1098
+ # @param linux_dynamic_workers_enabled [Boolean] Specify <code>true</code> if
1099
+ # you want to filter to only regions that support Linux Consumption Workers.
1100
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1101
+ # will be added to the HTTP request.
1102
+ #
1103
+ # @return [Array<GeoRegion>] operation results.
1104
+ #
1105
+ def list_geo_regions(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, linux_dynamic_workers_enabled:nil, custom_headers:nil)
1106
+ first_page = list_geo_regions_as_lazy(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, linux_dynamic_workers_enabled:linux_dynamic_workers_enabled, custom_headers:custom_headers)
1107
+ first_page.get_all_items
1108
+ end
1109
+
1110
+ #
1111
+ # Get a list of available geographical regions.
1112
+ #
1113
+ # Description for Get a list of available geographical regions.
1114
+ #
1115
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
1116
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
1117
+ # 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
1118
+ # @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
1119
+ # to filter to only regions that support Linux workers.
1120
+ # @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
1121
+ # to filter to only regions that support Xenon workers.
1122
+ # @param linux_dynamic_workers_enabled [Boolean] Specify <code>true</code> if
1123
+ # you want to filter to only regions that support Linux Consumption Workers.
1124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1125
+ # will be added to the HTTP request.
1126
+ #
1127
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1128
+ #
1129
+ def list_geo_regions_with_http_info(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, linux_dynamic_workers_enabled:nil, custom_headers:nil)
1130
+ list_geo_regions_async(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, linux_dynamic_workers_enabled:linux_dynamic_workers_enabled, custom_headers:custom_headers).value!
1131
+ end
1132
+
1133
+ #
1134
+ # Get a list of available geographical regions.
1135
+ #
1136
+ # Description for Get a list of available geographical regions.
1137
+ #
1138
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
1139
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
1140
+ # 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
1141
+ # @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
1142
+ # to filter to only regions that support Linux workers.
1143
+ # @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
1144
+ # to filter to only regions that support Xenon workers.
1145
+ # @param linux_dynamic_workers_enabled [Boolean] Specify <code>true</code> if
1146
+ # you want to filter to only regions that support Linux Consumption Workers.
1147
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1148
+ # to the HTTP request.
1149
+ #
1150
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1151
+ #
1152
+ def list_geo_regions_async(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, linux_dynamic_workers_enabled:nil, custom_headers:nil)
1153
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1154
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1155
+
1156
+
1157
+ request_headers = {}
1158
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1159
+
1160
+ # Set Headers
1161
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1162
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1163
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
1164
+
1165
+ request_url = @base_url || self.base_url
1166
+
1167
+ options = {
1168
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1169
+ path_params: {'subscriptionId' => subscription_id},
1170
+ query_params: {'sku' => sku,'linuxWorkersEnabled' => linux_workers_enabled,'xenonWorkersEnabled' => xenon_workers_enabled,'linuxDynamicWorkersEnabled' => linux_dynamic_workers_enabled,'api-version' => api_version},
1171
+ headers: request_headers.merge(custom_headers || {}),
1172
+ base_url: request_url
1173
+ }
1174
+ promise = self.make_request_async(:get, path_template, options)
1175
+
1176
+ promise = promise.then do |result|
1177
+ http_response = result.response
1178
+ status_code = http_response.status
1179
+ response_content = http_response.body
1180
+ unless status_code == 200
1181
+ error_model = JSON.load(response_content)
1182
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1183
+ end
1184
+
1185
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1186
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1187
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1188
+ # Deserialize Response
1189
+ if status_code == 200
1190
+ begin
1191
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1192
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::GeoRegionCollection.mapper()
1193
+ result.body = self.deserialize(result_mapper, parsed_response)
1194
+ rescue Exception => e
1195
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1196
+ end
1197
+ end
1198
+
1199
+ result
1200
+ end
1201
+
1202
+ promise.execute
1203
+ end
1204
+
1205
+ #
1206
+ # List all apps that are assigned to a hostname.
1207
+ #
1208
+ # Description for List all apps that are assigned to a hostname.
1209
+ #
1210
+ # @param name_identifier [NameIdentifier] Hostname information.
1211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1212
+ # will be added to the HTTP request.
1213
+ #
1214
+ # @return [Array<Identifier>] operation results.
1215
+ #
1216
+ def list_site_identifiers_assigned_to_host_name(name_identifier, custom_headers:nil)
1217
+ first_page = list_site_identifiers_assigned_to_host_name_as_lazy(name_identifier, custom_headers:custom_headers)
1218
+ first_page.get_all_items
1219
+ end
1220
+
1221
+ #
1222
+ # List all apps that are assigned to a hostname.
1223
+ #
1224
+ # Description for List all apps that are assigned to a hostname.
1225
+ #
1226
+ # @param name_identifier [NameIdentifier] Hostname information.
1227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1228
+ # will be added to the HTTP request.
1229
+ #
1230
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1231
+ #
1232
+ def list_site_identifiers_assigned_to_host_name_with_http_info(name_identifier, custom_headers:nil)
1233
+ list_site_identifiers_assigned_to_host_name_async(name_identifier, custom_headers:custom_headers).value!
1234
+ end
1235
+
1236
+ #
1237
+ # List all apps that are assigned to a hostname.
1238
+ #
1239
+ # Description for List all apps that are assigned to a hostname.
1240
+ #
1241
+ # @param name_identifier [NameIdentifier] Hostname information.
1242
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1243
+ # to the HTTP request.
1244
+ #
1245
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1246
+ #
1247
+ def list_site_identifiers_assigned_to_host_name_async(name_identifier, custom_headers:nil)
1248
+ fail ArgumentError, 'name_identifier is nil' if name_identifier.nil?
1249
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1250
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1251
+
1252
+
1253
+ request_headers = {}
1254
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1255
+
1256
+ # Set Headers
1257
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1258
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1259
+
1260
+ # Serialize Request
1261
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::NameIdentifier.mapper()
1262
+ request_content = self.serialize(request_mapper, name_identifier)
1263
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1264
+
1265
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName'
1266
+
1267
+ request_url = @base_url || self.base_url
1268
+
1269
+ options = {
1270
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1271
+ path_params: {'subscriptionId' => subscription_id},
1272
+ query_params: {'api-version' => api_version},
1273
+ body: request_content,
1274
+ headers: request_headers.merge(custom_headers || {}),
1275
+ base_url: request_url
1276
+ }
1277
+ promise = self.make_request_async(:post, path_template, options)
1278
+
1279
+ promise = promise.then do |result|
1280
+ http_response = result.response
1281
+ status_code = http_response.status
1282
+ response_content = http_response.body
1283
+ unless status_code == 200
1284
+ error_model = JSON.load(response_content)
1285
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1286
+ end
1287
+
1288
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1289
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1290
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1291
+ # Deserialize Response
1292
+ if status_code == 200
1293
+ begin
1294
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1295
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::IdentifierCollection.mapper()
1296
+ result.body = self.deserialize(result_mapper, parsed_response)
1297
+ rescue Exception => e
1298
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1299
+ end
1300
+ end
1301
+
1302
+ result
1303
+ end
1304
+
1305
+ promise.execute
1306
+ end
1307
+
1308
+ #
1309
+ # List all premier add-on offers.
1310
+ #
1311
+ # Description for List all premier add-on offers.
1312
+ #
1313
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1314
+ # will be added to the HTTP request.
1315
+ #
1316
+ # @return [Array<PremierAddOnOffer>] operation results.
1317
+ #
1318
+ def list_premier_add_on_offers(custom_headers:nil)
1319
+ first_page = list_premier_add_on_offers_as_lazy(custom_headers:custom_headers)
1320
+ first_page.get_all_items
1321
+ end
1322
+
1323
+ #
1324
+ # List all premier add-on offers.
1325
+ #
1326
+ # Description for List all premier add-on offers.
1327
+ #
1328
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1329
+ # will be added to the HTTP request.
1330
+ #
1331
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1332
+ #
1333
+ def list_premier_add_on_offers_with_http_info(custom_headers:nil)
1334
+ list_premier_add_on_offers_async(custom_headers:custom_headers).value!
1335
+ end
1336
+
1337
+ #
1338
+ # List all premier add-on offers.
1339
+ #
1340
+ # Description for List all premier add-on offers.
1341
+ #
1342
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1343
+ # to the HTTP request.
1344
+ #
1345
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1346
+ #
1347
+ def list_premier_add_on_offers_async(custom_headers:nil)
1348
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1349
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1350
+
1351
+
1352
+ request_headers = {}
1353
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1354
+
1355
+ # Set Headers
1356
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1357
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1358
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
1359
+
1360
+ request_url = @base_url || self.base_url
1361
+
1362
+ options = {
1363
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1364
+ path_params: {'subscriptionId' => subscription_id},
1365
+ query_params: {'api-version' => api_version},
1366
+ headers: request_headers.merge(custom_headers || {}),
1367
+ base_url: request_url
1368
+ }
1369
+ promise = self.make_request_async(:get, path_template, options)
1370
+
1371
+ promise = promise.then do |result|
1372
+ http_response = result.response
1373
+ status_code = http_response.status
1374
+ response_content = http_response.body
1375
+ unless status_code == 200
1376
+ error_model = JSON.load(response_content)
1377
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1378
+ end
1379
+
1380
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1381
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1382
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1383
+ # Deserialize Response
1384
+ if status_code == 200
1385
+ begin
1386
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1387
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::PremierAddOnOfferCollection.mapper()
1388
+ result.body = self.deserialize(result_mapper, parsed_response)
1389
+ rescue Exception => e
1390
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1391
+ end
1392
+ end
1393
+
1394
+ result
1395
+ end
1396
+
1397
+ promise.execute
1398
+ end
1399
+
1400
+ #
1401
+ # List all SKUs.
1402
+ #
1403
+ # Description for List all SKUs.
1404
+ #
1405
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1406
+ # will be added to the HTTP request.
1407
+ #
1408
+ # @return [SkuInfos] operation results.
1409
+ #
1410
+ def list_skus(custom_headers:nil)
1411
+ response = list_skus_async(custom_headers:custom_headers).value!
1412
+ response.body unless response.nil?
1413
+ end
1414
+
1415
+ #
1416
+ # List all SKUs.
1417
+ #
1418
+ # Description for List all SKUs.
1419
+ #
1420
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1421
+ # will be added to the HTTP request.
1422
+ #
1423
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1424
+ #
1425
+ def list_skus_with_http_info(custom_headers:nil)
1426
+ list_skus_async(custom_headers:custom_headers).value!
1427
+ end
1428
+
1429
+ #
1430
+ # List all SKUs.
1431
+ #
1432
+ # Description for List all SKUs.
1433
+ #
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_skus_async(custom_headers:nil)
1440
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1441
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1442
+
1443
+
1444
+ request_headers = {}
1445
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1446
+
1447
+ # Set Headers
1448
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1449
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1450
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/skus'
1451
+
1452
+ request_url = @base_url || self.base_url
1453
+
1454
+ options = {
1455
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1456
+ path_params: {'subscriptionId' => subscription_id},
1457
+ query_params: {'api-version' => api_version},
1458
+ headers: request_headers.merge(custom_headers || {}),
1459
+ base_url: request_url
1460
+ }
1461
+ promise = self.make_request_async(:get, path_template, options)
1462
+
1463
+ promise = promise.then do |result|
1464
+ http_response = result.response
1465
+ status_code = http_response.status
1466
+ response_content = http_response.body
1467
+ unless status_code == 200
1468
+ error_model = JSON.load(response_content)
1469
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1470
+ end
1471
+
1472
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1473
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1474
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1475
+ # Deserialize Response
1476
+ if status_code == 200
1477
+ begin
1478
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1479
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SkuInfos.mapper()
1480
+ result.body = self.deserialize(result_mapper, parsed_response)
1481
+ rescue Exception => e
1482
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1483
+ end
1484
+ end
1485
+
1486
+ result
1487
+ end
1488
+
1489
+ promise.execute
1490
+ end
1491
+
1492
+ #
1493
+ # Verifies if this VNET is compatible with an App Service Environment by
1494
+ # analyzing the Network Security Group rules.
1495
+ #
1496
+ # Description for Verifies if this VNET is compatible with an App Service
1497
+ # Environment by analyzing the Network Security Group rules.
1498
+ #
1499
+ # @param parameters [VnetParameters] VNET information
1500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1501
+ # will be added to the HTTP request.
1502
+ #
1503
+ # @return [VnetValidationFailureDetails] operation results.
1504
+ #
1505
+ def verify_hosting_environment_vnet(parameters, custom_headers:nil)
1506
+ response = verify_hosting_environment_vnet_async(parameters, custom_headers:custom_headers).value!
1507
+ response.body unless response.nil?
1508
+ end
1509
+
1510
+ #
1511
+ # Verifies if this VNET is compatible with an App Service Environment by
1512
+ # analyzing the Network Security Group rules.
1513
+ #
1514
+ # Description for Verifies if this VNET is compatible with an App Service
1515
+ # Environment by analyzing the Network Security Group rules.
1516
+ #
1517
+ # @param parameters [VnetParameters] VNET information
1518
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1519
+ # will be added to the HTTP request.
1520
+ #
1521
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1522
+ #
1523
+ def verify_hosting_environment_vnet_with_http_info(parameters, custom_headers:nil)
1524
+ verify_hosting_environment_vnet_async(parameters, custom_headers:custom_headers).value!
1525
+ end
1526
+
1527
+ #
1528
+ # Verifies if this VNET is compatible with an App Service Environment by
1529
+ # analyzing the Network Security Group rules.
1530
+ #
1531
+ # Description for Verifies if this VNET is compatible with an App Service
1532
+ # Environment by analyzing the Network Security Group rules.
1533
+ #
1534
+ # @param parameters [VnetParameters] VNET information
1535
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1536
+ # to the HTTP request.
1537
+ #
1538
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1539
+ #
1540
+ def verify_hosting_environment_vnet_async(parameters, custom_headers:nil)
1541
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1542
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1543
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1544
+
1545
+
1546
+ request_headers = {}
1547
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1548
+
1549
+ # Set Headers
1550
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1551
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1552
+
1553
+ # Serialize Request
1554
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::VnetParameters.mapper()
1555
+ request_content = self.serialize(request_mapper, parameters)
1556
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1557
+
1558
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet'
1559
+
1560
+ request_url = @base_url || self.base_url
1561
+
1562
+ options = {
1563
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1564
+ path_params: {'subscriptionId' => subscription_id},
1565
+ query_params: {'api-version' => api_version},
1566
+ body: request_content,
1567
+ headers: request_headers.merge(custom_headers || {}),
1568
+ base_url: request_url
1569
+ }
1570
+ promise = self.make_request_async(:post, path_template, options)
1571
+
1572
+ promise = promise.then do |result|
1573
+ http_response = result.response
1574
+ status_code = http_response.status
1575
+ response_content = http_response.body
1576
+ unless status_code == 200
1577
+ error_model = JSON.load(response_content)
1578
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1579
+ end
1580
+
1581
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1582
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1583
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1584
+ # Deserialize Response
1585
+ if status_code == 200
1586
+ begin
1587
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1588
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::VnetValidationFailureDetails.mapper()
1589
+ result.body = self.deserialize(result_mapper, parsed_response)
1590
+ rescue Exception => e
1591
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1592
+ end
1593
+ end
1594
+
1595
+ result
1596
+ end
1597
+
1598
+ promise.execute
1599
+ end
1600
+
1601
+ #
1602
+ # Move resources between resource groups.
1603
+ #
1604
+ # Description for Move resources between resource groups.
1605
+ #
1606
+ # @param resource_group_name [String] Name of the resource group to which the
1607
+ # resource belongs.
1608
+ # @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
1609
+ # represents the resource to move.
1610
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1611
+ # will be added to the HTTP request.
1612
+ #
1613
+ #
1614
+ def move(resource_group_name, move_resource_envelope, custom_headers:nil)
1615
+ response = move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
1616
+ nil
1617
+ end
1618
+
1619
+ #
1620
+ # Move resources between resource groups.
1621
+ #
1622
+ # Description for Move resources between resource groups.
1623
+ #
1624
+ # @param resource_group_name [String] Name of the resource group to which the
1625
+ # resource belongs.
1626
+ # @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
1627
+ # represents the resource to move.
1628
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1629
+ # will be added to the HTTP request.
1630
+ #
1631
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1632
+ #
1633
+ def move_with_http_info(resource_group_name, move_resource_envelope, custom_headers:nil)
1634
+ move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
1635
+ end
1636
+
1637
+ #
1638
+ # Move resources between resource groups.
1639
+ #
1640
+ # Description for Move resources between resource groups.
1641
+ #
1642
+ # @param resource_group_name [String] Name of the resource group to which the
1643
+ # resource belongs.
1644
+ # @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
1645
+ # represents the resource to move.
1646
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1647
+ # to the HTTP request.
1648
+ #
1649
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1650
+ #
1651
+ def move_async(resource_group_name, move_resource_envelope, custom_headers:nil)
1652
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1653
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1654
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1655
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1656
+ fail ArgumentError, 'move_resource_envelope is nil' if move_resource_envelope.nil?
1657
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1658
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1659
+
1660
+
1661
+ request_headers = {}
1662
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1663
+
1664
+ # Set Headers
1665
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1666
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1667
+
1668
+ # Serialize Request
1669
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::CsmMoveResourceEnvelope.mapper()
1670
+ request_content = self.serialize(request_mapper, move_resource_envelope)
1671
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1672
+
1673
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources'
1674
+
1675
+ request_url = @base_url || self.base_url
1676
+
1677
+ options = {
1678
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1679
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => subscription_id},
1680
+ query_params: {'api-version' => api_version},
1681
+ body: request_content,
1682
+ headers: request_headers.merge(custom_headers || {}),
1683
+ base_url: request_url
1684
+ }
1685
+ promise = self.make_request_async(:post, path_template, options)
1686
+
1687
+ promise = promise.then do |result|
1688
+ http_response = result.response
1689
+ status_code = http_response.status
1690
+ response_content = http_response.body
1691
+ unless status_code == 204
1692
+ error_model = JSON.load(response_content)
1693
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1694
+ end
1695
+
1696
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1697
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1698
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1699
+
1700
+ result
1701
+ end
1702
+
1703
+ promise.execute
1704
+ end
1705
+
1706
+ #
1707
+ # Validate if a resource can be created.
1708
+ #
1709
+ # Description for Validate if a resource can be created.
1710
+ #
1711
+ # @param resource_group_name [String] Name of the resource group to which the
1712
+ # resource belongs.
1713
+ # @param validate_request [ValidateRequest] Request with the resources to
1714
+ # validate.
1715
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1716
+ # will be added to the HTTP request.
1717
+ #
1718
+ # @return [ValidateResponse] operation results.
1719
+ #
1720
+ def validate(resource_group_name, validate_request, custom_headers:nil)
1721
+ response = validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value!
1722
+ response.body unless response.nil?
1723
+ end
1724
+
1725
+ #
1726
+ # Validate if a resource can be created.
1727
+ #
1728
+ # Description for Validate if a resource can be created.
1729
+ #
1730
+ # @param resource_group_name [String] Name of the resource group to which the
1731
+ # resource belongs.
1732
+ # @param validate_request [ValidateRequest] Request with the resources to
1733
+ # validate.
1734
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1735
+ # will be added to the HTTP request.
1736
+ #
1737
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1738
+ #
1739
+ def validate_with_http_info(resource_group_name, validate_request, custom_headers:nil)
1740
+ validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value!
1741
+ end
1742
+
1743
+ #
1744
+ # Validate if a resource can be created.
1745
+ #
1746
+ # Description for Validate if a resource can be created.
1747
+ #
1748
+ # @param resource_group_name [String] Name of the resource group to which the
1749
+ # resource belongs.
1750
+ # @param validate_request [ValidateRequest] Request with the resources to
1751
+ # validate.
1752
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1753
+ # to the HTTP request.
1754
+ #
1755
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1756
+ #
1757
+ def validate_async(resource_group_name, validate_request, custom_headers:nil)
1758
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1759
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1760
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1761
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1762
+ fail ArgumentError, 'validate_request is nil' if validate_request.nil?
1763
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1764
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1765
+
1766
+
1767
+ request_headers = {}
1768
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1769
+
1770
+ # Set Headers
1771
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1772
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1773
+
1774
+ # Serialize Request
1775
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::ValidateRequest.mapper()
1776
+ request_content = self.serialize(request_mapper, validate_request)
1777
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1778
+
1779
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate'
1780
+
1781
+ request_url = @base_url || self.base_url
1782
+
1783
+ options = {
1784
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1785
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => subscription_id},
1786
+ query_params: {'api-version' => api_version},
1787
+ body: request_content,
1788
+ headers: request_headers.merge(custom_headers || {}),
1789
+ base_url: request_url
1790
+ }
1791
+ promise = self.make_request_async(:post, path_template, options)
1792
+
1793
+ promise = promise.then do |result|
1794
+ http_response = result.response
1795
+ status_code = http_response.status
1796
+ response_content = http_response.body
1797
+ unless status_code == 200
1798
+ error_model = JSON.load(response_content)
1799
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1800
+ end
1801
+
1802
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1803
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1804
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1805
+ # Deserialize Response
1806
+ if status_code == 200
1807
+ begin
1808
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1809
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::ValidateResponse.mapper()
1810
+ result.body = self.deserialize(result_mapper, parsed_response)
1811
+ rescue Exception => e
1812
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1813
+ end
1814
+ end
1815
+
1816
+ result
1817
+ end
1818
+
1819
+ promise.execute
1820
+ end
1821
+
1822
+ #
1823
+ # Validate whether a resource can be moved.
1824
+ #
1825
+ # Description for Validate whether a resource can be moved.
1826
+ #
1827
+ # @param resource_group_name [String] Name of the resource group to which the
1828
+ # resource belongs.
1829
+ # @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
1830
+ # represents the resource to move.
1831
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1832
+ # will be added to the HTTP request.
1833
+ #
1834
+ #
1835
+ def validate_move(resource_group_name, move_resource_envelope, custom_headers:nil)
1836
+ response = validate_move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
1837
+ nil
1838
+ end
1839
+
1840
+ #
1841
+ # Validate whether a resource can be moved.
1842
+ #
1843
+ # Description for Validate whether a resource can be moved.
1844
+ #
1845
+ # @param resource_group_name [String] Name of the resource group to which the
1846
+ # resource belongs.
1847
+ # @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
1848
+ # represents the resource to move.
1849
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1850
+ # will be added to the HTTP request.
1851
+ #
1852
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1853
+ #
1854
+ def validate_move_with_http_info(resource_group_name, move_resource_envelope, custom_headers:nil)
1855
+ validate_move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
1856
+ end
1857
+
1858
+ #
1859
+ # Validate whether a resource can be moved.
1860
+ #
1861
+ # Description for Validate whether a resource can be moved.
1862
+ #
1863
+ # @param resource_group_name [String] Name of the resource group to which the
1864
+ # resource belongs.
1865
+ # @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
1866
+ # represents the resource to move.
1867
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1868
+ # to the HTTP request.
1869
+ #
1870
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1871
+ #
1872
+ def validate_move_async(resource_group_name, move_resource_envelope, custom_headers:nil)
1873
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1874
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1875
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1876
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1877
+ fail ArgumentError, 'move_resource_envelope is nil' if move_resource_envelope.nil?
1878
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1879
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1880
+
1881
+
1882
+ request_headers = {}
1883
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1884
+
1885
+ # Set Headers
1886
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1887
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1888
+
1889
+ # Serialize Request
1890
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::CsmMoveResourceEnvelope.mapper()
1891
+ request_content = self.serialize(request_mapper, move_resource_envelope)
1892
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1893
+
1894
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources'
1895
+
1896
+ request_url = @base_url || self.base_url
1897
+
1898
+ options = {
1899
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1900
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => subscription_id},
1901
+ query_params: {'api-version' => api_version},
1902
+ body: request_content,
1903
+ headers: request_headers.merge(custom_headers || {}),
1904
+ base_url: request_url
1905
+ }
1906
+ promise = self.make_request_async(:post, path_template, options)
1907
+
1908
+ promise = promise.then do |result|
1909
+ http_response = result.response
1910
+ status_code = http_response.status
1911
+ response_content = http_response.body
1912
+ unless status_code == 204
1913
+ error_model = JSON.load(response_content)
1914
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1915
+ end
1916
+
1917
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1918
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1919
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1920
+
1921
+ result
1922
+ end
1923
+
1924
+ promise.execute
1925
+ end
1926
+
1927
+ #
1928
+ # Gets the source controls available for Azure websites.
1929
+ #
1930
+ # Description for Gets the source controls available for Azure websites.
1931
+ #
1932
+ # @param next_page_link [String] The NextLink from the previous successful call
1933
+ # to List operation.
1934
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1935
+ # will be added to the HTTP request.
1936
+ #
1937
+ # @return [SourceControlCollection] operation results.
1938
+ #
1939
+ def list_source_controls_next(next_page_link, custom_headers:nil)
1940
+ response = list_source_controls_next_async(next_page_link, custom_headers:custom_headers).value!
1941
+ response.body unless response.nil?
1942
+ end
1943
+
1944
+ #
1945
+ # Gets the source controls available for Azure websites.
1946
+ #
1947
+ # Description for Gets the source controls available for Azure websites.
1948
+ #
1949
+ # @param next_page_link [String] The NextLink from the previous successful call
1950
+ # to List operation.
1951
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1952
+ # will be added to the HTTP request.
1953
+ #
1954
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1955
+ #
1956
+ def list_source_controls_next_with_http_info(next_page_link, custom_headers:nil)
1957
+ list_source_controls_next_async(next_page_link, custom_headers:custom_headers).value!
1958
+ end
1959
+
1960
+ #
1961
+ # Gets the source controls available for Azure websites.
1962
+ #
1963
+ # Description for Gets the source controls available for Azure websites.
1964
+ #
1965
+ # @param next_page_link [String] The NextLink from the previous successful call
1966
+ # to List operation.
1967
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1968
+ # to the HTTP request.
1969
+ #
1970
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1971
+ #
1972
+ def list_source_controls_next_async(next_page_link, custom_headers:nil)
1973
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1974
+
1975
+
1976
+ request_headers = {}
1977
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1978
+
1979
+ # Set Headers
1980
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1981
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1982
+ path_template = '{nextLink}'
1983
+
1984
+ request_url = @base_url || self.base_url
1985
+
1986
+ options = {
1987
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1988
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1989
+ headers: request_headers.merge(custom_headers || {}),
1990
+ base_url: request_url
1991
+ }
1992
+ promise = self.make_request_async(:get, path_template, options)
1993
+
1994
+ promise = promise.then do |result|
1995
+ http_response = result.response
1996
+ status_code = http_response.status
1997
+ response_content = http_response.body
1998
+ unless status_code == 200
1999
+ error_model = JSON.load(response_content)
2000
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2001
+ end
2002
+
2003
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2004
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2005
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2006
+ # Deserialize Response
2007
+ if status_code == 200
2008
+ begin
2009
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2010
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SourceControlCollection.mapper()
2011
+ result.body = self.deserialize(result_mapper, parsed_response)
2012
+ rescue Exception => e
2013
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2014
+ end
2015
+ end
2016
+
2017
+ result
2018
+ end
2019
+
2020
+ promise.execute
2021
+ end
2022
+
2023
+ #
2024
+ # Gets a list of meters for a given location.
2025
+ #
2026
+ # Description for Gets a list of meters for a given location.
2027
+ #
2028
+ # @param next_page_link [String] The NextLink from the previous successful call
2029
+ # to List operation.
2030
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2031
+ # will be added to the HTTP request.
2032
+ #
2033
+ # @return [BillingMeterCollection] operation results.
2034
+ #
2035
+ def list_billing_meters_next(next_page_link, custom_headers:nil)
2036
+ response = list_billing_meters_next_async(next_page_link, custom_headers:custom_headers).value!
2037
+ response.body unless response.nil?
2038
+ end
2039
+
2040
+ #
2041
+ # Gets a list of meters for a given location.
2042
+ #
2043
+ # Description for Gets a list of meters for a given location.
2044
+ #
2045
+ # @param next_page_link [String] The NextLink from the previous successful call
2046
+ # to List operation.
2047
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2048
+ # will be added to the HTTP request.
2049
+ #
2050
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2051
+ #
2052
+ def list_billing_meters_next_with_http_info(next_page_link, custom_headers:nil)
2053
+ list_billing_meters_next_async(next_page_link, custom_headers:custom_headers).value!
2054
+ end
2055
+
2056
+ #
2057
+ # Gets a list of meters for a given location.
2058
+ #
2059
+ # Description for Gets a list of meters for a given location.
2060
+ #
2061
+ # @param next_page_link [String] The NextLink from the previous successful call
2062
+ # to List operation.
2063
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2064
+ # to the HTTP request.
2065
+ #
2066
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2067
+ #
2068
+ def list_billing_meters_next_async(next_page_link, custom_headers:nil)
2069
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2070
+
2071
+
2072
+ request_headers = {}
2073
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2074
+
2075
+ # Set Headers
2076
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2077
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2078
+ path_template = '{nextLink}'
2079
+
2080
+ request_url = @base_url || self.base_url
2081
+
2082
+ options = {
2083
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2084
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2085
+ headers: request_headers.merge(custom_headers || {}),
2086
+ base_url: request_url
2087
+ }
2088
+ promise = self.make_request_async(:get, path_template, options)
2089
+
2090
+ promise = promise.then do |result|
2091
+ http_response = result.response
2092
+ status_code = http_response.status
2093
+ response_content = http_response.body
2094
+ unless status_code == 200
2095
+ error_model = JSON.load(response_content)
2096
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2097
+ end
2098
+
2099
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2100
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2101
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2102
+ # Deserialize Response
2103
+ if status_code == 200
2104
+ begin
2105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2106
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::BillingMeterCollection.mapper()
2107
+ result.body = self.deserialize(result_mapper, parsed_response)
2108
+ rescue Exception => e
2109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2110
+ end
2111
+ end
2112
+
2113
+ result
2114
+ end
2115
+
2116
+ promise.execute
2117
+ end
2118
+
2119
+ #
2120
+ # Get a list of available geographical regions.
2121
+ #
2122
+ # Description for Get a list of available geographical regions.
2123
+ #
2124
+ # @param next_page_link [String] The NextLink from the previous successful call
2125
+ # to List operation.
2126
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2127
+ # will be added to the HTTP request.
2128
+ #
2129
+ # @return [GeoRegionCollection] operation results.
2130
+ #
2131
+ def list_geo_regions_next(next_page_link, custom_headers:nil)
2132
+ response = list_geo_regions_next_async(next_page_link, custom_headers:custom_headers).value!
2133
+ response.body unless response.nil?
2134
+ end
2135
+
2136
+ #
2137
+ # Get a list of available geographical regions.
2138
+ #
2139
+ # Description for Get a list of available geographical regions.
2140
+ #
2141
+ # @param next_page_link [String] The NextLink from the previous successful call
2142
+ # to List operation.
2143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2144
+ # will be added to the HTTP request.
2145
+ #
2146
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2147
+ #
2148
+ def list_geo_regions_next_with_http_info(next_page_link, custom_headers:nil)
2149
+ list_geo_regions_next_async(next_page_link, custom_headers:custom_headers).value!
2150
+ end
2151
+
2152
+ #
2153
+ # Get a list of available geographical regions.
2154
+ #
2155
+ # Description for Get a list of available geographical regions.
2156
+ #
2157
+ # @param next_page_link [String] The NextLink from the previous successful call
2158
+ # to List operation.
2159
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2160
+ # to the HTTP request.
2161
+ #
2162
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2163
+ #
2164
+ def list_geo_regions_next_async(next_page_link, custom_headers:nil)
2165
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2166
+
2167
+
2168
+ request_headers = {}
2169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2170
+
2171
+ # Set Headers
2172
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2173
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2174
+ path_template = '{nextLink}'
2175
+
2176
+ request_url = @base_url || self.base_url
2177
+
2178
+ options = {
2179
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2180
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2181
+ headers: request_headers.merge(custom_headers || {}),
2182
+ base_url: request_url
2183
+ }
2184
+ promise = self.make_request_async(:get, path_template, options)
2185
+
2186
+ promise = promise.then do |result|
2187
+ http_response = result.response
2188
+ status_code = http_response.status
2189
+ response_content = http_response.body
2190
+ unless status_code == 200
2191
+ error_model = JSON.load(response_content)
2192
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2193
+ end
2194
+
2195
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2196
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2197
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2198
+ # Deserialize Response
2199
+ if status_code == 200
2200
+ begin
2201
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2202
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::GeoRegionCollection.mapper()
2203
+ result.body = self.deserialize(result_mapper, parsed_response)
2204
+ rescue Exception => e
2205
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2206
+ end
2207
+ end
2208
+
2209
+ result
2210
+ end
2211
+
2212
+ promise.execute
2213
+ end
2214
+
2215
+ #
2216
+ # List all apps that are assigned to a hostname.
2217
+ #
2218
+ # Description for List all apps that are assigned to a hostname.
2219
+ #
2220
+ # @param next_page_link [String] The NextLink from the previous successful call
2221
+ # to List operation.
2222
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2223
+ # will be added to the HTTP request.
2224
+ #
2225
+ # @return [IdentifierCollection] operation results.
2226
+ #
2227
+ def list_site_identifiers_assigned_to_host_name_next(next_page_link, custom_headers:nil)
2228
+ response = list_site_identifiers_assigned_to_host_name_next_async(next_page_link, custom_headers:custom_headers).value!
2229
+ response.body unless response.nil?
2230
+ end
2231
+
2232
+ #
2233
+ # List all apps that are assigned to a hostname.
2234
+ #
2235
+ # Description for List all apps that are assigned to a hostname.
2236
+ #
2237
+ # @param next_page_link [String] The NextLink from the previous successful call
2238
+ # to List operation.
2239
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2240
+ # will be added to the HTTP request.
2241
+ #
2242
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2243
+ #
2244
+ def list_site_identifiers_assigned_to_host_name_next_with_http_info(next_page_link, custom_headers:nil)
2245
+ list_site_identifiers_assigned_to_host_name_next_async(next_page_link, custom_headers:custom_headers).value!
2246
+ end
2247
+
2248
+ #
2249
+ # List all apps that are assigned to a hostname.
2250
+ #
2251
+ # Description for List all apps that are assigned to a hostname.
2252
+ #
2253
+ # @param next_page_link [String] The NextLink from the previous successful call
2254
+ # to List operation.
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_identifiers_assigned_to_host_name_next_async(next_page_link, custom_headers:nil)
2261
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2262
+
2263
+
2264
+ request_headers = {}
2265
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2266
+
2267
+ # Set Headers
2268
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2269
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2270
+ path_template = '{nextLink}'
2271
+
2272
+ request_url = @base_url || self.base_url
2273
+
2274
+ options = {
2275
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2276
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2277
+ headers: request_headers.merge(custom_headers || {}),
2278
+ base_url: request_url
2279
+ }
2280
+ promise = self.make_request_async(:post, path_template, options)
2281
+
2282
+ promise = promise.then do |result|
2283
+ http_response = result.response
2284
+ status_code = http_response.status
2285
+ response_content = http_response.body
2286
+ unless status_code == 200
2287
+ error_model = JSON.load(response_content)
2288
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2289
+ end
2290
+
2291
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2292
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2293
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2294
+ # Deserialize Response
2295
+ if status_code == 200
2296
+ begin
2297
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2298
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::IdentifierCollection.mapper()
2299
+ result.body = self.deserialize(result_mapper, parsed_response)
2300
+ rescue Exception => e
2301
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2302
+ end
2303
+ end
2304
+
2305
+ result
2306
+ end
2307
+
2308
+ promise.execute
2309
+ end
2310
+
2311
+ #
2312
+ # List all premier add-on offers.
2313
+ #
2314
+ # Description for List all premier add-on offers.
2315
+ #
2316
+ # @param next_page_link [String] The NextLink from the previous successful call
2317
+ # to List operation.
2318
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2319
+ # will be added to the HTTP request.
2320
+ #
2321
+ # @return [PremierAddOnOfferCollection] operation results.
2322
+ #
2323
+ def list_premier_add_on_offers_next(next_page_link, custom_headers:nil)
2324
+ response = list_premier_add_on_offers_next_async(next_page_link, custom_headers:custom_headers).value!
2325
+ response.body unless response.nil?
2326
+ end
2327
+
2328
+ #
2329
+ # List all premier add-on offers.
2330
+ #
2331
+ # Description for List all premier add-on offers.
2332
+ #
2333
+ # @param next_page_link [String] The NextLink from the previous successful call
2334
+ # to List operation.
2335
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2336
+ # will be added to the HTTP request.
2337
+ #
2338
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2339
+ #
2340
+ def list_premier_add_on_offers_next_with_http_info(next_page_link, custom_headers:nil)
2341
+ list_premier_add_on_offers_next_async(next_page_link, custom_headers:custom_headers).value!
2342
+ end
2343
+
2344
+ #
2345
+ # List all premier add-on offers.
2346
+ #
2347
+ # Description for List all premier add-on offers.
2348
+ #
2349
+ # @param next_page_link [String] The NextLink from the previous successful call
2350
+ # to List operation.
2351
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2352
+ # to the HTTP request.
2353
+ #
2354
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2355
+ #
2356
+ def list_premier_add_on_offers_next_async(next_page_link, custom_headers:nil)
2357
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2358
+
2359
+
2360
+ request_headers = {}
2361
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2362
+
2363
+ # Set Headers
2364
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2365
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2366
+ path_template = '{nextLink}'
2367
+
2368
+ request_url = @base_url || self.base_url
2369
+
2370
+ options = {
2371
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2372
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2373
+ headers: request_headers.merge(custom_headers || {}),
2374
+ base_url: request_url
2375
+ }
2376
+ promise = self.make_request_async(:get, path_template, options)
2377
+
2378
+ promise = promise.then do |result|
2379
+ http_response = result.response
2380
+ status_code = http_response.status
2381
+ response_content = http_response.body
2382
+ unless status_code == 200
2383
+ error_model = JSON.load(response_content)
2384
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2385
+ end
2386
+
2387
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2388
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2389
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2390
+ # Deserialize Response
2391
+ if status_code == 200
2392
+ begin
2393
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2394
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::PremierAddOnOfferCollection.mapper()
2395
+ result.body = self.deserialize(result_mapper, parsed_response)
2396
+ rescue Exception => e
2397
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2398
+ end
2399
+ end
2400
+
2401
+ result
2402
+ end
2403
+
2404
+ promise.execute
2405
+ end
2406
+
2407
+ #
2408
+ # Gets the source controls available for Azure websites.
2409
+ #
2410
+ # Description for Gets the source controls available for Azure websites.
2411
+ #
2412
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2413
+ # will be added to the HTTP request.
2414
+ #
2415
+ # @return [SourceControlCollection] operation results.
2416
+ #
2417
+ def list_source_controls_as_lazy(custom_headers:nil)
2418
+ first_page = list_source_controls_as_lazy_async(custom_headers:custom_headers)
2419
+ first_page.get_all_items
2420
+ end
2421
+
2422
+ #
2423
+ # Gets the source controls available for Azure websites.
2424
+ #
2425
+ # Description for Gets the source controls available for Azure websites.
2426
+ #
2427
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2428
+ # will be added to the HTTP request.
2429
+ #
2430
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2431
+ #
2432
+ def list_source_controls_as_lazy_with_http_info(custom_headers:nil)
2433
+ list_source_controls_as_lazy_async(custom_headers:custom_headers).value!
2434
+ end
2435
+
2436
+ #
2437
+ # Gets the source controls available for Azure websites.
2438
+ #
2439
+ # Description for Gets the source controls available for Azure websites.
2440
+ #
2441
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2442
+ # to the HTTP request.
2443
+ #
2444
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2445
+ #
2446
+ def list_source_controls_as_lazy_async(custom_headers:nil)
2447
+
2448
+
2449
+ request_headers = {}
2450
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2451
+ path_template = 'providers/Microsoft.Web/sourcecontrols'
2452
+
2453
+ request_url = @base_url || self.base_url
2454
+
2455
+ options = {
2456
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2457
+ headers: request_headers.merge(custom_headers || {}),
2458
+ base_url: request_url
2459
+ }
2460
+ promise = self.make_request_async(:get, path_template, options)
2461
+
2462
+ promise = promise.then do |result|
2463
+ http_response = result.response
2464
+ status_code = http_response.status
2465
+ response_content = http_response.body
2466
+ unless status_code == 200
2467
+ error_model = JSON.load(response_content)
2468
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2469
+ end
2470
+
2471
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2472
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2473
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2474
+ # Deserialize Response
2475
+ if status_code == 200
2476
+ begin
2477
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2478
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SourceControlCollection.mapper()
2479
+ result.body = self.deserialize(result_mapper, parsed_response)
2480
+ rescue Exception => e
2481
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2482
+ end
2483
+ end
2484
+
2485
+ result
2486
+ end
2487
+
2488
+ promise.execute
2489
+ end
2490
+
2491
+ #
2492
+ # Gets a list of meters for a given location.
2493
+ #
2494
+ # Description for Gets a list of meters for a given location.
2495
+ #
2496
+ # @param billing_location [String] Azure Location of billable resource
2497
+ # @param os_type [String] App Service OS type meters used for
2498
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2499
+ # will be added to the HTTP request.
2500
+ #
2501
+ # @return [BillingMeterCollection] operation results.
2502
+ #
2503
+ def list_billing_meters_as_lazy(billing_location:nil, os_type:nil, custom_headers:nil)
2504
+ first_page = list_billing_meters_as_lazy_async(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers)
2505
+ first_page.get_all_items
2506
+ end
2507
+
2508
+ #
2509
+ # Gets a list of meters for a given location.
2510
+ #
2511
+ # Description for Gets a list of meters for a given location.
2512
+ #
2513
+ # @param billing_location [String] Azure Location of billable resource
2514
+ # @param os_type [String] App Service OS type meters used for
2515
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2516
+ # will be added to the HTTP request.
2517
+ #
2518
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2519
+ #
2520
+ def list_billing_meters_as_lazy_with_http_info(billing_location:nil, os_type:nil, custom_headers:nil)
2521
+ list_billing_meters_as_lazy_async(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers).value!
2522
+ end
2523
+
2524
+ #
2525
+ # Gets a list of meters for a given location.
2526
+ #
2527
+ # Description for Gets a list of meters for a given location.
2528
+ #
2529
+ # @param billing_location [String] Azure Location of billable resource
2530
+ # @param os_type [String] App Service OS type meters used for
2531
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2532
+ # to the HTTP request.
2533
+ #
2534
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2535
+ #
2536
+ def list_billing_meters_as_lazy_async(billing_location:nil, os_type:nil, custom_headers:nil)
2537
+
2538
+
2539
+ request_headers = {}
2540
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2541
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters'
2542
+
2543
+ request_url = @base_url || self.base_url
2544
+
2545
+ options = {
2546
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2547
+ query_params: {'billingLocation' => billing_location,'osType' => os_type},
2548
+ headers: request_headers.merge(custom_headers || {}),
2549
+ base_url: request_url
2550
+ }
2551
+ promise = self.make_request_async(:get, path_template, options)
2552
+
2553
+ promise = promise.then do |result|
2554
+ http_response = result.response
2555
+ status_code = http_response.status
2556
+ response_content = http_response.body
2557
+ unless status_code == 200
2558
+ error_model = JSON.load(response_content)
2559
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2560
+ end
2561
+
2562
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2563
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2564
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2565
+ # Deserialize Response
2566
+ if status_code == 200
2567
+ begin
2568
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2569
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::BillingMeterCollection.mapper()
2570
+ result.body = self.deserialize(result_mapper, parsed_response)
2571
+ rescue Exception => e
2572
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2573
+ end
2574
+ end
2575
+
2576
+ result
2577
+ end
2578
+
2579
+ promise.execute
2580
+ end
2581
+
2582
+ #
2583
+ # Get a list of available geographical regions.
2584
+ #
2585
+ # Description for Get a list of available geographical regions.
2586
+ #
2587
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
2588
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
2589
+ # 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
2590
+ # @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
2591
+ # to filter to only regions that support Linux workers.
2592
+ # @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
2593
+ # to filter to only regions that support Xenon workers.
2594
+ # @param linux_dynamic_workers_enabled [Boolean] Specify <code>true</code> if
2595
+ # you want to filter to only regions that support Linux Consumption Workers.
2596
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2597
+ # will be added to the HTTP request.
2598
+ #
2599
+ # @return [GeoRegionCollection] operation results.
2600
+ #
2601
+ def list_geo_regions_as_lazy(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, linux_dynamic_workers_enabled:nil, custom_headers:nil)
2602
+ first_page = list_geo_regions_as_lazy_async(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, linux_dynamic_workers_enabled:linux_dynamic_workers_enabled, custom_headers:custom_headers)
2603
+ first_page.get_all_items
2604
+ end
2605
+
2606
+ #
2607
+ # Get a list of available geographical regions.
2608
+ #
2609
+ # Description for Get a list of available geographical regions.
2610
+ #
2611
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
2612
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
2613
+ # 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
2614
+ # @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
2615
+ # to filter to only regions that support Linux workers.
2616
+ # @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
2617
+ # to filter to only regions that support Xenon workers.
2618
+ # @param linux_dynamic_workers_enabled [Boolean] Specify <code>true</code> if
2619
+ # you want to filter to only regions that support Linux Consumption Workers.
2620
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2621
+ # will be added to the HTTP request.
2622
+ #
2623
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2624
+ #
2625
+ def list_geo_regions_as_lazy_with_http_info(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, linux_dynamic_workers_enabled:nil, custom_headers:nil)
2626
+ list_geo_regions_as_lazy_async(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, linux_dynamic_workers_enabled:linux_dynamic_workers_enabled, custom_headers:custom_headers).value!
2627
+ end
2628
+
2629
+ #
2630
+ # Get a list of available geographical regions.
2631
+ #
2632
+ # Description for Get a list of available geographical regions.
2633
+ #
2634
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
2635
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
2636
+ # 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
2637
+ # @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
2638
+ # to filter to only regions that support Linux workers.
2639
+ # @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
2640
+ # to filter to only regions that support Xenon workers.
2641
+ # @param linux_dynamic_workers_enabled [Boolean] Specify <code>true</code> if
2642
+ # you want to filter to only regions that support Linux Consumption Workers.
2643
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2644
+ # to the HTTP request.
2645
+ #
2646
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2647
+ #
2648
+ def list_geo_regions_as_lazy_async(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, linux_dynamic_workers_enabled:nil, custom_headers:nil)
2649
+
2650
+
2651
+ request_headers = {}
2652
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2653
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
2654
+
2655
+ request_url = @base_url || self.base_url
2656
+
2657
+ options = {
2658
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2659
+ query_params: {'sku' => sku,'linuxWorkersEnabled' => linux_workers_enabled,'xenonWorkersEnabled' => xenon_workers_enabled,'linuxDynamicWorkersEnabled' => linux_dynamic_workers_enabled},
2660
+ headers: request_headers.merge(custom_headers || {}),
2661
+ base_url: request_url
2662
+ }
2663
+ promise = self.make_request_async(:get, path_template, options)
2664
+
2665
+ promise = promise.then do |result|
2666
+ http_response = result.response
2667
+ status_code = http_response.status
2668
+ response_content = http_response.body
2669
+ unless status_code == 200
2670
+ error_model = JSON.load(response_content)
2671
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2672
+ end
2673
+
2674
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2675
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2676
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2677
+ # Deserialize Response
2678
+ if status_code == 200
2679
+ begin
2680
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2681
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::GeoRegionCollection.mapper()
2682
+ result.body = self.deserialize(result_mapper, parsed_response)
2683
+ rescue Exception => e
2684
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2685
+ end
2686
+ end
2687
+
2688
+ result
2689
+ end
2690
+
2691
+ promise.execute
2692
+ end
2693
+
2694
+ #
2695
+ # List all apps that are assigned to a hostname.
2696
+ #
2697
+ # Description for List all apps that are assigned to a hostname.
2698
+ #
2699
+ # @param name_identifier [NameIdentifier] Hostname information.
2700
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2701
+ # will be added to the HTTP request.
2702
+ #
2703
+ # @return [IdentifierCollection] operation results.
2704
+ #
2705
+ def list_site_identifiers_assigned_to_host_name_as_lazy(name_identifier, custom_headers:nil)
2706
+ first_page = list_site_identifiers_assigned_to_host_name_as_lazy_async(name_identifier, custom_headers:custom_headers)
2707
+ first_page.get_all_items
2708
+ end
2709
+
2710
+ #
2711
+ # List all apps that are assigned to a hostname.
2712
+ #
2713
+ # Description for List all apps that are assigned to a hostname.
2714
+ #
2715
+ # @param name_identifier [NameIdentifier] Hostname information.
2716
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2717
+ # will be added to the HTTP request.
2718
+ #
2719
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2720
+ #
2721
+ def list_site_identifiers_assigned_to_host_name_as_lazy_with_http_info(name_identifier, custom_headers:nil)
2722
+ list_site_identifiers_assigned_to_host_name_as_lazy_async(name_identifier, custom_headers:custom_headers).value!
2723
+ end
2724
+
2725
+ #
2726
+ # List all apps that are assigned to a hostname.
2727
+ #
2728
+ # Description for List all apps that are assigned to a hostname.
2729
+ #
2730
+ # @param name_identifier [NameIdentifier] Hostname information.
2731
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2732
+ # to the HTTP request.
2733
+ #
2734
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2735
+ #
2736
+ def list_site_identifiers_assigned_to_host_name_as_lazy_async(name_identifier, custom_headers:nil)
2737
+ fail ArgumentError, 'name_identifier is nil' if name_identifier.nil?
2738
+
2739
+
2740
+ request_headers = {}
2741
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2742
+
2743
+ # Serialize Request
2744
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::NameIdentifier.mapper()
2745
+ request_content = self.serialize(request_mapper, name_identifier)
2746
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2747
+
2748
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName'
2749
+
2750
+ request_url = @base_url || self.base_url
2751
+
2752
+ options = {
2753
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2754
+ body: request_content,
2755
+ headers: request_headers.merge(custom_headers || {}),
2756
+ base_url: request_url
2757
+ }
2758
+ promise = self.make_request_async(:post, path_template, options)
2759
+
2760
+ promise = promise.then do |result|
2761
+ http_response = result.response
2762
+ status_code = http_response.status
2763
+ response_content = http_response.body
2764
+ unless status_code == 200
2765
+ error_model = JSON.load(response_content)
2766
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2767
+ end
2768
+
2769
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2770
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2771
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2772
+ # Deserialize Response
2773
+ if status_code == 200
2774
+ begin
2775
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2776
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::IdentifierCollection.mapper()
2777
+ result.body = self.deserialize(result_mapper, parsed_response)
2778
+ rescue Exception => e
2779
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2780
+ end
2781
+ end
2782
+
2783
+ result
2784
+ end
2785
+
2786
+ promise.execute
2787
+ end
2788
+
2789
+ #
2790
+ # List all premier add-on offers.
2791
+ #
2792
+ # Description for List all premier add-on offers.
2793
+ #
2794
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2795
+ # will be added to the HTTP request.
2796
+ #
2797
+ # @return [PremierAddOnOfferCollection] operation results.
2798
+ #
2799
+ def list_premier_add_on_offers_as_lazy(custom_headers:nil)
2800
+ first_page = list_premier_add_on_offers_as_lazy_async(custom_headers:custom_headers)
2801
+ first_page.get_all_items
2802
+ end
2803
+
2804
+ #
2805
+ # List all premier add-on offers.
2806
+ #
2807
+ # Description for List all premier add-on offers.
2808
+ #
2809
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2810
+ # will be added to the HTTP request.
2811
+ #
2812
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2813
+ #
2814
+ def list_premier_add_on_offers_as_lazy_with_http_info(custom_headers:nil)
2815
+ list_premier_add_on_offers_as_lazy_async(custom_headers:custom_headers).value!
2816
+ end
2817
+
2818
+ #
2819
+ # List all premier add-on offers.
2820
+ #
2821
+ # Description for List all premier add-on offers.
2822
+ #
2823
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2824
+ # to the HTTP request.
2825
+ #
2826
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2827
+ #
2828
+ def list_premier_add_on_offers_as_lazy_async(custom_headers:nil)
2829
+
2830
+
2831
+ request_headers = {}
2832
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2833
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
2834
+
2835
+ request_url = @base_url || self.base_url
2836
+
2837
+ options = {
2838
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2839
+ headers: request_headers.merge(custom_headers || {}),
2840
+ base_url: request_url
2841
+ }
2842
+ promise = self.make_request_async(:get, path_template, options)
2843
+
2844
+ promise = promise.then do |result|
2845
+ http_response = result.response
2846
+ status_code = http_response.status
2847
+ response_content = http_response.body
2848
+ unless status_code == 200
2849
+ error_model = JSON.load(response_content)
2850
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2851
+ end
2852
+
2853
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2854
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2855
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2856
+ # Deserialize Response
2857
+ if status_code == 200
2858
+ begin
2859
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2860
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::PremierAddOnOfferCollection.mapper()
2861
+ result.body = self.deserialize(result_mapper, parsed_response)
2862
+ rescue Exception => e
2863
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2864
+ end
2865
+ end
2866
+
2867
+ result
2868
+ end
2869
+
2870
+ promise.execute
2871
+ end
2872
+
2873
+
2874
+ private
2875
+ #
2876
+ # Adds telemetry information.
2877
+ #
2878
+ def add_telemetry
2879
+ sdk_information = 'azure_mgmt_web'
2880
+ sdk_information = "#{sdk_information}/0.18.1"
2881
+ add_user_agent_information(sdk_information)
2882
+ end
2883
+ end
2884
+ end