azure_mgmt_web 0.17.1 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  3. data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +38 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
  6. data/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
  7. data/lib/2015-04-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
  8. data/lib/2015-04-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
  9. data/lib/2015-04-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
  10. data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  12. data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  14. data/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
  15. data/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
  16. data/lib/2015-08-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  17. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  18. data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +4 -0
  19. data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +16 -0
  20. data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  21. data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  22. data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack_collection.rb +1 -1
  23. data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +1 -1
  24. data/lib/2016-03-01/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
  25. data/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  26. data/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
  27. data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response_collection.rb +1 -1
  28. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +1 -1
  29. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +1 -1
  30. data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +1 -1
  31. data/lib/2016-03-01/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
  32. data/lib/2016-03-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  33. data/lib/2016-03-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
  34. data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_collection.rb +1 -1
  35. data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +1 -1
  36. data/lib/2016-03-01/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
  37. data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +12 -0
  38. data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  39. data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  40. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +47 -1
  41. data/lib/2016-06-01/generated/azure_mgmt_web.rb +76 -0
  42. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb +240 -0
  43. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateways.rb +682 -0
  44. data/lib/2016-06-01/generated/azure_mgmt_web/connections.rb +815 -0
  45. data/lib/2016-06-01/generated/azure_mgmt_web/custom_apis.rb +997 -0
  46. data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +140 -0
  47. data/lib/2016-06-01/generated/azure_mgmt_web/managed_apis.rb +233 -0
  48. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb +106 -0
  49. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb +55 -0
  50. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb +179 -0
  51. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb +57 -0
  52. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb +130 -0
  53. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb +68 -0
  54. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_reference.rb +118 -0
  55. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb +46 -0
  56. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb +57 -0
  57. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb +90 -0
  58. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb +135 -0
  59. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb +58 -0
  60. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb +186 -0
  61. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_type.rb +17 -0
  62. data/lib/2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb +68 -0
  63. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_error.rb +116 -0
  64. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb +106 -0
  65. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb +56 -0
  66. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb +122 -0
  67. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb +106 -0
  68. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb +57 -0
  69. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb +123 -0
  70. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb +73 -0
  71. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb +61 -0
  72. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb +23 -0
  73. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb +69 -0
  74. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb +55 -0
  75. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb +81 -0
  76. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb +82 -0
  77. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb +106 -0
  78. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb +55 -0
  79. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb +196 -0
  80. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb +99 -0
  81. data/lib/2016-06-01/generated/azure_mgmt_web/models/link_state.rb +17 -0
  82. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb +105 -0
  83. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb +55 -0
  84. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb +106 -0
  85. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb +55 -0
  86. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb +112 -0
  87. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb +58 -0
  88. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb +81 -0
  89. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb +17 -0
  90. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb +65 -0
  91. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb +55 -0
  92. data/lib/2016-06-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  93. data/lib/2016-08-01/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
  94. data/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +1 -1
  95. data/lib/2016-08-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  96. data/lib/2016-08-01/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
  97. data/lib/2016-08-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +1 -1
  98. data/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
  99. data/lib/2016-08-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  100. data/lib/2016-08-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
  101. data/lib/2016-08-01/generated/azure_mgmt_web/models/process_info_collection.rb +1 -1
  102. data/lib/2016-08-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +1 -1
  103. data/lib/2016-08-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +1 -1
  104. data/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +1 -1
  105. data/lib/2016-08-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  106. data/lib/2016-08-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  107. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +1 -1
  108. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +1 -1
  109. data/lib/2016-08-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +1 -1
  110. data/lib/2016-08-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
  111. data/lib/2016-08-01/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
  112. data/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +1 -1
  113. data/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +1 -1
  114. data/lib/2016-08-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  115. data/lib/2016-08-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
  116. data/lib/2016-08-01/generated/azure_mgmt_web/models/web_job_collection.rb +1 -1
  117. data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +732 -0
  118. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  119. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +124 -0
  120. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  121. data/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
  122. data/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
  123. data/lib/2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  124. data/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
  125. data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
  126. data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  127. data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  128. data/lib/2016-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
  129. data/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
  130. data/lib/2016-09-01/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
  131. data/lib/2016-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  132. data/lib/2016-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
  133. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  134. data/lib/2018-02-01/generated/azure_mgmt_web.rb +99 -91
  135. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  136. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +168 -40
  137. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +82 -8
  138. data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  139. data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +16 -0
  140. data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  141. data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  142. data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  143. data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +38 -0
  144. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
  145. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
  146. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
  147. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan.rb +26 -1
  148. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
  149. data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +26 -1
  150. data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack_collection.rb +1 -1
  151. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
  152. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +90 -0
  153. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
  154. data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
  155. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
  156. data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_request.rb +11 -0
  157. data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +1 -1
  158. data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
  159. data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +1 -1
  160. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
  161. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +11 -0
  162. data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  163. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_site.rb +54 -7
  164. data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
  165. data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
  166. data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response_collection.rb +1 -1
  167. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +1 -1
  168. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +1 -1
  169. data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +1 -1
  170. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
  171. data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
  172. data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +1 -1
  173. data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
  174. data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
  175. data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
  176. data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  177. data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
  178. data/lib/2018-02-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
  179. data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
  180. data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
  181. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info_collection.rb +1 -1
  182. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +1 -1
  183. data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +1 -1
  184. data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +1 -1
  185. data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_collection.rb +1 -1
  186. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
  187. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +93 -0
  188. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  189. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  190. data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  191. data/lib/2018-02-01/generated/azure_mgmt_web/models/site.rb +13 -1
  192. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config.rb +21 -0
  193. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource.rb +21 -0
  194. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +1 -1
  195. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +1 -1
  196. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +1 -1
  197. data/lib/2018-02-01/generated/azure_mgmt_web/models/site_patch_resource.rb +13 -1
  198. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
  199. data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_name.rb +2 -0
  200. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +20 -0
  201. data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
  202. data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
  203. data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
  204. data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
  205. data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
  206. data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
  207. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +1 -1
  208. data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +1 -1
  209. data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
  210. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  211. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
  212. data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_collection.rb +1 -1
  213. data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
  214. data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +28 -8
  215. data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +44 -20
  216. data/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1181 -0
  217. data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  218. data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +2504 -312
  219. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +88 -19
  220. data/lib/azure_mgmt_web.rb +6 -3
  221. data/lib/profiles/latest/modules/web_profile_module.rb +315 -285
  222. data/lib/profiles/v2018_03_01/modules/web_profile_module.rb +1235 -0
  223. data/lib/profiles/v2018_03_01/web_module_definition.rb +8 -0
  224. data/lib/profiles/v2018_03_01/web_v2018_03_01_profile_client.rb +40 -0
  225. data/lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb +1469 -0
  226. data/lib/profiles/v2019_03_01_hybrid/web_module_definition.rb +8 -0
  227. data/lib/profiles/v2019_03_01_hybrid/web_v2019_03_01_hybrid_profile_client.rb +40 -0
  228. data/lib/version.rb +1 -1
  229. metadata +71 -5
