azure_mgmt_logic 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/logic_management_client.rb +1 -1
  3. data/lib/2016-06-01/generated/azure_mgmt_logic.rb +71 -64
  4. data/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb +11 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request.rb +68 -0
  6. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request_history.rb +98 -0
  7. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request_history_list_result.rb +98 -0
  8. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request_history_properties.rb +81 -0
  9. data/lib/2016-06-01/generated/azure_mgmt_logic/models/response.rb +69 -0
  10. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_action_repetitions_request_histories.rb +350 -0
  11. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_action_request_histories.rb +341 -0
  12. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb +1 -1
  13. data/lib/2018-07-01-preview/generated/azure_mgmt_logic.rb +223 -0
  14. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_agreements.rb +647 -0
  15. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_assemblies.rb +511 -0
  16. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_batch_configurations.rb +415 -0
  17. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_certificates.rb +532 -0
  18. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_maps.rb +644 -0
  19. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_partners.rb +644 -0
  20. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_schemas.rb +644 -0
  21. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_sessions.rb +537 -0
  22. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_accounts.rb +1218 -0
  23. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/logic_management_client.rb +219 -0
  24. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/agreement_content.rb +71 -0
  25. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/agreement_type.rb +18 -0
  26. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/artifact_content_properties_definition.rb +93 -0
  27. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/artifact_properties.rb +68 -0
  28. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +83 -0
  29. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2agreement_content.rb +59 -0
  30. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2envelope_settings.rb +93 -0
  31. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2error_settings.rb +59 -0
  32. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2mdn_settings.rb +141 -0
  33. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +83 -0
  34. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +71 -0
  35. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2protocol_settings.rb +120 -0
  36. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2security_settings.rb +153 -0
  37. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2validation_settings.rb +157 -0
  38. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/assembly_collection.rb +55 -0
  39. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/assembly_definition.rb +98 -0
  40. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/assembly_properties.rb +128 -0
  41. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/azure_resource_error_info.rb +74 -0
  42. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/b2bpartner_content.rb +56 -0
  43. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_configuration.rb +99 -0
  44. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_configuration_collection.rb +55 -0
  45. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_configuration_properties.rb +82 -0
  46. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_release_criteria.rb +69 -0
  47. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/business_identity.rb +58 -0
  48. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/callback_url.rb +46 -0
  49. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/content_hash.rb +57 -0
  50. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/content_link.rb +91 -0
  51. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/correlation.rb +46 -0
  52. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/day_of_week.rb +21 -0
  53. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/days_of_week.rb +21 -0
  54. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +163 -0
  55. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +59 -0
  56. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_character_set.rb +29 -0
  57. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb +17 -0
  58. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +172 -0
  59. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +204 -0
  60. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +494 -0
  61. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +164 -0
  62. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_message_filter.rb +47 -0
  63. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_message_identifier.rb +47 -0
  64. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +71 -0
  65. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +94 -0
  66. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +212 -0
  67. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +112 -0
  68. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_validation_override.rb +118 -0
  69. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +155 -0
  70. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/encryption_algorithm.rb +21 -0
  71. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/error_info.rb +46 -0
  72. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/error_properties.rb +58 -0
  73. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/error_response.rb +48 -0
  74. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/event_level.rb +20 -0
  75. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/expression.rb +90 -0
  76. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/expression_root.rb +89 -0
  77. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/expression_traces.rb +56 -0
  78. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb +46 -0
  79. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/get_callback_url_parameters.rb +58 -0
  80. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/hashing_algorithm.rb +21 -0
  81. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account.rb +109 -0
  82. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_agreement.rb +194 -0
  83. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb +49 -0
  84. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +99 -0
  85. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_certificate.rb +144 -0
  86. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +100 -0
  87. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_list_result.rb +98 -0
  88. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map.rb +181 -0
  89. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map_filter.rb +47 -0
  90. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb +99 -0
  91. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map_properties_parameters_schema.rb +47 -0
  92. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_partner.rb +145 -0
  93. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb +47 -0
  94. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb +99 -0
  95. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_schema.rb +201 -0
  96. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +47 -0
  97. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb +99 -0
  98. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_session.rb +121 -0
  99. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_session_filter.rb +46 -0
  100. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb +99 -0
  101. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_sku.rb +47 -0
  102. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_sku_name.rb +18 -0
  103. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/json_schema.rb +57 -0
  104. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_type.rb +17 -0
  105. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key.rb +58 -0
  106. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_attributes.rb +68 -0
  107. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_collection.rb +66 -0
  108. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +69 -0
  109. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb +70 -0
  110. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_reference.rb +61 -0
  111. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/list_key_vault_keys_definition.rb +58 -0
  112. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/map_type.rb +19 -0
  113. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/message_filter_type.rb +17 -0
  114. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation.rb +58 -0
  115. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_display.rb +69 -0
  116. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_list_result.rb +101 -0
  117. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_result.rb +189 -0
  118. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_result_properties.rb +105 -0
  119. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/parameter_type.rb +23 -0
  120. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/partner_content.rb +47 -0
  121. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/partner_type.rb +16 -0
  122. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/recurrence_frequency.rb +22 -0
  123. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/recurrence_schedule.rb +132 -0
  124. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb +60 -0
  125. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/regenerate_action_parameter.rb +47 -0
  126. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/repetition_index.rb +57 -0
  127. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request.rb +68 -0
  128. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request_history.rb +98 -0
  129. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request_history_list_result.rb +98 -0
  130. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request_history_properties.rb +81 -0
  131. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/resource.rb +110 -0
  132. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/resource_reference.rb +70 -0
  133. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/response.rb +69 -0
  134. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/retry_history.rb +102 -0
  135. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/run_action_correlation.rb +70 -0
  136. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/run_correlation.rb +65 -0
  137. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/schema_type.rb +16 -0
  138. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +19 -0
  139. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/set_trigger_state_action_definition.rb +48 -0
  140. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/signing_algorithm.rb +20 -0
  141. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/sku.rb +59 -0
  142. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/sku_name.rb +20 -0
  143. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/sub_resource.rb +47 -0
  144. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/track_events_operation_options.rb +16 -0
  145. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_event.rb +91 -0
  146. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_event_error_info.rb +58 -0
  147. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_events_definition.rb +79 -0
  148. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_record_type.rb +30 -0
  149. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +18 -0
  150. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/usage_indicator.rb +18 -0
  151. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow.rb +218 -0
  152. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_filter.rb +48 -0
  153. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_list_result.rb +98 -0
  154. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_output_parameter.rb +79 -0
  155. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_parameter.rb +81 -0
  156. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +32 -0
  157. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run.rb +227 -0
  158. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action.rb +213 -0
  159. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb +49 -0
  160. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb +98 -0
  161. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_repetition_definition.rb +281 -0
  162. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_repetition_definition_collection.rb +56 -0
  163. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_filter.rb +49 -0
  164. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_list_result.rb +98 -0
  165. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +208 -0
  166. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_state.rb +20 -0
  167. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_status.rb +27 -0
  168. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger.rb +188 -0
  169. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb +116 -0
  170. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb +48 -0
  171. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +206 -0
  172. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb +49 -0
  173. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb +99 -0
  174. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb +90 -0
  175. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +98 -0
  176. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +32 -0
  177. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +104 -0
  178. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_version.rb +202 -0
  179. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +98 -0
  180. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +209 -0
  181. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12agreement_content.rb +59 -0
  182. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12character_set.rb +18 -0
  183. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12date_format.rb +17 -0
  184. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +138 -0
  185. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12envelope_override.rb +150 -0
  186. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12envelope_settings.rb +308 -0
  187. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12framing_settings.rb +116 -0
  188. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12message_filter.rb +47 -0
  189. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12message_identifier.rb +46 -0
  190. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +71 -0
  191. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12processing_settings.rb +106 -0
  192. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12protocol_settings.rb +222 -0
  193. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12schema_reference.rb +79 -0
  194. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12security_settings.rb +79 -0
  195. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12time_format.rb +19 -0
  196. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12validation_override.rb +118 -0
  197. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12validation_settings.rb +155 -0
  198. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/module_definition.rb +9 -0
  199. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/operations.rb +215 -0
  200. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_repetitions.rb +333 -0
  201. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_repetitions_request_histories.rb +350 -0
  202. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_request_histories.rb +341 -0
  203. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_scope_repetitions.rb +229 -0
  204. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb +444 -0
  205. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_operations.rb +125 -0
  206. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_runs.rb +420 -0
  207. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb +439 -0
  208. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb +793 -0
  209. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_version_triggers.rb +135 -0
  210. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_versions.rb +327 -0
  211. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflows.rb +1645 -0
  212. data/lib/azure_mgmt_logic.rb +1 -0
  213. data/lib/profiles/latest/modules/logic_profile_module.rb +465 -445
  214. data/lib/version.rb +1 -1
  215. metadata +208 -2
