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,815 @@
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
+ # Connections
9
+ #
10
+ class Connections
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Connections 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
+ # Get all connections
26
+ #
27
+ # Gets a list of connections
28
+ #
29
+ # @param subscription_id [String] Subscription Id
30
+ # @param resource_group_name [String] The resource group
31
+ # @param api_version [String] API Version
32
+ # @param top [Integer] The number of items to be included in the result
33
+ # @param filter [String] The filter to apply on the operation
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ # @return [ApiConnectionDefinitionCollection] operation results.
38
+ #
39
+ def list(subscription_id, resource_group_name, api_version, top:nil, filter:nil, custom_headers:nil)
40
+ response = list_async(subscription_id, resource_group_name, api_version, top:top, filter:filter, custom_headers:custom_headers).value!
41
+ response.body unless response.nil?
42
+ end
43
+
44
+ #
45
+ # Get all connections
46
+ #
47
+ # Gets a list of connections
48
+ #
49
+ # @param subscription_id [String] Subscription Id
50
+ # @param resource_group_name [String] The resource group
51
+ # @param api_version [String] API Version
52
+ # @param top [Integer] The number of items to be included in the result
53
+ # @param filter [String] The filter to apply on the operation
54
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
55
+ # will be added to the HTTP request.
56
+ #
57
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
58
+ #
59
+ def list_with_http_info(subscription_id, resource_group_name, api_version, top:nil, filter:nil, custom_headers:nil)
60
+ list_async(subscription_id, resource_group_name, api_version, top:top, filter:filter, custom_headers:custom_headers).value!
61
+ end
62
+
63
+ #
64
+ # Get all connections
65
+ #
66
+ # Gets a list of connections
67
+ #
68
+ # @param subscription_id [String] Subscription Id
69
+ # @param resource_group_name [String] The resource group
70
+ # @param api_version [String] API Version
71
+ # @param top [Integer] The number of items to be included in the result
72
+ # @param filter [String] The filter to apply on the operation
73
+ # @param [Hash{String => String}] A hash of custom headers that will be added
74
+ # to the HTTP request.
75
+ #
76
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
+ #
78
+ def list_async(subscription_id, resource_group_name, api_version, top:nil, filter:nil, custom_headers:nil)
79
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
80
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
81
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
82
+
83
+
84
+ request_headers = {}
85
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
86
+
87
+ # Set Headers
88
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
89
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
90
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections'
91
+
92
+ request_url = @base_url || @client.base_url
93
+
94
+ options = {
95
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
96
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name},
97
+ query_params: {'$top' => top,'$filter' => filter,'api-version' => api_version},
98
+ headers: request_headers.merge(custom_headers || {}),
99
+ base_url: request_url
100
+ }
101
+ promise = @client.make_request_async(:get, path_template, options)
102
+
103
+ promise = promise.then do |result|
104
+ http_response = result.response
105
+ status_code = http_response.status
106
+ response_content = http_response.body
107
+ unless status_code == 200
108
+ error_model = JSON.load(response_content)
109
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
110
+ end
111
+
112
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
114
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
115
+ # Deserialize Response
116
+ if status_code == 200
117
+ begin
118
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
119
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinitionCollection.mapper()
120
+ result.body = @client.deserialize(result_mapper, parsed_response)
121
+ rescue Exception => e
122
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
123
+ end
124
+ end
125
+
126
+ result
127
+ end
128
+
129
+ promise.execute
130
+ end
131
+
132
+ #
133
+ # Get a connection
134
+ #
135
+ # Get a specific connection
136
+ #
137
+ # @param subscription_id [String] Subscription Id
138
+ # @param resource_group_name [String] The resource group
139
+ # @param connection_name [String] Connection name
140
+ # @param api_version [String] API Version
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ # @return [ApiConnectionDefinition] operation results.
145
+ #
146
+ def get(subscription_id, resource_group_name, connection_name, api_version, custom_headers:nil)
147
+ response = get_async(subscription_id, resource_group_name, connection_name, api_version, custom_headers:custom_headers).value!
148
+ response.body unless response.nil?
149
+ end
150
+
151
+ #
152
+ # Get a connection
153
+ #
154
+ # Get a specific connection
155
+ #
156
+ # @param subscription_id [String] Subscription Id
157
+ # @param resource_group_name [String] The resource group
158
+ # @param connection_name [String] Connection name
159
+ # @param api_version [String] API Version
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 get_with_http_info(subscription_id, resource_group_name, connection_name, api_version, custom_headers:nil)
166
+ get_async(subscription_id, resource_group_name, connection_name, api_version, custom_headers:custom_headers).value!
167
+ end
168
+
169
+ #
170
+ # Get a connection
171
+ #
172
+ # Get a specific connection
173
+ #
174
+ # @param subscription_id [String] Subscription Id
175
+ # @param resource_group_name [String] The resource group
176
+ # @param connection_name [String] Connection name
177
+ # @param api_version [String] API Version
178
+ # @param [Hash{String => String}] A hash of custom headers that will be added
179
+ # to the HTTP request.
180
+ #
181
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
182
+ #
183
+ def get_async(subscription_id, resource_group_name, connection_name, api_version, custom_headers:nil)
184
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
185
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
186
+ fail ArgumentError, 'connection_name is nil' if connection_name.nil?
187
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
188
+
189
+
190
+ request_headers = {}
191
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
192
+
193
+ # Set Headers
194
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
195
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
196
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/{connectionName}'
197
+
198
+ request_url = @base_url || @client.base_url
199
+
200
+ options = {
201
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
202
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionName' => connection_name},
203
+ query_params: {'api-version' => api_version},
204
+ headers: request_headers.merge(custom_headers || {}),
205
+ base_url: request_url
206
+ }
207
+ promise = @client.make_request_async(:get, path_template, options)
208
+
209
+ promise = promise.then do |result|
210
+ http_response = result.response
211
+ status_code = http_response.status
212
+ response_content = http_response.body
213
+ unless status_code == 200
214
+ error_model = JSON.load(response_content)
215
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
216
+ end
217
+
218
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
219
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
220
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
221
+ # Deserialize Response
222
+ if status_code == 200
223
+ begin
224
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
225
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinition.mapper()
226
+ result.body = @client.deserialize(result_mapper, parsed_response)
227
+ rescue Exception => e
228
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
229
+ end
230
+ end
231
+
232
+ result
233
+ end
234
+
235
+ promise.execute
236
+ end
237
+
238
+ #
239
+ # Replace an existing connection
240
+ #
241
+ # Creates or updates a connection
242
+ #
243
+ # @param subscription_id [String] Subscription Id
244
+ # @param resource_group_name [String] The resource group
245
+ # @param connection_name [String] Connection name
246
+ # @param connection [ApiConnectionDefinition] The connection
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 [ApiConnectionDefinition] operation results.
252
+ #
253
+ def create_or_update(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:nil)
254
+ response = create_or_update_async(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:custom_headers).value!
255
+ response.body unless response.nil?
256
+ end
257
+
258
+ #
259
+ # Replace an existing connection
260
+ #
261
+ # Creates or updates a connection
262
+ #
263
+ # @param subscription_id [String] Subscription Id
264
+ # @param resource_group_name [String] The resource group
265
+ # @param connection_name [String] Connection name
266
+ # @param connection [ApiConnectionDefinition] The connection
267
+ # @param api_version [String] API Version
268
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
269
+ # will be added to the HTTP request.
270
+ #
271
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
272
+ #
273
+ def create_or_update_with_http_info(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:nil)
274
+ create_or_update_async(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:custom_headers).value!
275
+ end
276
+
277
+ #
278
+ # Replace an existing connection
279
+ #
280
+ # Creates or updates a connection
281
+ #
282
+ # @param subscription_id [String] Subscription Id
283
+ # @param resource_group_name [String] The resource group
284
+ # @param connection_name [String] Connection name
285
+ # @param connection [ApiConnectionDefinition] The connection
286
+ # @param api_version [String] API Version
287
+ # @param [Hash{String => String}] A hash of custom headers that will be added
288
+ # to the HTTP request.
289
+ #
290
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
291
+ #
292
+ def create_or_update_async(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:nil)
293
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
294
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
295
+ fail ArgumentError, 'connection_name is nil' if connection_name.nil?
296
+ fail ArgumentError, 'connection is nil' if connection.nil?
297
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
298
+
299
+
300
+ request_headers = {}
301
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
302
+
303
+ # Set Headers
304
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
305
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
306
+
307
+ # Serialize Request
308
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinition.mapper()
309
+ request_content = @client.serialize(request_mapper, connection)
310
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
311
+
312
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/{connectionName}'
313
+
314
+ request_url = @base_url || @client.base_url
315
+
316
+ options = {
317
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
318
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionName' => connection_name},
319
+ query_params: {'api-version' => api_version},
320
+ body: request_content,
321
+ headers: request_headers.merge(custom_headers || {}),
322
+ base_url: request_url
323
+ }
324
+ promise = @client.make_request_async(:put, path_template, options)
325
+
326
+ promise = promise.then do |result|
327
+ http_response = result.response
328
+ status_code = http_response.status
329
+ response_content = http_response.body
330
+ unless status_code == 200 || status_code == 201
331
+ error_model = JSON.load(response_content)
332
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
333
+ end
334
+
335
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
336
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
337
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
338
+ # Deserialize Response
339
+ if status_code == 200
340
+ begin
341
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
342
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinition.mapper()
343
+ result.body = @client.deserialize(result_mapper, parsed_response)
344
+ rescue Exception => e
345
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
346
+ end
347
+ end
348
+ # Deserialize Response
349
+ if status_code == 201
350
+ begin
351
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
352
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinition.mapper()
353
+ result.body = @client.deserialize(result_mapper, parsed_response)
354
+ rescue Exception => e
355
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
356
+ end
357
+ end
358
+
359
+ result
360
+ end
361
+
362
+ promise.execute
363
+ end
364
+
365
+ #
366
+ # Update an existing connection
367
+ #
368
+ # Updates a connection's tags
369
+ #
370
+ # @param subscription_id [String] Subscription Id
371
+ # @param resource_group_name [String] The resource group
372
+ # @param connection_name [String] Connection name
373
+ # @param connection [ApiConnectionDefinition] The connection
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 [ApiConnectionDefinition] operation results.
379
+ #
380
+ def update(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:nil)
381
+ response = update_async(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:custom_headers).value!
382
+ response.body unless response.nil?
383
+ end
384
+
385
+ #
386
+ # Update an existing connection
387
+ #
388
+ # Updates a connection's tags
389
+ #
390
+ # @param subscription_id [String] Subscription Id
391
+ # @param resource_group_name [String] The resource group
392
+ # @param connection_name [String] Connection name
393
+ # @param connection [ApiConnectionDefinition] The connection
394
+ # @param api_version [String] API Version
395
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
396
+ # will be added to the HTTP request.
397
+ #
398
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
399
+ #
400
+ def update_with_http_info(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:nil)
401
+ update_async(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:custom_headers).value!
402
+ end
403
+
404
+ #
405
+ # Update an existing connection
406
+ #
407
+ # Updates a connection's tags
408
+ #
409
+ # @param subscription_id [String] Subscription Id
410
+ # @param resource_group_name [String] The resource group
411
+ # @param connection_name [String] Connection name
412
+ # @param connection [ApiConnectionDefinition] The connection
413
+ # @param api_version [String] API Version
414
+ # @param [Hash{String => String}] A hash of custom headers that will be added
415
+ # to the HTTP request.
416
+ #
417
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
418
+ #
419
+ def update_async(subscription_id, resource_group_name, connection_name, connection, api_version, custom_headers:nil)
420
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
421
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
422
+ fail ArgumentError, 'connection_name is nil' if connection_name.nil?
423
+ fail ArgumentError, 'connection is nil' if connection.nil?
424
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
425
+
426
+
427
+ request_headers = {}
428
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
429
+
430
+ # Set Headers
431
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
432
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
433
+
434
+ # Serialize Request
435
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinition.mapper()
436
+ request_content = @client.serialize(request_mapper, connection)
437
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
438
+
439
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/{connectionName}'
440
+
441
+ request_url = @base_url || @client.base_url
442
+
443
+ options = {
444
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
445
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionName' => connection_name},
446
+ query_params: {'api-version' => api_version},
447
+ body: request_content,
448
+ headers: request_headers.merge(custom_headers || {}),
449
+ base_url: request_url
450
+ }
451
+ promise = @client.make_request_async(:patch, path_template, options)
452
+
453
+ promise = promise.then do |result|
454
+ http_response = result.response
455
+ status_code = http_response.status
456
+ response_content = http_response.body
457
+ unless status_code == 200
458
+ error_model = JSON.load(response_content)
459
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
460
+ end
461
+
462
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
463
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
464
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
465
+ # Deserialize Response
466
+ if status_code == 200
467
+ begin
468
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
469
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ApiConnectionDefinition.mapper()
470
+ result.body = @client.deserialize(result_mapper, parsed_response)
471
+ rescue Exception => e
472
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
473
+ end
474
+ end
475
+
476
+ result
477
+ end
478
+
479
+ promise.execute
480
+ end
481
+
482
+ #
483
+ # Delete an existing connection
484
+ #
485
+ # Deletes a connection
486
+ #
487
+ # @param subscription_id [String] Subscription Id
488
+ # @param resource_group_name [String] The resource group
489
+ # @param connection_name [String] Connection name
490
+ # @param api_version [String] API Version
491
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
492
+ # will be added to the HTTP request.
493
+ #
494
+ #
495
+ def delete(subscription_id, resource_group_name, connection_name, api_version, custom_headers:nil)
496
+ response = delete_async(subscription_id, resource_group_name, connection_name, api_version, custom_headers:custom_headers).value!
497
+ nil
498
+ end
499
+
500
+ #
501
+ # Delete an existing connection
502
+ #
503
+ # Deletes a connection
504
+ #
505
+ # @param subscription_id [String] Subscription Id
506
+ # @param resource_group_name [String] The resource group
507
+ # @param connection_name [String] Connection name
508
+ # @param api_version [String] API Version
509
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
+ # will be added to the HTTP request.
511
+ #
512
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
513
+ #
514
+ def delete_with_http_info(subscription_id, resource_group_name, connection_name, api_version, custom_headers:nil)
515
+ delete_async(subscription_id, resource_group_name, connection_name, api_version, custom_headers:custom_headers).value!
516
+ end
517
+
518
+ #
519
+ # Delete an existing connection
520
+ #
521
+ # Deletes a connection
522
+ #
523
+ # @param subscription_id [String] Subscription Id
524
+ # @param resource_group_name [String] The resource group
525
+ # @param connection_name [String] Connection name
526
+ # @param api_version [String] API Version
527
+ # @param [Hash{String => String}] A hash of custom headers that will be added
528
+ # to the HTTP request.
529
+ #
530
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
531
+ #
532
+ def delete_async(subscription_id, resource_group_name, connection_name, api_version, custom_headers:nil)
533
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
534
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
535
+ fail ArgumentError, 'connection_name is nil' if connection_name.nil?
536
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
537
+
538
+
539
+ request_headers = {}
540
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
541
+
542
+ # Set Headers
543
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
544
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
545
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/{connectionName}'
546
+
547
+ request_url = @base_url || @client.base_url
548
+
549
+ options = {
550
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
551
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionName' => connection_name},
552
+ query_params: {'api-version' => api_version},
553
+ headers: request_headers.merge(custom_headers || {}),
554
+ base_url: request_url
555
+ }
556
+ promise = @client.make_request_async(:delete, path_template, options)
557
+
558
+ promise = promise.then do |result|
559
+ http_response = result.response
560
+ status_code = http_response.status
561
+ response_content = http_response.body
562
+ unless status_code == 200 || status_code == 204
563
+ error_model = JSON.load(response_content)
564
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
565
+ end
566
+
567
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
568
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
569
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
570
+
571
+ result
572
+ end
573
+
574
+ promise.execute
575
+ end
576
+
577
+ #
578
+ # Lists consent links for a connection
579
+ #
580
+ # Lists the consent links of a connection
581
+ #
582
+ # @param subscription_id [String] Subscription Id
583
+ # @param resource_group_name [String] The resource group
584
+ # @param connection_name [String] Connection name
585
+ # @param list_consent_link [ListConsentLinksDefinition] The consent links
586
+ # @param api_version [String] API Version
587
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
588
+ # will be added to the HTTP request.
589
+ #
590
+ # @return [ConsentLinkCollection] operation results.
591
+ #
592
+ def list_consent_links(subscription_id, resource_group_name, connection_name, list_consent_link, api_version, custom_headers:nil)
593
+ response = list_consent_links_async(subscription_id, resource_group_name, connection_name, list_consent_link, api_version, custom_headers:custom_headers).value!
594
+ response.body unless response.nil?
595
+ end
596
+
597
+ #
598
+ # Lists consent links for a connection
599
+ #
600
+ # Lists the consent links of a connection
601
+ #
602
+ # @param subscription_id [String] Subscription Id
603
+ # @param resource_group_name [String] The resource group
604
+ # @param connection_name [String] Connection name
605
+ # @param list_consent_link [ListConsentLinksDefinition] The consent links
606
+ # @param api_version [String] API Version
607
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
608
+ # will be added to the HTTP request.
609
+ #
610
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
611
+ #
612
+ def list_consent_links_with_http_info(subscription_id, resource_group_name, connection_name, list_consent_link, api_version, custom_headers:nil)
613
+ list_consent_links_async(subscription_id, resource_group_name, connection_name, list_consent_link, api_version, custom_headers:custom_headers).value!
614
+ end
615
+
616
+ #
617
+ # Lists consent links for a connection
618
+ #
619
+ # Lists the consent links of a connection
620
+ #
621
+ # @param subscription_id [String] Subscription Id
622
+ # @param resource_group_name [String] The resource group
623
+ # @param connection_name [String] Connection name
624
+ # @param list_consent_link [ListConsentLinksDefinition] The consent links
625
+ # @param api_version [String] API Version
626
+ # @param [Hash{String => String}] A hash of custom headers that will be added
627
+ # to the HTTP request.
628
+ #
629
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
630
+ #
631
+ def list_consent_links_async(subscription_id, resource_group_name, connection_name, list_consent_link, api_version, custom_headers:nil)
632
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
633
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
634
+ fail ArgumentError, 'connection_name is nil' if connection_name.nil?
635
+ fail ArgumentError, 'list_consent_link is nil' if list_consent_link.nil?
636
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
637
+
638
+
639
+ request_headers = {}
640
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
641
+
642
+ # Set Headers
643
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
644
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
645
+
646
+ # Serialize Request
647
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ListConsentLinksDefinition.mapper()
648
+ request_content = @client.serialize(request_mapper, list_consent_link)
649
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
650
+
651
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/{connectionName}/listConsentLinks'
652
+
653
+ request_url = @base_url || @client.base_url
654
+
655
+ options = {
656
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
657
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionName' => connection_name},
658
+ query_params: {'api-version' => api_version},
659
+ body: request_content,
660
+ headers: request_headers.merge(custom_headers || {}),
661
+ base_url: request_url
662
+ }
663
+ promise = @client.make_request_async(:post, path_template, options)
664
+
665
+ promise = promise.then do |result|
666
+ http_response = result.response
667
+ status_code = http_response.status
668
+ response_content = http_response.body
669
+ unless status_code == 200
670
+ error_model = JSON.load(response_content)
671
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
672
+ end
673
+
674
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
675
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
676
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
677
+ # Deserialize Response
678
+ if status_code == 200
679
+ begin
680
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
681
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConsentLinkCollection.mapper()
682
+ result.body = @client.deserialize(result_mapper, parsed_response)
683
+ rescue Exception => e
684
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
685
+ end
686
+ end
687
+
688
+ result
689
+ end
690
+
691
+ promise.execute
692
+ end
693
+
694
+ #
695
+ # Confirms the consent code for a connection
696
+ #
697
+ # Confirms consent code of a connection
698
+ #
699
+ # @param subscription_id [String] Subscription Id
700
+ # @param resource_group_name [String] The resource group
701
+ # @param connection_name [String] Connection name
702
+ # @param confirm_consent_code [ConfirmConsentCodeDefinition] The consent code
703
+ # confirmation
704
+ # @param api_version [String] API Version
705
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
706
+ # will be added to the HTTP request.
707
+ #
708
+ # @return [ConfirmConsentCodeDefinition] operation results.
709
+ #
710
+ def confirm_consent_code(subscription_id, resource_group_name, connection_name, confirm_consent_code, api_version, custom_headers:nil)
711
+ response = confirm_consent_code_async(subscription_id, resource_group_name, connection_name, confirm_consent_code, api_version, custom_headers:custom_headers).value!
712
+ response.body unless response.nil?
713
+ end
714
+
715
+ #
716
+ # Confirms the consent code for a connection
717
+ #
718
+ # Confirms consent code of a connection
719
+ #
720
+ # @param subscription_id [String] Subscription Id
721
+ # @param resource_group_name [String] The resource group
722
+ # @param connection_name [String] Connection name
723
+ # @param confirm_consent_code [ConfirmConsentCodeDefinition] The consent code
724
+ # confirmation
725
+ # @param api_version [String] API Version
726
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
727
+ # will be added to the HTTP request.
728
+ #
729
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
730
+ #
731
+ def confirm_consent_code_with_http_info(subscription_id, resource_group_name, connection_name, confirm_consent_code, api_version, custom_headers:nil)
732
+ confirm_consent_code_async(subscription_id, resource_group_name, connection_name, confirm_consent_code, api_version, custom_headers:custom_headers).value!
733
+ end
734
+
735
+ #
736
+ # Confirms the consent code for a connection
737
+ #
738
+ # Confirms consent code of a connection
739
+ #
740
+ # @param subscription_id [String] Subscription Id
741
+ # @param resource_group_name [String] The resource group
742
+ # @param connection_name [String] Connection name
743
+ # @param confirm_consent_code [ConfirmConsentCodeDefinition] The consent code
744
+ # confirmation
745
+ # @param api_version [String] API Version
746
+ # @param [Hash{String => String}] A hash of custom headers that will be added
747
+ # to the HTTP request.
748
+ #
749
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
750
+ #
751
+ def confirm_consent_code_async(subscription_id, resource_group_name, connection_name, confirm_consent_code, api_version, custom_headers:nil)
752
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
753
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
754
+ fail ArgumentError, 'connection_name is nil' if connection_name.nil?
755
+ fail ArgumentError, 'confirm_consent_code is nil' if confirm_consent_code.nil?
756
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
757
+
758
+
759
+ request_headers = {}
760
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
761
+
762
+ # Set Headers
763
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
764
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
765
+
766
+ # Serialize Request
767
+ request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConfirmConsentCodeDefinition.mapper()
768
+ request_content = @client.serialize(request_mapper, confirm_consent_code)
769
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
770
+
771
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/{connectionName}/confirmConsentCode'
772
+
773
+ request_url = @base_url || @client.base_url
774
+
775
+ options = {
776
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
777
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionName' => connection_name},
778
+ query_params: {'api-version' => api_version},
779
+ body: request_content,
780
+ headers: request_headers.merge(custom_headers || {}),
781
+ base_url: request_url
782
+ }
783
+ promise = @client.make_request_async(:post, path_template, options)
784
+
785
+ promise = promise.then do |result|
786
+ http_response = result.response
787
+ status_code = http_response.status
788
+ response_content = http_response.body
789
+ unless status_code == 200
790
+ error_model = JSON.load(response_content)
791
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
792
+ end
793
+
794
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
795
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
796
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
797
+ # Deserialize Response
798
+ if status_code == 200
799
+ begin
800
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
801
+ result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConfirmConsentCodeDefinition.mapper()
802
+ result.body = @client.deserialize(result_mapper, parsed_response)
803
+ rescue Exception => e
804
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
805
+ end
806
+ end
807
+
808
+ result
809
+ end
810
+
811
+ promise.execute
812
+ end
813
+
814
+ end
815
+ end