@@ -0,0 +1,997 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Web::Mgmt::V2016_06_01
7
+ #
8
+ # CustomApis
9
+ #
10
+ class CustomApis
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the CustomApis class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [LogicAppsManagementClient] reference to the LogicAppsManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # List of custom APIs
26
+ #
27
+ # Gets a list of all custom APIs for a subscription id
28
+ #
29
+ # @param subscription_id [String] Subscription Id
30
+ # @param api_version [String] API Version
31
+ # @param top [Integer] The number of items to be included in the result
32
+ # @param skiptoken [String] Skip Token
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [CustomApiDefinitionCollection] operation results.
37
+ #
38
+ def list(subscription_id, api_version, top:nil, skiptoken:nil, custom_headers:nil)
39
+ response = list_async(subscription_id, api_version, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # List of custom APIs
45
+ #
46
+ # Gets a list of all custom APIs for a subscription id
47
+ #
48
+ # @param subscription_id [String] Subscription Id
49
+ # @param api_version [String] API Version
50
+ # @param top [Integer] The number of items to be included in the result
51
+ # @param skiptoken [String] Skip Token
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def list_with_http_info(subscription_id, api_version, top:nil, skiptoken:nil, custom_headers:nil)
58
+ list_async(subscription_id, api_version, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # List of custom APIs
63
+ #
64
+ # Gets a list of all custom APIs for a subscription id
65
+ #
66
+ # @param subscription_id [String] Subscription Id
67
+ # @param api_version [String] API Version
68
+ # @param top [Integer] The number of items to be included in the result
69
+ # @param skiptoken [String] Skip Token
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def list_async(subscription_id, api_version, top:nil, skiptoken:nil, custom_headers:nil)
76
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
77
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
78
+
79
+
80
+ request_headers = {}
81
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
82
+
83
+ # Set Headers
84
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
85
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
86
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/customApis'
87
+
88
+ request_url = @base_url || @client.base_url
89
+
90
+ options = {
91
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
92
+ path_params: {'subscriptionId' => subscription_id},
93
+ query_params: {'api-version' => api_version,'$top' => top,'skiptoken' => skiptoken},
94
+ headers: request_headers.merge(custom_headers || {}),
95
+ base_url: request_url
96
+ }
97
+ promise = @client.make_request_async(:get, path_template, options)
98
+
99
+ promise = promise.then do |result|
100
+ http_response = result.response
101
+ status_code = http_response.status
102
+ response_content = http_response.body
103
+ unless status_code == 200
104
+ error_model = JSON.load(response_content)
105
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
106
+ end
107
+
108
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
109
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
110
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
111
+ # Deserialize Response
112
+ if status_code == 200
113
+ begin
114
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
115
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinitionCollection.mapper()
116
+ result.body = @client.deserialize(result_mapper, parsed_response)
117
+ rescue Exception => e
118
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
119
+ end
120
+ end
121
+
122
+ result
123
+ end
124
+
125
+ promise.execute
126
+ end
127
+
128
+ #
129
+ # List of custom APIs
130
+ #
131
+ # Gets a list of all custom APIs in a subscription for a specific resource
132
+ # group
133
+ #
134
+ # @param subscription_id [String] Subscription Id
135
+ # @param resource_group_name [String] The resource group
136
+ # @param api_version [String] API Version
137
+ # @param top [Integer] The number of items to be included in the result
138
+ # @param skiptoken [String] Skip Token
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [CustomApiDefinitionCollection] operation results.
143
+ #
144
+ def list_by_resource_group(subscription_id, resource_group_name, api_version, top:nil, skiptoken:nil, custom_headers:nil)
145
+ response = list_by_resource_group_async(subscription_id, resource_group_name, api_version, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value!
146
+ response.body unless response.nil?
147
+ end
148
+
149
+ #
150
+ # List of custom APIs
151
+ #
152
+ # Gets a list of all custom APIs in a subscription for a specific resource
153
+ # group
154
+ #
155
+ # @param subscription_id [String] Subscription Id
156
+ # @param resource_group_name [String] The resource group
157
+ # @param api_version [String] API Version
158
+ # @param top [Integer] The number of items to be included in the result
159
+ # @param skiptoken [String] Skip Token
160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
161
+ # will be added to the HTTP request.
162
+ #
163
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
164
+ #
165
+ def list_by_resource_group_with_http_info(subscription_id, resource_group_name, api_version, top:nil, skiptoken:nil, custom_headers:nil)
166
+ list_by_resource_group_async(subscription_id, resource_group_name, api_version, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value!
167
+ end
168
+
169
+ #
170
+ # List of custom APIs
171
+ #
172
+ # Gets a list of all custom APIs in a subscription for a specific resource
173
+ # group
174
+ #
175
+ # @param subscription_id [String] Subscription Id
176
+ # @param resource_group_name [String] The resource group
177
+ # @param api_version [String] API Version
178
+ # @param top [Integer] The number of items to be included in the result
179
+ # @param skiptoken [String] Skip Token
180
+ # @param [Hash{String => String}] A hash of custom headers that will be added
181
+ # to the HTTP request.
182
+ #
183
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
184
+ #
185
+ def list_by_resource_group_async(subscription_id, resource_group_name, api_version, top:nil, skiptoken:nil, custom_headers:nil)
186
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
187
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
188
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
189
+
190
+
191
+ request_headers = {}
192
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
193
+
194
+ # Set Headers
195
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
196
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
197
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis'
198
+
199
+ request_url = @base_url || @client.base_url
200
+
201
+ options = {
202
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
203
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name},
204
+ query_params: {'api-version' => api_version,'$top' => top,'skiptoken' => skiptoken},
205
+ headers: request_headers.merge(custom_headers || {}),
206
+ base_url: request_url
207
+ }
208
+ promise = @client.make_request_async(:get, path_template, options)
209
+
210
+ promise = promise.then do |result|
211
+ http_response = result.response
212
+ status_code = http_response.status
213
+ response_content = http_response.body
214
+ unless status_code == 200
215
+ error_model = JSON.load(response_content)
216
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
217
+ end
218
+
219
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
220
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
221
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
222
+ # Deserialize Response
223
+ if status_code == 200
224
+ begin
225
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
226
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinitionCollection.mapper()
227
+ result.body = @client.deserialize(result_mapper, parsed_response)
228
+ rescue Exception => e
229
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
230
+ end
231
+ end
232
+
233
+ result
234
+ end
235
+
236
+ promise.execute
237
+ end
238
+
239
+ #
240
+ # Get a custom API
241
+ #
242
+ # Gets a custom API by name for a specific subscription and resource group
243
+ #
244
+ # @param subscription_id [String] Subscription Id
245
+ # @param resource_group_name [String] The resource group
246
+ # @param api_name [String] API name
247
+ # @param api_version [String] API Version
248
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
249
+ # will be added to the HTTP request.
250
+ #
251
+ # @return [CustomApiDefinition] operation results.
252
+ #
253
+ def get(subscription_id, resource_group_name, api_name, api_version, custom_headers:nil)
254
+ response = get_async(subscription_id, resource_group_name, api_name, api_version, custom_headers:custom_headers).value!
255
+ response.body unless response.nil?
256
+ end
257
+
258
+ #
259
+ # Get a custom API
260
+ #
261
+ # Gets a custom API by name for a specific subscription and resource group
262
+ #
263
+ # @param subscription_id [String] Subscription Id
264
+ # @param resource_group_name [String] The resource group
265
+ # @param api_name [String] API name
266
+ # @param api_version [String] API Version
267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
268
+ # will be added to the HTTP request.
269
+ #
270
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
271
+ #
272
+ def get_with_http_info(subscription_id, resource_group_name, api_name, api_version, custom_headers:nil)
273
+ get_async(subscription_id, resource_group_name, api_name, api_version, custom_headers:custom_headers).value!
274
+ end
275
+
276
+ #
277
+ # Get a custom API
278
+ #
279
+ # Gets a custom API by name for a specific subscription and resource group
280
+ #
281
+ # @param subscription_id [String] Subscription Id
282
+ # @param resource_group_name [String] The resource group
283
+ # @param api_name [String] API name
284
+ # @param api_version [String] API Version
285
+ # @param [Hash{String => String}] A hash of custom headers that will be added
286
+ # to the HTTP request.
287
+ #
288
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
289
+ #
290
+ def get_async(subscription_id, resource_group_name, api_name, api_version, custom_headers:nil)
291
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
292
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
293
+ fail ArgumentError, 'api_name is nil' if api_name.nil?
294
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
295
+
296
+
297
+ request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
299
+
300
+ # Set Headers
301
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
302
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
303
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis/{apiName}'
304
+
305
+ request_url = @base_url || @client.base_url
306
+
307
+ options = {
308
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
309
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'apiName' => api_name},
310
+ query_params: {'api-version' => api_version},
311
+ headers: request_headers.merge(custom_headers || {}),
312
+ base_url: request_url
313
+ }
314
+ promise = @client.make_request_async(:get, path_template, options)
315
+
316
+ promise = promise.then do |result|
317
+ http_response = result.response
318
+ status_code = http_response.status
319
+ response_content = http_response.body
320
+ unless status_code == 200
321
+ error_model = JSON.load(response_content)
322
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
323
+ end
324
+
325
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
326
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
327
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
328
+ # Deserialize Response
329
+ if status_code == 200
330
+ begin
331
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
332
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinition.mapper()
333
+ result.body = @client.deserialize(result_mapper, parsed_response)
334
+ rescue Exception => e
335
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
336
+ end
337
+ end
338
+
339
+ result
340
+ end
341
+
342
+ promise.execute
343
+ end
344
+
345
+ #
346
+ # Replaces an existing custom API
347
+ #
348
+ # Creates or updates an existing custom API
349
+ #
350
+ # @param subscription_id [String] Subscription Id
351
+ # @param resource_group_name [String] The resource group
352
+ # @param api_name [String] API name
353
+ # @param custom_api [CustomApiDefinition] The custom API
354
+ # @param api_version [String] API Version
355
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
356
+ # will be added to the HTTP request.
357
+ #
358
+ # @return [CustomApiDefinition] operation results.
359
+ #
360
+ def create_or_update(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:nil)
361
+ response = create_or_update_async(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:custom_headers).value!
362
+ response.body unless response.nil?
363
+ end
364
+
365
+ #
366
+ # Replaces an existing custom API
367
+ #
368
+ # Creates or updates an existing custom API
369
+ #
370
+ # @param subscription_id [String] Subscription Id
371
+ # @param resource_group_name [String] The resource group
372
+ # @param api_name [String] API name
373
+ # @param custom_api [CustomApiDefinition] The custom API
374
+ # @param api_version [String] API Version
375
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
376
+ # will be added to the HTTP request.
377
+ #
378
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
379
+ #
380
+ def create_or_update_with_http_info(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:nil)
381
+ create_or_update_async(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:custom_headers).value!
382
+ end
383
+
384
+ #
385
+ # Replaces an existing custom API
386
+ #
387
+ # Creates or updates an existing custom API
388
+ #
389
+ # @param subscription_id [String] Subscription Id
390
+ # @param resource_group_name [String] The resource group
391
+ # @param api_name [String] API name
392
+ # @param custom_api [CustomApiDefinition] The custom API
393
+ # @param api_version [String] API Version
394
+ # @param [Hash{String => String}] A hash of custom headers that will be added
395
+ # to the HTTP request.
396
+ #
397
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
398
+ #
399
+ def create_or_update_async(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:nil)
400
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
401
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
402
+ fail ArgumentError, 'api_name is nil' if api_name.nil?
403
+ fail ArgumentError, 'custom_api is nil' if custom_api.nil?
404
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
405
+
406
+
407
+ request_headers = {}
408
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
409
+
410
+ # Set Headers
411
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
412
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
413
+
414
+ # Serialize Request
415
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinition.mapper()
416
+ request_content = @client.serialize(request_mapper, custom_api)
417
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
418
+
419
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis/{apiName}'
420
+
421
+ request_url = @base_url || @client.base_url
422
+
423
+ options = {
424
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
425
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'apiName' => api_name},
426
+ query_params: {'api-version' => api_version},
427
+ body: request_content,
428
+ headers: request_headers.merge(custom_headers || {}),
429
+ base_url: request_url
430
+ }
431
+ promise = @client.make_request_async(:put, path_template, options)
432
+
433
+ promise = promise.then do |result|
434
+ http_response = result.response
435
+ status_code = http_response.status
436
+ response_content = http_response.body
437
+ unless status_code == 200
438
+ error_model = JSON.load(response_content)
439
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
440
+ end
441
+
442
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
443
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
444
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
445
+ # Deserialize Response
446
+ if status_code == 200
447
+ begin
448
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
449
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinition.mapper()
450
+ result.body = @client.deserialize(result_mapper, parsed_response)
451
+ rescue Exception => e
452
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
453
+ end
454
+ end
455
+
456
+ result
457
+ end
458
+
459
+ promise.execute
460
+ end
461
+
462
+ #
463
+ # Update an existing custom API
464
+ #
465
+ # Updates an existing custom API's tags
466
+ #
467
+ # @param subscription_id [String] Subscription Id
468
+ # @param resource_group_name [String] The resource group
469
+ # @param api_name [String] API name
470
+ # @param custom_api [CustomApiDefinition] The custom API
471
+ # @param api_version [String] API Version
472
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
473
+ # will be added to the HTTP request.
474
+ #
475
+ # @return [CustomApiDefinition] operation results.
476
+ #
477
+ def update(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:nil)
478
+ response = update_async(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:custom_headers).value!
479
+ response.body unless response.nil?
480
+ end
481
+
482
+ #
483
+ # Update an existing custom API
484
+ #
485
+ # Updates an existing custom API's tags
486
+ #
487
+ # @param subscription_id [String] Subscription Id
488
+ # @param resource_group_name [String] The resource group
489
+ # @param api_name [String] API name
490
+ # @param custom_api [CustomApiDefinition] The custom API
491
+ # @param api_version [String] API Version
492
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
493
+ # will be added to the HTTP request.
494
+ #
495
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
496
+ #
497
+ def update_with_http_info(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:nil)
498
+ update_async(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:custom_headers).value!
499
+ end
500
+
501
+ #
502
+ # Update an existing custom API
503
+ #
504
+ # Updates an existing custom API's tags
505
+ #
506
+ # @param subscription_id [String] Subscription Id
507
+ # @param resource_group_name [String] The resource group
508
+ # @param api_name [String] API name
509
+ # @param custom_api [CustomApiDefinition] The custom API
510
+ # @param api_version [String] API Version
511
+ # @param [Hash{String => String}] A hash of custom headers that will be added
512
+ # to the HTTP request.
513
+ #
514
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
515
+ #
516
+ def update_async(subscription_id, resource_group_name, api_name, custom_api, api_version, custom_headers:nil)
517
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
518
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
519
+ fail ArgumentError, 'api_name is nil' if api_name.nil?
520
+ fail ArgumentError, 'custom_api is nil' if custom_api.nil?
521
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
522
+
523
+
524
+ request_headers = {}
525
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
526
+
527
+ # Set Headers
528
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
529
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
530
+
531
+ # Serialize Request
532
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinition.mapper()
533
+ request_content = @client.serialize(request_mapper, custom_api)
534
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
535
+
536
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis/{apiName}'
537
+
538
+ request_url = @base_url || @client.base_url
539
+
540
+ options = {
541
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
542
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'apiName' => api_name},
543
+ query_params: {'api-version' => api_version},
544
+ body: request_content,
545
+ headers: request_headers.merge(custom_headers || {}),
546
+ base_url: request_url
547
+ }
548
+ promise = @client.make_request_async(:patch, path_template, options)
549
+
550
+ promise = promise.then do |result|
551
+ http_response = result.response
552
+ status_code = http_response.status
553
+ response_content = http_response.body
554
+ unless status_code == 200
555
+ error_model = JSON.load(response_content)
556
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
557
+ end
558
+
559
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
560
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
561
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
562
+ # Deserialize Response
563
+ if status_code == 200
564
+ begin
565
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
566
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiDefinition.mapper()
567
+ result.body = @client.deserialize(result_mapper, parsed_response)
568
+ rescue Exception => e
569
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
570
+ end
571
+ end
572
+
573
+ result
574
+ end
575
+
576
+ promise.execute
577
+ end
578
+
579
+ #
580
+ # Delete a custom API
581
+ #
582
+ # Deletes a custom API from the resource group
583
+ #
584
+ # @param subscription_id [String] Subscription Id
585
+ # @param resource_group_name [String] The resource group
586
+ # @param api_name [String] API name
587
+ # @param api_version [String] API Version
588
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
589
+ # will be added to the HTTP request.
590
+ #
591
+ #
592
+ def delete(subscription_id, resource_group_name, api_name, api_version, custom_headers:nil)
593
+ response = delete_async(subscription_id, resource_group_name, api_name, api_version, custom_headers:custom_headers).value!
594
+ nil
595
+ end
596
+
597
+ #
598
+ # Delete a custom API
599
+ #
600
+ # Deletes a custom API from the resource group
601
+ #
602
+ # @param subscription_id [String] Subscription Id
603
+ # @param resource_group_name [String] The resource group
604
+ # @param api_name [String] API name
605
+ # @param api_version [String] API Version
606
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
607
+ # will be added to the HTTP request.
608
+ #
609
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
610
+ #
611
+ def delete_with_http_info(subscription_id, resource_group_name, api_name, api_version, custom_headers:nil)
612
+ delete_async(subscription_id, resource_group_name, api_name, api_version, custom_headers:custom_headers).value!
613
+ end
614
+
615
+ #
616
+ # Delete a custom API
617
+ #
618
+ # Deletes a custom API from the resource group
619
+ #
620
+ # @param subscription_id [String] Subscription Id
621
+ # @param resource_group_name [String] The resource group
622
+ # @param api_name [String] API name
623
+ # @param api_version [String] API Version
624
+ # @param [Hash{String => String}] A hash of custom headers that will be added
625
+ # to the HTTP request.
626
+ #
627
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
628
+ #
629
+ def delete_async(subscription_id, resource_group_name, api_name, api_version, custom_headers:nil)
630
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
631
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
632
+ fail ArgumentError, 'api_name is nil' if api_name.nil?
633
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
634
+
635
+
636
+ request_headers = {}
637
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
638
+
639
+ # Set Headers
640
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
641
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
642
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis/{apiName}'
643
+
644
+ request_url = @base_url || @client.base_url
645
+
646
+ options = {
647
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
648
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'apiName' => api_name},
649
+ query_params: {'api-version' => api_version},
650
+ headers: request_headers.merge(custom_headers || {}),
651
+ base_url: request_url
652
+ }
653
+ promise = @client.make_request_async(:delete, path_template, options)
654
+
655
+ promise = promise.then do |result|
656
+ http_response = result.response
657
+ status_code = http_response.status
658
+ response_content = http_response.body
659
+ unless status_code == 200 || status_code == 204
660
+ error_model = JSON.load(response_content)
661
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
662
+ end
663
+
664
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
665
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
666
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
667
+
668
+ result
669
+ end
670
+
671
+ promise.execute
672
+ end
673
+
674
+ #
675
+ # Moves the custom API
676
+ #
677
+ # Moves a specific custom API
678
+ #
679
+ # @param subscription_id [String] Subscription Id
680
+ # @param resource_group_name [String] The resource group
681
+ # @param api_name [String] API name
682
+ # @param custom_api_reference [CustomApiReference] The custom API reference
683
+ # @param api_version [String] API Version
684
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
685
+ # will be added to the HTTP request.
686
+ #
687
+ #
688
+ def move(subscription_id, resource_group_name, api_name, custom_api_reference, api_version, custom_headers:nil)
689
+ response = move_async(subscription_id, resource_group_name, api_name, custom_api_reference, api_version, custom_headers:custom_headers).value!
690
+ nil
691
+ end
692
+
693
+ #
694
+ # Moves the custom API
695
+ #
696
+ # Moves a specific custom API
697
+ #
698
+ # @param subscription_id [String] Subscription Id
699
+ # @param resource_group_name [String] The resource group
700
+ # @param api_name [String] API name
701
+ # @param custom_api_reference [CustomApiReference] The custom API reference
702
+ # @param api_version [String] API Version
703
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
704
+ # will be added to the HTTP request.
705
+ #
706
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
707
+ #
708
+ def move_with_http_info(subscription_id, resource_group_name, api_name, custom_api_reference, api_version, custom_headers:nil)
709
+ move_async(subscription_id, resource_group_name, api_name, custom_api_reference, api_version, custom_headers:custom_headers).value!
710
+ end
711
+
712
+ #
713
+ # Moves the custom API
714
+ #
715
+ # Moves a specific custom API
716
+ #
717
+ # @param subscription_id [String] Subscription Id
718
+ # @param resource_group_name [String] The resource group
719
+ # @param api_name [String] API name
720
+ # @param custom_api_reference [CustomApiReference] The custom API reference
721
+ # @param api_version [String] API Version
722
+ # @param [Hash{String => String}] A hash of custom headers that will be added
723
+ # to the HTTP request.
724
+ #
725
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
726
+ #
727
+ def move_async(subscription_id, resource_group_name, api_name, custom_api_reference, api_version, custom_headers:nil)
728
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
729
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
730
+ fail ArgumentError, 'api_name is nil' if api_name.nil?
731
+ fail ArgumentError, 'custom_api_reference is nil' if custom_api_reference.nil?
732
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
733
+
734
+
735
+ request_headers = {}
736
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
737
+
738
+ # Set Headers
739
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
740
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
741
+
742
+ # Serialize Request
743
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::CustomApiReference.mapper()
744
+ request_content = @client.serialize(request_mapper, custom_api_reference)
745
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
746
+
747
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis/{apiName}/move'
748
+
749
+ request_url = @base_url || @client.base_url
750
+
751
+ options = {
752
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
753
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'apiName' => api_name},
754
+ query_params: {'api-version' => api_version},
755
+ body: request_content,
756
+ headers: request_headers.merge(custom_headers || {}),
757
+ base_url: request_url
758
+ }
759
+ promise = @client.make_request_async(:post, path_template, options)
760
+
761
+ promise = promise.then do |result|
762
+ http_response = result.response
763
+ status_code = http_response.status
764
+ response_content = http_response.body
765
+ unless status_code == 200
766
+ error_model = JSON.load(response_content)
767
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
768
+ end
769
+
770
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
771
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
772
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
773
+
774
+ result
775
+ end
776
+
777
+ promise.execute
778
+ end
779
+
780
+ #
781
+ # Lists WSDL interfaces
782
+ #
783
+ # This returns the list of interfaces in the WSDL
784
+ #
785
+ # @param subscription_id [String] Subscription Id
786
+ # @param location [String] The location
787
+ # @param wsdl_definition [WsdlDefinition] WSDL definition
788
+ # @param api_version [String] API Version
789
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
790
+ # will be added to the HTTP request.
791
+ #
792
+ # @return [WsdlServiceCollection] operation results.
793
+ #
794
+ def list_wsdl_interfaces(subscription_id, location, wsdl_definition, api_version, custom_headers:nil)
795
+ response = list_wsdl_interfaces_async(subscription_id, location, wsdl_definition, api_version, custom_headers:custom_headers).value!
796
+ response.body unless response.nil?
797
+ end
798
+
799
+ #
800
+ # Lists WSDL interfaces
801
+ #
802
+ # This returns the list of interfaces in the WSDL
803
+ #
804
+ # @param subscription_id [String] Subscription Id
805
+ # @param location [String] The location
806
+ # @param wsdl_definition [WsdlDefinition] WSDL definition
807
+ # @param api_version [String] API Version
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
+ #
813
+ def list_wsdl_interfaces_with_http_info(subscription_id, location, wsdl_definition, api_version, custom_headers:nil)
814
+ list_wsdl_interfaces_async(subscription_id, location, wsdl_definition, api_version, custom_headers:custom_headers).value!
815
+ end
816
+
817
+ #
818
+ # Lists WSDL interfaces
819
+ #
820
+ # This returns the list of interfaces in the WSDL
821
+ #
822
+ # @param subscription_id [String] Subscription Id
823
+ # @param location [String] The location
824
+ # @param wsdl_definition [WsdlDefinition] WSDL definition
825
+ # @param api_version [String] API Version
826
+ # @param [Hash{String => String}] A hash of custom headers that will be added
827
+ # to the HTTP request.
828
+ #
829
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
830
+ #
831
+ def list_wsdl_interfaces_async(subscription_id, location, wsdl_definition, api_version, custom_headers:nil)
832
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
833
+ fail ArgumentError, 'location is nil' if location.nil?
834
+ fail ArgumentError, 'wsdl_definition is nil' if wsdl_definition.nil?
835
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
836
+
837
+
838
+ request_headers = {}
839
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
840
+
841
+ # Set Headers
842
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
843
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
844
+
845
+ # Serialize Request
846
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::WsdlDefinition.mapper()
847
+ request_content = @client.serialize(request_mapper, wsdl_definition)
848
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
849
+
850
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/listWsdlInterfaces'
851
+
852
+ request_url = @base_url || @client.base_url
853
+
854
+ options = {
855
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
856
+ path_params: {'subscriptionId' => subscription_id,'location' => location},
857
+ query_params: {'api-version' => api_version},
858
+ body: request_content,
859
+ headers: request_headers.merge(custom_headers || {}),
860
+ base_url: request_url
861
+ }
862
+ promise = @client.make_request_async(:post, path_template, options)
863
+
864
+ promise = promise.then do |result|
865
+ http_response = result.response
866
+ status_code = http_response.status
867
+ response_content = http_response.body
868
+ unless status_code == 200
869
+ error_model = JSON.load(response_content)
870
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
871
+ end
872
+
873
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
874
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
875
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
876
+ # Deserialize Response
877
+ if status_code == 200
878
+ begin
879
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
880
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::WsdlServiceCollection.mapper()
881
+ result.body = @client.deserialize(result_mapper, parsed_response)
882
+ rescue Exception => e
883
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
884
+ end
885
+ end
886
+
887
+ result
888
+ end
889
+
890
+ promise.execute
891
+ end
892
+
893
+ #
894
+ # Returns API definition from WSDL
895
+ #
896
+ # Parses the specified WSDL and extracts the API definition
897
+ #
898
+ # @param subscription_id [String] Subscription Id
899
+ # @param location [String] The location
900
+ # @param wsdl_definition [WsdlDefinition] WSDL definition
901
+ # @param api_version [String] API Version
902
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
903
+ # will be added to the HTTP request.
904
+ #
905
+ # @return [Object] operation results.
906
+ #
907
+ def extract_api_definition_from_wsdl(subscription_id, location, wsdl_definition, api_version, custom_headers:nil)
908
+ response = extract_api_definition_from_wsdl_async(subscription_id, location, wsdl_definition, api_version, custom_headers:custom_headers).value!
909
+ response.body unless response.nil?
910
+ end
911
+
912
+ #
913
+ # Returns API definition from WSDL
914
+ #
915
+ # Parses the specified WSDL and extracts the API definition
916
+ #
917
+ # @param subscription_id [String] Subscription Id
918
+ # @param location [String] The location
919
+ # @param wsdl_definition [WsdlDefinition] WSDL definition
920
+ # @param api_version [String] API Version
921
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
922
+ # will be added to the HTTP request.
923
+ #
924
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
925
+ #
926
+ def extract_api_definition_from_wsdl_with_http_info(subscription_id, location, wsdl_definition, api_version, custom_headers:nil)
927
+ extract_api_definition_from_wsdl_async(subscription_id, location, wsdl_definition, api_version, custom_headers:custom_headers).value!
928
+ end
929
+
930
+ #
931
+ # Returns API definition from WSDL
932
+ #
933
+ # Parses the specified WSDL and extracts the API definition
934
+ #
935
+ # @param subscription_id [String] Subscription Id
936
+ # @param location [String] The location
937
+ # @param wsdl_definition [WsdlDefinition] WSDL definition
938
+ # @param api_version [String] API Version
939
+ # @param [Hash{String => String}] A hash of custom headers that will be added
940
+ # to the HTTP request.
941
+ #
942
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
943
+ #
944
+ def extract_api_definition_from_wsdl_async(subscription_id, location, wsdl_definition, api_version, custom_headers:nil)
945
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
946
+ fail ArgumentError, 'location is nil' if location.nil?
947
+ fail ArgumentError, 'wsdl_definition is nil' if wsdl_definition.nil?
948
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
949
+
950
+
951
+ request_headers = {}
952
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
953
+
954
+ # Set Headers
955
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
956
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
957
+
958
+ # Serialize Request
959
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::WsdlDefinition.mapper()
960
+ request_content = @client.serialize(request_mapper, wsdl_definition)
961
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
962
+
963
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/extractApiDefinitionFromWsdl'
964
+
965
+ request_url = @base_url || @client.base_url
966
+
967
+ options = {
968
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
969
+ path_params: {'subscriptionId' => subscription_id,'location' => location},
970
+ query_params: {'api-version' => api_version},
971
+ body: request_content,
972
+ headers: request_headers.merge(custom_headers || {}),
973
+ base_url: request_url
974
+ }
975
+ promise = @client.make_request_async(:post, path_template, options)
976
+
977
+ promise = promise.then do |result|
978
+ http_response = result.response
979
+ status_code = http_response.status
980
+ response_content = http_response.body
981
+ unless status_code == 200
982
+ error_model = JSON.load(response_content)
983
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
984
+ end
985
+
986
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
987
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
988
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
989
+
990
+ result
991
+ end
992
+
993
+ promise.execute
994
+ end
995
+
996
+ end
997
+ end