@@ -0,0 +1,1645 @@
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::Logic::Mgmt::V2018_07_01_preview
7
+ #
8
+ # REST API for Azure Logic Apps.
9
+ #
10
+ class Workflows
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Workflows class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [LogicManagementClient] reference to the LogicManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets a list of workflows by subscription.
26
+ #
27
+ # @param top [Integer] The number of items to be included in the result.
28
+ # @param filter [String] The filter to apply on the operation. Options for
29
+ # filters include: State, Trigger, and ReferencedResourceId.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [Array<Workflow>] operation results.
34
+ #
35
+ def list_by_subscription(top:nil, filter:nil, custom_headers:nil)
36
+ first_page = list_by_subscription_as_lazy(top:top, filter:filter, custom_headers:custom_headers)
37
+ first_page.get_all_items
38
+ end
39
+
40
+ #
41
+ # Gets a list of workflows by subscription.
42
+ #
43
+ # @param top [Integer] The number of items to be included in the result.
44
+ # @param filter [String] The filter to apply on the operation. Options for
45
+ # filters include: State, Trigger, and ReferencedResourceId.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def list_by_subscription_with_http_info(top:nil, filter:nil, custom_headers:nil)
52
+ list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Gets a list of workflows by subscription.
57
+ #
58
+ # @param top [Integer] The number of items to be included in the result.
59
+ # @param filter [String] The filter to apply on the operation. Options for
60
+ # filters include: State, Trigger, and ReferencedResourceId.
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def list_by_subscription_async(top:nil, filter:nil, custom_headers:nil)
67
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
68
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
69
+
70
+
71
+ request_headers = {}
72
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
73
+
74
+ # Set Headers
75
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
76
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
77
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Logic/workflows'
78
+
79
+ request_url = @base_url || @client.base_url
80
+
81
+ options = {
82
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
83
+ path_params: {'subscriptionId' => @client.subscription_id},
84
+ query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
85
+ headers: request_headers.merge(custom_headers || {}),
86
+ base_url: request_url
87
+ }
88
+ promise = @client.make_request_async(:get, path_template, options)
89
+
90
+ promise = promise.then do |result|
91
+ http_response = result.response
92
+ status_code = http_response.status
93
+ response_content = http_response.body
94
+ unless status_code == 200
95
+ error_model = JSON.load(response_content)
96
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
97
+ end
98
+
99
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
100
+ # Deserialize Response
101
+ if status_code == 200
102
+ begin
103
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
104
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowListResult.mapper()
105
+ result.body = @client.deserialize(result_mapper, parsed_response)
106
+ rescue Exception => e
107
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
108
+ end
109
+ end
110
+
111
+ result
112
+ end
113
+
114
+ promise.execute
115
+ end
116
+
117
+ #
118
+ # Gets a list of workflows by resource group.
119
+ #
120
+ # @param resource_group_name [String] The resource group name.
121
+ # @param top [Integer] The number of items to be included in the result.
122
+ # @param filter [String] The filter to apply on the operation. Options for
123
+ # filters include: State, Trigger, and ReferencedResourceId.
124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
+ # will be added to the HTTP request.
126
+ #
127
+ # @return [Array<Workflow>] operation results.
128
+ #
129
+ def list_by_resource_group(resource_group_name, top:nil, filter:nil, custom_headers:nil)
130
+ first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, filter:filter, custom_headers:custom_headers)
131
+ first_page.get_all_items
132
+ end
133
+
134
+ #
135
+ # Gets a list of workflows by resource group.
136
+ #
137
+ # @param resource_group_name [String] The resource group name.
138
+ # @param top [Integer] The number of items to be included in the result.
139
+ # @param filter [String] The filter to apply on the operation. Options for
140
+ # filters include: State, Trigger, and ReferencedResourceId.
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
145
+ #
146
+ def list_by_resource_group_with_http_info(resource_group_name, top:nil, filter:nil, custom_headers:nil)
147
+ list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value!
148
+ end
149
+
150
+ #
151
+ # Gets a list of workflows by resource group.
152
+ #
153
+ # @param resource_group_name [String] The resource group name.
154
+ # @param top [Integer] The number of items to be included in the result.
155
+ # @param filter [String] The filter to apply on the operation. Options for
156
+ # filters include: State, Trigger, and ReferencedResourceId.
157
+ # @param [Hash{String => String}] A hash of custom headers that will be added
158
+ # to the HTTP request.
159
+ #
160
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
161
+ #
162
+ def list_by_resource_group_async(resource_group_name, top:nil, filter:nil, custom_headers:nil)
163
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
164
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
165
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
166
+
167
+
168
+ request_headers = {}
169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
170
+
171
+ # Set Headers
172
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
173
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
174
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows'
175
+
176
+ request_url = @base_url || @client.base_url
177
+
178
+ options = {
179
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
180
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
181
+ query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
182
+ headers: request_headers.merge(custom_headers || {}),
183
+ base_url: request_url
184
+ }
185
+ promise = @client.make_request_async(:get, path_template, options)
186
+
187
+ promise = promise.then do |result|
188
+ http_response = result.response
189
+ status_code = http_response.status
190
+ response_content = http_response.body
191
+ unless status_code == 200
192
+ error_model = JSON.load(response_content)
193
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
194
+ end
195
+
196
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
197
+ # Deserialize Response
198
+ if status_code == 200
199
+ begin
200
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
201
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowListResult.mapper()
202
+ result.body = @client.deserialize(result_mapper, parsed_response)
203
+ rescue Exception => e
204
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
205
+ end
206
+ end
207
+
208
+ result
209
+ end
210
+
211
+ promise.execute
212
+ end
213
+
214
+ #
215
+ # Gets a workflow.
216
+ #
217
+ # @param resource_group_name [String] The resource group name.
218
+ # @param workflow_name [String] The workflow name.
219
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
220
+ # will be added to the HTTP request.
221
+ #
222
+ # @return [Workflow] operation results.
223
+ #
224
+ def get(resource_group_name, workflow_name, custom_headers:nil)
225
+ response = get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
226
+ response.body unless response.nil?
227
+ end
228
+
229
+ #
230
+ # Gets a workflow.
231
+ #
232
+ # @param resource_group_name [String] The resource group name.
233
+ # @param workflow_name [String] The workflow name.
234
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
+ # will be added to the HTTP request.
236
+ #
237
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
238
+ #
239
+ def get_with_http_info(resource_group_name, workflow_name, custom_headers:nil)
240
+ get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
241
+ end
242
+
243
+ #
244
+ # Gets a workflow.
245
+ #
246
+ # @param resource_group_name [String] The resource group name.
247
+ # @param workflow_name [String] The workflow name.
248
+ # @param [Hash{String => String}] A hash of custom headers that will be added
249
+ # to the HTTP request.
250
+ #
251
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
252
+ #
253
+ def get_async(resource_group_name, workflow_name, custom_headers:nil)
254
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
255
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
256
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
257
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
258
+
259
+
260
+ request_headers = {}
261
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
262
+
263
+ # Set Headers
264
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
265
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
266
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
267
+
268
+ request_url = @base_url || @client.base_url
269
+
270
+ options = {
271
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
272
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
273
+ query_params: {'api-version' => @client.api_version},
274
+ headers: request_headers.merge(custom_headers || {}),
275
+ base_url: request_url
276
+ }
277
+ promise = @client.make_request_async(:get, path_template, options)
278
+
279
+ promise = promise.then do |result|
280
+ http_response = result.response
281
+ status_code = http_response.status
282
+ response_content = http_response.body
283
+ unless status_code == 200
284
+ error_model = JSON.load(response_content)
285
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
286
+ end
287
+
288
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
289
+ # Deserialize Response
290
+ if status_code == 200
291
+ begin
292
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
293
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
294
+ result.body = @client.deserialize(result_mapper, parsed_response)
295
+ rescue Exception => e
296
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
297
+ end
298
+ end
299
+
300
+ result
301
+ end
302
+
303
+ promise.execute
304
+ end
305
+
306
+ #
307
+ # Creates or updates a workflow.
308
+ #
309
+ # @param resource_group_name [String] The resource group name.
310
+ # @param workflow_name [String] The workflow name.
311
+ # @param workflow [Workflow] The workflow.
312
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
313
+ # will be added to the HTTP request.
314
+ #
315
+ # @return [Workflow] operation results.
316
+ #
317
+ def create_or_update(resource_group_name, workflow_name, workflow, custom_headers:nil)
318
+ response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value!
319
+ response.body unless response.nil?
320
+ end
321
+
322
+ #
323
+ # Creates or updates a workflow.
324
+ #
325
+ # @param resource_group_name [String] The resource group name.
326
+ # @param workflow_name [String] The workflow name.
327
+ # @param workflow [Workflow] The workflow.
328
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
329
+ # will be added to the HTTP request.
330
+ #
331
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
332
+ #
333
+ def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil)
334
+ create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value!
335
+ end
336
+
337
+ #
338
+ # Creates or updates a workflow.
339
+ #
340
+ # @param resource_group_name [String] The resource group name.
341
+ # @param workflow_name [String] The workflow name.
342
+ # @param workflow [Workflow] The workflow.
343
+ # @param [Hash{String => String}] A hash of custom headers that will be added
344
+ # to the HTTP request.
345
+ #
346
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
347
+ #
348
+ def create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:nil)
349
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
350
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
351
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
352
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
353
+ fail ArgumentError, 'workflow is nil' if workflow.nil?
354
+
355
+
356
+ request_headers = {}
357
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
358
+
359
+ # Set Headers
360
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
361
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
362
+
363
+ # Serialize Request
364
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
365
+ request_content = @client.serialize(request_mapper, workflow)
366
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
367
+
368
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
369
+
370
+ request_url = @base_url || @client.base_url
371
+
372
+ options = {
373
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
374
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
375
+ query_params: {'api-version' => @client.api_version},
376
+ body: request_content,
377
+ headers: request_headers.merge(custom_headers || {}),
378
+ base_url: request_url
379
+ }
380
+ promise = @client.make_request_async(:put, path_template, options)
381
+
382
+ promise = promise.then do |result|
383
+ http_response = result.response
384
+ status_code = http_response.status
385
+ response_content = http_response.body
386
+ unless status_code == 200 || status_code == 201
387
+ error_model = JSON.load(response_content)
388
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
389
+ end
390
+
391
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
392
+ # Deserialize Response
393
+ if status_code == 200
394
+ begin
395
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
396
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
397
+ result.body = @client.deserialize(result_mapper, parsed_response)
398
+ rescue Exception => e
399
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
400
+ end
401
+ end
402
+ # Deserialize Response
403
+ if status_code == 201
404
+ begin
405
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
406
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
407
+ result.body = @client.deserialize(result_mapper, parsed_response)
408
+ rescue Exception => e
409
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
410
+ end
411
+ end
412
+
413
+ result
414
+ end
415
+
416
+ promise.execute
417
+ end
418
+
419
+ #
420
+ # Updates a workflow.
421
+ #
422
+ # @param resource_group_name [String] The resource group name.
423
+ # @param workflow_name [String] The workflow name.
424
+ # @param workflow [Workflow] The workflow.
425
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
426
+ # will be added to the HTTP request.
427
+ #
428
+ # @return [Workflow] operation results.
429
+ #
430
+ def update(resource_group_name, workflow_name, workflow, custom_headers:nil)
431
+ response = update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value!
432
+ response.body unless response.nil?
433
+ end
434
+
435
+ #
436
+ # Updates a workflow.
437
+ #
438
+ # @param resource_group_name [String] The resource group name.
439
+ # @param workflow_name [String] The workflow name.
440
+ # @param workflow [Workflow] The workflow.
441
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
442
+ # will be added to the HTTP request.
443
+ #
444
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
445
+ #
446
+ def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil)
447
+ update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value!
448
+ end
449
+
450
+ #
451
+ # Updates a workflow.
452
+ #
453
+ # @param resource_group_name [String] The resource group name.
454
+ # @param workflow_name [String] The workflow name.
455
+ # @param workflow [Workflow] The workflow.
456
+ # @param [Hash{String => String}] A hash of custom headers that will be added
457
+ # to the HTTP request.
458
+ #
459
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
460
+ #
461
+ def update_async(resource_group_name, workflow_name, workflow, custom_headers:nil)
462
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
463
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
464
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
465
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
466
+ fail ArgumentError, 'workflow is nil' if workflow.nil?
467
+
468
+
469
+ request_headers = {}
470
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
471
+
472
+ # Set Headers
473
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
474
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
475
+
476
+ # Serialize Request
477
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
478
+ request_content = @client.serialize(request_mapper, workflow)
479
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
480
+
481
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
482
+
483
+ request_url = @base_url || @client.base_url
484
+
485
+ options = {
486
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
487
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
488
+ query_params: {'api-version' => @client.api_version},
489
+ body: request_content,
490
+ headers: request_headers.merge(custom_headers || {}),
491
+ base_url: request_url
492
+ }
493
+ promise = @client.make_request_async(:patch, path_template, options)
494
+
495
+ promise = promise.then do |result|
496
+ http_response = result.response
497
+ status_code = http_response.status
498
+ response_content = http_response.body
499
+ unless status_code == 200
500
+ error_model = JSON.load(response_content)
501
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
502
+ end
503
+
504
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
505
+ # Deserialize Response
506
+ if status_code == 200
507
+ begin
508
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
509
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
510
+ result.body = @client.deserialize(result_mapper, parsed_response)
511
+ rescue Exception => e
512
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
513
+ end
514
+ end
515
+
516
+ result
517
+ end
518
+
519
+ promise.execute
520
+ end
521
+
522
+ #
523
+ # Deletes a workflow.
524
+ #
525
+ # @param resource_group_name [String] The resource group name.
526
+ # @param workflow_name [String] The workflow name.
527
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
528
+ # will be added to the HTTP request.
529
+ #
530
+ #
531
+ def delete(resource_group_name, workflow_name, custom_headers:nil)
532
+ response = delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
533
+ nil
534
+ end
535
+
536
+ #
537
+ # Deletes a workflow.
538
+ #
539
+ # @param resource_group_name [String] The resource group name.
540
+ # @param workflow_name [String] The workflow name.
541
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
542
+ # will be added to the HTTP request.
543
+ #
544
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
545
+ #
546
+ def delete_with_http_info(resource_group_name, workflow_name, custom_headers:nil)
547
+ delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
548
+ end
549
+
550
+ #
551
+ # Deletes a workflow.
552
+ #
553
+ # @param resource_group_name [String] The resource group name.
554
+ # @param workflow_name [String] The workflow name.
555
+ # @param [Hash{String => String}] A hash of custom headers that will be added
556
+ # to the HTTP request.
557
+ #
558
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
559
+ #
560
+ def delete_async(resource_group_name, workflow_name, custom_headers:nil)
561
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
562
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
563
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
564
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
565
+
566
+
567
+ request_headers = {}
568
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
569
+
570
+ # Set Headers
571
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
572
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
573
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
574
+
575
+ request_url = @base_url || @client.base_url
576
+
577
+ options = {
578
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
579
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
580
+ query_params: {'api-version' => @client.api_version},
581
+ headers: request_headers.merge(custom_headers || {}),
582
+ base_url: request_url
583
+ }
584
+ promise = @client.make_request_async(:delete, path_template, options)
585
+
586
+ promise = promise.then do |result|
587
+ http_response = result.response
588
+ status_code = http_response.status
589
+ response_content = http_response.body
590
+ unless status_code == 200 || status_code == 204
591
+ error_model = JSON.load(response_content)
592
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
593
+ end
594
+
595
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
596
+
597
+ result
598
+ end
599
+
600
+ promise.execute
601
+ end
602
+
603
+ #
604
+ # Disables a workflow.
605
+ #
606
+ # @param resource_group_name [String] The resource group name.
607
+ # @param workflow_name [String] The workflow name.
608
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
609
+ # will be added to the HTTP request.
610
+ #
611
+ #
612
+ def disable(resource_group_name, workflow_name, custom_headers:nil)
613
+ response = disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
614
+ nil
615
+ end
616
+
617
+ #
618
+ # Disables a workflow.
619
+ #
620
+ # @param resource_group_name [String] The resource group name.
621
+ # @param workflow_name [String] The workflow name.
622
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
623
+ # will be added to the HTTP request.
624
+ #
625
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
626
+ #
627
+ def disable_with_http_info(resource_group_name, workflow_name, custom_headers:nil)
628
+ disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
629
+ end
630
+
631
+ #
632
+ # Disables a workflow.
633
+ #
634
+ # @param resource_group_name [String] The resource group name.
635
+ # @param workflow_name [String] The workflow name.
636
+ # @param [Hash{String => String}] A hash of custom headers that will be added
637
+ # to the HTTP request.
638
+ #
639
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
640
+ #
641
+ def disable_async(resource_group_name, workflow_name, custom_headers:nil)
642
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
643
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
644
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
645
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
646
+
647
+
648
+ request_headers = {}
649
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
650
+
651
+ # Set Headers
652
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
653
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
654
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/disable'
655
+
656
+ request_url = @base_url || @client.base_url
657
+
658
+ options = {
659
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
660
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
661
+ query_params: {'api-version' => @client.api_version},
662
+ headers: request_headers.merge(custom_headers || {}),
663
+ base_url: request_url
664
+ }
665
+ promise = @client.make_request_async(:post, path_template, options)
666
+
667
+ promise = promise.then do |result|
668
+ http_response = result.response
669
+ status_code = http_response.status
670
+ response_content = http_response.body
671
+ unless status_code == 200
672
+ error_model = JSON.load(response_content)
673
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
674
+ end
675
+
676
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
677
+
678
+ result
679
+ end
680
+
681
+ promise.execute
682
+ end
683
+
684
+ #
685
+ # Enables a workflow.
686
+ #
687
+ # @param resource_group_name [String] The resource group name.
688
+ # @param workflow_name [String] The workflow name.
689
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
690
+ # will be added to the HTTP request.
691
+ #
692
+ #
693
+ def enable(resource_group_name, workflow_name, custom_headers:nil)
694
+ response = enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
695
+ nil
696
+ end
697
+
698
+ #
699
+ # Enables a workflow.
700
+ #
701
+ # @param resource_group_name [String] The resource group name.
702
+ # @param workflow_name [String] The workflow name.
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 enable_with_http_info(resource_group_name, workflow_name, custom_headers:nil)
709
+ enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
710
+ end
711
+
712
+ #
713
+ # Enables a workflow.
714
+ #
715
+ # @param resource_group_name [String] The resource group name.
716
+ # @param workflow_name [String] The workflow name.
717
+ # @param [Hash{String => String}] A hash of custom headers that will be added
718
+ # to the HTTP request.
719
+ #
720
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
721
+ #
722
+ def enable_async(resource_group_name, workflow_name, custom_headers:nil)
723
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
724
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
725
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
726
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
727
+
728
+
729
+ request_headers = {}
730
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
731
+
732
+ # Set Headers
733
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
734
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
735
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/enable'
736
+
737
+ request_url = @base_url || @client.base_url
738
+
739
+ options = {
740
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
741
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
742
+ query_params: {'api-version' => @client.api_version},
743
+ headers: request_headers.merge(custom_headers || {}),
744
+ base_url: request_url
745
+ }
746
+ promise = @client.make_request_async(:post, path_template, options)
747
+
748
+ promise = promise.then do |result|
749
+ http_response = result.response
750
+ status_code = http_response.status
751
+ response_content = http_response.body
752
+ unless status_code == 200
753
+ error_model = JSON.load(response_content)
754
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
755
+ end
756
+
757
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
758
+
759
+ result
760
+ end
761
+
762
+ promise.execute
763
+ end
764
+
765
+ #
766
+ # Generates the upgraded definition for a workflow.
767
+ #
768
+ # @param resource_group_name [String] The resource group name.
769
+ # @param workflow_name [String] The workflow name.
770
+ # @param parameters [GenerateUpgradedDefinitionParameters] Parameters for
771
+ # generating an upgraded definition.
772
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
773
+ # will be added to the HTTP request.
774
+ #
775
+ # @return [Object] operation results.
776
+ #
777
+ def generate_upgraded_definition(resource_group_name, workflow_name, parameters, custom_headers:nil)
778
+ response = generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value!
779
+ response.body unless response.nil?
780
+ end
781
+
782
+ #
783
+ # Generates the upgraded definition for a workflow.
784
+ #
785
+ # @param resource_group_name [String] The resource group name.
786
+ # @param workflow_name [String] The workflow name.
787
+ # @param parameters [GenerateUpgradedDefinitionParameters] Parameters for
788
+ # generating an upgraded definition.
789
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
790
+ # will be added to the HTTP request.
791
+ #
792
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
793
+ #
794
+ def generate_upgraded_definition_with_http_info(resource_group_name, workflow_name, parameters, custom_headers:nil)
795
+ generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value!
796
+ end
797
+
798
+ #
799
+ # Generates the upgraded definition for a workflow.
800
+ #
801
+ # @param resource_group_name [String] The resource group name.
802
+ # @param workflow_name [String] The workflow name.
803
+ # @param parameters [GenerateUpgradedDefinitionParameters] Parameters for
804
+ # generating an upgraded definition.
805
+ # @param [Hash{String => String}] A hash of custom headers that will be added
806
+ # to the HTTP request.
807
+ #
808
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
809
+ #
810
+ def generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers:nil)
811
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
812
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
813
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
814
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
815
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
816
+
817
+
818
+ request_headers = {}
819
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
820
+
821
+ # Set Headers
822
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
823
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
824
+
825
+ # Serialize Request
826
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::GenerateUpgradedDefinitionParameters.mapper()
827
+ request_content = @client.serialize(request_mapper, parameters)
828
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
829
+
830
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/generateUpgradedDefinition'
831
+
832
+ request_url = @base_url || @client.base_url
833
+
834
+ options = {
835
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
836
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
837
+ query_params: {'api-version' => @client.api_version},
838
+ body: request_content,
839
+ headers: request_headers.merge(custom_headers || {}),
840
+ base_url: request_url
841
+ }
842
+ promise = @client.make_request_async(:post, path_template, options)
843
+
844
+ promise = promise.then do |result|
845
+ http_response = result.response
846
+ status_code = http_response.status
847
+ response_content = http_response.body
848
+ unless status_code == 200
849
+ error_model = JSON.load(response_content)
850
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
851
+ end
852
+
853
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
854
+
855
+ result
856
+ end
857
+
858
+ promise.execute
859
+ end
860
+
861
+ #
862
+ # Get the workflow callback Url.
863
+ #
864
+ # @param resource_group_name [String] The resource group name.
865
+ # @param workflow_name [String] The workflow name.
866
+ # @param list_callback_url [GetCallbackUrlParameters] Which callback url to
867
+ # list.
868
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
869
+ # will be added to the HTTP request.
870
+ #
871
+ # @return [WorkflowTriggerCallbackUrl] operation results.
872
+ #
873
+ def list_callback_url(resource_group_name, workflow_name, list_callback_url, custom_headers:nil)
874
+ response = list_callback_url_async(resource_group_name, workflow_name, list_callback_url, custom_headers:custom_headers).value!
875
+ response.body unless response.nil?
876
+ end
877
+
878
+ #
879
+ # Get the workflow callback Url.
880
+ #
881
+ # @param resource_group_name [String] The resource group name.
882
+ # @param workflow_name [String] The workflow name.
883
+ # @param list_callback_url [GetCallbackUrlParameters] Which callback url to
884
+ # list.
885
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
886
+ # will be added to the HTTP request.
887
+ #
888
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
889
+ #
890
+ def list_callback_url_with_http_info(resource_group_name, workflow_name, list_callback_url, custom_headers:nil)
891
+ list_callback_url_async(resource_group_name, workflow_name, list_callback_url, custom_headers:custom_headers).value!
892
+ end
893
+
894
+ #
895
+ # Get the workflow callback Url.
896
+ #
897
+ # @param resource_group_name [String] The resource group name.
898
+ # @param workflow_name [String] The workflow name.
899
+ # @param list_callback_url [GetCallbackUrlParameters] Which callback url to
900
+ # list.
901
+ # @param [Hash{String => String}] A hash of custom headers that will be added
902
+ # to the HTTP request.
903
+ #
904
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
905
+ #
906
+ def list_callback_url_async(resource_group_name, workflow_name, list_callback_url, custom_headers:nil)
907
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
908
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
909
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
910
+ fail ArgumentError, 'list_callback_url is nil' if list_callback_url.nil?
911
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
912
+
913
+
914
+ request_headers = {}
915
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
916
+
917
+ # Set Headers
918
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
919
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
920
+
921
+ # Serialize Request
922
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::GetCallbackUrlParameters.mapper()
923
+ request_content = @client.serialize(request_mapper, list_callback_url)
924
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
925
+
926
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listCallbackUrl'
927
+
928
+ request_url = @base_url || @client.base_url
929
+
930
+ options = {
931
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
932
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
933
+ query_params: {'api-version' => @client.api_version},
934
+ body: request_content,
935
+ headers: request_headers.merge(custom_headers || {}),
936
+ base_url: request_url
937
+ }
938
+ promise = @client.make_request_async(:post, path_template, options)
939
+
940
+ promise = promise.then do |result|
941
+ http_response = result.response
942
+ status_code = http_response.status
943
+ response_content = http_response.body
944
+ unless status_code == 200
945
+ error_model = JSON.load(response_content)
946
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
947
+ end
948
+
949
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
950
+ # Deserialize Response
951
+ if status_code == 200
952
+ begin
953
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
954
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerCallbackUrl.mapper()
955
+ result.body = @client.deserialize(result_mapper, parsed_response)
956
+ rescue Exception => e
957
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
958
+ end
959
+ end
960
+
961
+ result
962
+ end
963
+
964
+ promise.execute
965
+ end
966
+
967
+ #
968
+ # Gets an OpenAPI definition for the workflow.
969
+ #
970
+ # @param resource_group_name [String] The resource group name.
971
+ # @param workflow_name [String] The workflow name.
972
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
973
+ # will be added to the HTTP request.
974
+ #
975
+ # @return [Object] operation results.
976
+ #
977
+ def list_swagger(resource_group_name, workflow_name, custom_headers:nil)
978
+ response = list_swagger_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
979
+ response.body unless response.nil?
980
+ end
981
+
982
+ #
983
+ # Gets an OpenAPI definition for the workflow.
984
+ #
985
+ # @param resource_group_name [String] The resource group name.
986
+ # @param workflow_name [String] The workflow name.
987
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
988
+ # will be added to the HTTP request.
989
+ #
990
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
991
+ #
992
+ def list_swagger_with_http_info(resource_group_name, workflow_name, custom_headers:nil)
993
+ list_swagger_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
994
+ end
995
+
996
+ #
997
+ # Gets an OpenAPI definition for the workflow.
998
+ #
999
+ # @param resource_group_name [String] The resource group name.
1000
+ # @param workflow_name [String] The workflow name.
1001
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1002
+ # to the HTTP request.
1003
+ #
1004
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1005
+ #
1006
+ def list_swagger_async(resource_group_name, workflow_name, custom_headers:nil)
1007
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1008
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1009
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
1010
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1011
+
1012
+
1013
+ request_headers = {}
1014
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1015
+
1016
+ # Set Headers
1017
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1018
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1019
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listSwagger'
1020
+
1021
+ request_url = @base_url || @client.base_url
1022
+
1023
+ options = {
1024
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1025
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
1026
+ query_params: {'api-version' => @client.api_version},
1027
+ headers: request_headers.merge(custom_headers || {}),
1028
+ base_url: request_url
1029
+ }
1030
+ promise = @client.make_request_async(:post, path_template, options)
1031
+
1032
+ promise = promise.then do |result|
1033
+ http_response = result.response
1034
+ status_code = http_response.status
1035
+ response_content = http_response.body
1036
+ unless status_code == 200
1037
+ error_model = JSON.load(response_content)
1038
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1039
+ end
1040
+
1041
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1042
+
1043
+ result
1044
+ end
1045
+
1046
+ promise.execute
1047
+ end
1048
+
1049
+ #
1050
+ # Moves an existing workflow.
1051
+ #
1052
+ # @param resource_group_name [String] The resource group name.
1053
+ # @param workflow_name [String] The workflow name.
1054
+ # @param move [Workflow] The workflow to move.
1055
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1056
+ # will be added to the HTTP request.
1057
+ #
1058
+ #
1059
+ def move(resource_group_name, workflow_name, move, custom_headers:nil)
1060
+ response = move_async(resource_group_name, workflow_name, move, custom_headers:custom_headers).value!
1061
+ nil
1062
+ end
1063
+
1064
+ #
1065
+ # Moves an existing workflow.
1066
+ #
1067
+ # @param resource_group_name [String] The resource group name.
1068
+ # @param workflow_name [String] The workflow name.
1069
+ # @param move [Workflow] The workflow to move.
1070
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1071
+ # will be added to the HTTP request.
1072
+ #
1073
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1074
+ #
1075
+ def move_with_http_info(resource_group_name, workflow_name, move, custom_headers:nil)
1076
+ move_async(resource_group_name, workflow_name, move, custom_headers:custom_headers).value!
1077
+ end
1078
+
1079
+ #
1080
+ # Moves an existing workflow.
1081
+ #
1082
+ # @param resource_group_name [String] The resource group name.
1083
+ # @param workflow_name [String] The workflow name.
1084
+ # @param move [Workflow] The workflow to move.
1085
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1086
+ # to the HTTP request.
1087
+ #
1088
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1089
+ #
1090
+ def move_async(resource_group_name, workflow_name, move, custom_headers:nil)
1091
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1092
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1093
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
1094
+ fail ArgumentError, 'move is nil' if move.nil?
1095
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1096
+
1097
+
1098
+ request_headers = {}
1099
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1100
+
1101
+ # Set Headers
1102
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1103
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1104
+
1105
+ # Serialize Request
1106
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
1107
+ request_content = @client.serialize(request_mapper, move)
1108
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1109
+
1110
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move'
1111
+
1112
+ request_url = @base_url || @client.base_url
1113
+
1114
+ options = {
1115
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1116
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
1117
+ query_params: {'api-version' => @client.api_version},
1118
+ body: request_content,
1119
+ headers: request_headers.merge(custom_headers || {}),
1120
+ base_url: request_url
1121
+ }
1122
+ promise = @client.make_request_async(:post, path_template, options)
1123
+
1124
+ promise = promise.then do |result|
1125
+ http_response = result.response
1126
+ status_code = http_response.status
1127
+ response_content = http_response.body
1128
+ unless status_code == 200 || status_code == 202
1129
+ error_model = JSON.load(response_content)
1130
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1131
+ end
1132
+
1133
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1134
+
1135
+ result
1136
+ end
1137
+
1138
+ promise.execute
1139
+ end
1140
+
1141
+ #
1142
+ # Regenerates the callback URL access key for request triggers.
1143
+ #
1144
+ # @param resource_group_name [String] The resource group name.
1145
+ # @param workflow_name [String] The workflow name.
1146
+ # @param key_type [RegenerateActionParameter] The access key type.
1147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1148
+ # will be added to the HTTP request.
1149
+ #
1150
+ #
1151
+ def regenerate_access_key(resource_group_name, workflow_name, key_type, custom_headers:nil)
1152
+ response = regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers:custom_headers).value!
1153
+ nil
1154
+ end
1155
+
1156
+ #
1157
+ # Regenerates the callback URL access key for request triggers.
1158
+ #
1159
+ # @param resource_group_name [String] The resource group name.
1160
+ # @param workflow_name [String] The workflow name.
1161
+ # @param key_type [RegenerateActionParameter] The access key type.
1162
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1163
+ # will be added to the HTTP request.
1164
+ #
1165
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1166
+ #
1167
+ def regenerate_access_key_with_http_info(resource_group_name, workflow_name, key_type, custom_headers:nil)
1168
+ regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers:custom_headers).value!
1169
+ end
1170
+
1171
+ #
1172
+ # Regenerates the callback URL access key for request triggers.
1173
+ #
1174
+ # @param resource_group_name [String] The resource group name.
1175
+ # @param workflow_name [String] The workflow name.
1176
+ # @param key_type [RegenerateActionParameter] The access key type.
1177
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1178
+ # to the HTTP request.
1179
+ #
1180
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1181
+ #
1182
+ def regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers:nil)
1183
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1184
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1185
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
1186
+ fail ArgumentError, 'key_type is nil' if key_type.nil?
1187
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1188
+
1189
+
1190
+ request_headers = {}
1191
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1192
+
1193
+ # Set Headers
1194
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1195
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1196
+
1197
+ # Serialize Request
1198
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RegenerateActionParameter.mapper()
1199
+ request_content = @client.serialize(request_mapper, key_type)
1200
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1201
+
1202
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/regenerateAccessKey'
1203
+
1204
+ request_url = @base_url || @client.base_url
1205
+
1206
+ options = {
1207
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1208
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
1209
+ query_params: {'api-version' => @client.api_version},
1210
+ body: request_content,
1211
+ headers: request_headers.merge(custom_headers || {}),
1212
+ base_url: request_url
1213
+ }
1214
+ promise = @client.make_request_async(:post, path_template, options)
1215
+
1216
+ promise = promise.then do |result|
1217
+ http_response = result.response
1218
+ status_code = http_response.status
1219
+ response_content = http_response.body
1220
+ unless status_code == 200
1221
+ error_model = JSON.load(response_content)
1222
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1223
+ end
1224
+
1225
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1226
+
1227
+ result
1228
+ end
1229
+
1230
+ promise.execute
1231
+ end
1232
+
1233
+ #
1234
+ # Validates the workflow.
1235
+ #
1236
+ # @param resource_group_name [String] The resource group name.
1237
+ # @param workflow_name [String] The workflow name.
1238
+ # @param validate [Workflow] The workflow.
1239
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1240
+ # will be added to the HTTP request.
1241
+ #
1242
+ #
1243
+ def validate_by_resource_group(resource_group_name, workflow_name, validate, custom_headers:nil)
1244
+ response = validate_by_resource_group_async(resource_group_name, workflow_name, validate, custom_headers:custom_headers).value!
1245
+ nil
1246
+ end
1247
+
1248
+ #
1249
+ # Validates the workflow.
1250
+ #
1251
+ # @param resource_group_name [String] The resource group name.
1252
+ # @param workflow_name [String] The workflow name.
1253
+ # @param validate [Workflow] The workflow.
1254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1255
+ # will be added to the HTTP request.
1256
+ #
1257
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1258
+ #
1259
+ def validate_by_resource_group_with_http_info(resource_group_name, workflow_name, validate, custom_headers:nil)
1260
+ validate_by_resource_group_async(resource_group_name, workflow_name, validate, custom_headers:custom_headers).value!
1261
+ end
1262
+
1263
+ #
1264
+ # Validates the workflow.
1265
+ #
1266
+ # @param resource_group_name [String] The resource group name.
1267
+ # @param workflow_name [String] The workflow name.
1268
+ # @param validate [Workflow] The workflow.
1269
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1270
+ # to the HTTP request.
1271
+ #
1272
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1273
+ #
1274
+ def validate_by_resource_group_async(resource_group_name, workflow_name, validate, custom_headers:nil)
1275
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1276
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1277
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
1278
+ fail ArgumentError, 'validate is nil' if validate.nil?
1279
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1280
+
1281
+
1282
+ request_headers = {}
1283
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1284
+
1285
+ # Set Headers
1286
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1287
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1288
+
1289
+ # Serialize Request
1290
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
1291
+ request_content = @client.serialize(request_mapper, validate)
1292
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1293
+
1294
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate'
1295
+
1296
+ request_url = @base_url || @client.base_url
1297
+
1298
+ options = {
1299
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1300
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
1301
+ query_params: {'api-version' => @client.api_version},
1302
+ body: request_content,
1303
+ headers: request_headers.merge(custom_headers || {}),
1304
+ base_url: request_url
1305
+ }
1306
+ promise = @client.make_request_async(:post, path_template, options)
1307
+
1308
+ promise = promise.then do |result|
1309
+ http_response = result.response
1310
+ status_code = http_response.status
1311
+ response_content = http_response.body
1312
+ unless status_code == 200
1313
+ error_model = JSON.load(response_content)
1314
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1315
+ end
1316
+
1317
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1318
+
1319
+ result
1320
+ end
1321
+
1322
+ promise.execute
1323
+ end
1324
+
1325
+ #
1326
+ # Validates the workflow definition.
1327
+ #
1328
+ # @param resource_group_name [String] The resource group name.
1329
+ # @param location [String] The workflow location.
1330
+ # @param workflow_name [String] The workflow name.
1331
+ # @param workflow [Workflow] The workflow definition.
1332
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1333
+ # will be added to the HTTP request.
1334
+ #
1335
+ #
1336
+ def validate_by_location(resource_group_name, location, workflow_name, workflow, custom_headers:nil)
1337
+ response = validate_by_location_async(resource_group_name, location, workflow_name, workflow, custom_headers:custom_headers).value!
1338
+ nil
1339
+ end
1340
+
1341
+ #
1342
+ # Validates the workflow definition.
1343
+ #
1344
+ # @param resource_group_name [String] The resource group name.
1345
+ # @param location [String] The workflow location.
1346
+ # @param workflow_name [String] The workflow name.
1347
+ # @param workflow [Workflow] The workflow definition.
1348
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1349
+ # will be added to the HTTP request.
1350
+ #
1351
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1352
+ #
1353
+ def validate_by_location_with_http_info(resource_group_name, location, workflow_name, workflow, custom_headers:nil)
1354
+ validate_by_location_async(resource_group_name, location, workflow_name, workflow, custom_headers:custom_headers).value!
1355
+ end
1356
+
1357
+ #
1358
+ # Validates the workflow definition.
1359
+ #
1360
+ # @param resource_group_name [String] The resource group name.
1361
+ # @param location [String] The workflow location.
1362
+ # @param workflow_name [String] The workflow name.
1363
+ # @param workflow [Workflow] The workflow definition.
1364
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1365
+ # to the HTTP request.
1366
+ #
1367
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1368
+ #
1369
+ def validate_by_location_async(resource_group_name, location, workflow_name, workflow, custom_headers:nil)
1370
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1371
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1372
+ fail ArgumentError, 'location is nil' if location.nil?
1373
+ fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
1374
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1375
+ fail ArgumentError, 'workflow is nil' if workflow.nil?
1376
+
1377
+
1378
+ request_headers = {}
1379
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1380
+
1381
+ # Set Headers
1382
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1383
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1384
+
1385
+ # Serialize Request
1386
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow.mapper()
1387
+ request_content = @client.serialize(request_mapper, workflow)
1388
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1389
+
1390
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate'
1391
+
1392
+ request_url = @base_url || @client.base_url
1393
+
1394
+ options = {
1395
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1396
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'location' => location,'workflowName' => workflow_name},
1397
+ query_params: {'api-version' => @client.api_version},
1398
+ body: request_content,
1399
+ headers: request_headers.merge(custom_headers || {}),
1400
+ base_url: request_url
1401
+ }
1402
+ promise = @client.make_request_async(:post, path_template, options)
1403
+
1404
+ promise = promise.then do |result|
1405
+ http_response = result.response
1406
+ status_code = http_response.status
1407
+ response_content = http_response.body
1408
+ unless status_code == 200
1409
+ error_model = JSON.load(response_content)
1410
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1411
+ end
1412
+
1413
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1414
+
1415
+ result
1416
+ end
1417
+
1418
+ promise.execute
1419
+ end
1420
+
1421
+ #
1422
+ # Gets a list of workflows by subscription.
1423
+ #
1424
+ # @param next_page_link [String] The NextLink from the previous successful call
1425
+ # to List operation.
1426
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1427
+ # will be added to the HTTP request.
1428
+ #
1429
+ # @return [WorkflowListResult] operation results.
1430
+ #
1431
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
1432
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1433
+ response.body unless response.nil?
1434
+ end
1435
+
1436
+ #
1437
+ # Gets a list of workflows by subscription.
1438
+ #
1439
+ # @param next_page_link [String] The NextLink from the previous successful call
1440
+ # to List operation.
1441
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1442
+ # will be added to the HTTP request.
1443
+ #
1444
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1445
+ #
1446
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1447
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1448
+ end
1449
+
1450
+ #
1451
+ # Gets a list of workflows by subscription.
1452
+ #
1453
+ # @param next_page_link [String] The NextLink from the previous successful call
1454
+ # to List operation.
1455
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1456
+ # to the HTTP request.
1457
+ #
1458
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1459
+ #
1460
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1461
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1462
+
1463
+
1464
+ request_headers = {}
1465
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1466
+
1467
+ # Set Headers
1468
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1469
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1470
+ path_template = '{nextLink}'
1471
+
1472
+ request_url = @base_url || @client.base_url
1473
+
1474
+ options = {
1475
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1476
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1477
+ headers: request_headers.merge(custom_headers || {}),
1478
+ base_url: request_url
1479
+ }
1480
+ promise = @client.make_request_async(:get, path_template, options)
1481
+
1482
+ promise = promise.then do |result|
1483
+ http_response = result.response
1484
+ status_code = http_response.status
1485
+ response_content = http_response.body
1486
+ unless status_code == 200
1487
+ error_model = JSON.load(response_content)
1488
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1489
+ end
1490
+
1491
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1492
+ # Deserialize Response
1493
+ if status_code == 200
1494
+ begin
1495
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1496
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowListResult.mapper()
1497
+ result.body = @client.deserialize(result_mapper, parsed_response)
1498
+ rescue Exception => e
1499
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1500
+ end
1501
+ end
1502
+
1503
+ result
1504
+ end
1505
+
1506
+ promise.execute
1507
+ end
1508
+
1509
+ #
1510
+ # Gets a list of workflows by resource group.
1511
+ #
1512
+ # @param next_page_link [String] The NextLink from the previous successful call
1513
+ # to List operation.
1514
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1515
+ # will be added to the HTTP request.
1516
+ #
1517
+ # @return [WorkflowListResult] operation results.
1518
+ #
1519
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1520
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1521
+ response.body unless response.nil?
1522
+ end
1523
+
1524
+ #
1525
+ # Gets a list of workflows by resource group.
1526
+ #
1527
+ # @param next_page_link [String] The NextLink from the previous successful call
1528
+ # to List operation.
1529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1530
+ # will be added to the HTTP request.
1531
+ #
1532
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1533
+ #
1534
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1535
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1536
+ end
1537
+
1538
+ #
1539
+ # Gets a list of workflows by resource group.
1540
+ #
1541
+ # @param next_page_link [String] The NextLink from the previous successful call
1542
+ # to List operation.
1543
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1544
+ # to the HTTP request.
1545
+ #
1546
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1547
+ #
1548
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1549
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1550
+
1551
+
1552
+ request_headers = {}
1553
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1554
+
1555
+ # Set Headers
1556
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1557
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1558
+ path_template = '{nextLink}'
1559
+
1560
+ request_url = @base_url || @client.base_url
1561
+
1562
+ options = {
1563
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1564
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1565
+ headers: request_headers.merge(custom_headers || {}),
1566
+ base_url: request_url
1567
+ }
1568
+ promise = @client.make_request_async(:get, path_template, options)
1569
+
1570
+ promise = promise.then do |result|
1571
+ http_response = result.response
1572
+ status_code = http_response.status
1573
+ response_content = http_response.body
1574
+ unless status_code == 200
1575
+ error_model = JSON.load(response_content)
1576
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1577
+ end
1578
+
1579
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1580
+ # Deserialize Response
1581
+ if status_code == 200
1582
+ begin
1583
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1584
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowListResult.mapper()
1585
+ result.body = @client.deserialize(result_mapper, parsed_response)
1586
+ rescue Exception => e
1587
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1588
+ end
1589
+ end
1590
+
1591
+ result
1592
+ end
1593
+
1594
+ promise.execute
1595
+ end
1596
+
1597
+ #
1598
+ # Gets a list of workflows by subscription.
1599
+ #
1600
+ # @param top [Integer] The number of items to be included in the result.
1601
+ # @param filter [String] The filter to apply on the operation. Options for
1602
+ # filters include: State, Trigger, and ReferencedResourceId.
1603
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1604
+ # will be added to the HTTP request.
1605
+ #
1606
+ # @return [WorkflowListResult] which provide lazy access to pages of the
1607
+ # response.
1608
+ #
1609
+ def list_by_subscription_as_lazy(top:nil, filter:nil, custom_headers:nil)
1610
+ response = list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value!
1611
+ unless response.nil?
1612
+ page = response.body
1613
+ page.next_method = Proc.new do |next_page_link|
1614
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1615
+ end
1616
+ page
1617
+ end
1618
+ end
1619
+
1620
+ #
1621
+ # Gets a list of workflows by resource group.
1622
+ #
1623
+ # @param resource_group_name [String] The resource group name.
1624
+ # @param top [Integer] The number of items to be included in the result.
1625
+ # @param filter [String] The filter to apply on the operation. Options for
1626
+ # filters include: State, Trigger, and ReferencedResourceId.
1627
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1628
+ # will be added to the HTTP request.
1629
+ #
1630
+ # @return [WorkflowListResult] which provide lazy access to pages of the
1631
+ # response.
1632
+ #
1633
+ def list_by_resource_group_as_lazy(resource_group_name, top:nil, filter:nil, custom_headers:nil)
1634
+ response = list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value!
1635
+ unless response.nil?
1636
+ page = response.body
1637
+ page.next_method = Proc.new do |next_page_link|
1638
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1639
+ end
1640
+ page
1641
+ end
1642
+ end
1643
+
1644
+ end
1645
+ end