azure_mgmt_logic 0.17.1 → 0.18.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/logic_management_client.rb +1 -1
  3. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/models/workflow_access_key_list_result.rb +1 -1
  4. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/models/workflow_list_result.rb +1 -1
  5. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb +1 -1
  6. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/models/workflow_run_list_result.rb +1 -1
  7. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb +1 -1
  8. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +1 -1
  9. data/lib/2016-06-01/generated/azure_mgmt_logic.rb +71 -64
  10. data/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb +12 -2
  11. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +1 -1
  12. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +1 -1
  13. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_list_result.rb +1 -1
  14. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb +1 -1
  15. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb +1 -1
  16. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb +1 -1
  17. data/lib/2016-06-01/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb +1 -1
  18. data/lib/2016-06-01/generated/azure_mgmt_logic/models/operation_list_result.rb +1 -1
  19. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request.rb +68 -0
  20. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request_history.rb +98 -0
  21. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request_history_list_result.rb +98 -0
  22. data/lib/2016-06-01/generated/azure_mgmt_logic/models/request_history_properties.rb +81 -0
  23. data/lib/2016-06-01/generated/azure_mgmt_logic/models/response.rb +69 -0
  24. data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_list_result.rb +1 -1
  25. data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb +1 -1
  26. data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_run_list_result.rb +1 -1
  27. data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb +1 -1
  28. data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +1 -1
  29. data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +1 -1
  30. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_action_repetitions_request_histories.rb +350 -0
  31. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_action_request_histories.rb +341 -0
  32. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb +1 -1
  33. data/lib/2018-07-01-preview/generated/azure_mgmt_logic.rb +223 -0
  34. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_agreements.rb +647 -0
  35. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_assemblies.rb +511 -0
  36. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_batch_configurations.rb +415 -0
  37. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_certificates.rb +532 -0
  38. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_maps.rb +644 -0
  39. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_partners.rb +644 -0
  40. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_schemas.rb +644 -0
  41. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_account_sessions.rb +537 -0
  42. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/integration_accounts.rb +1218 -0
  43. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/logic_management_client.rb +219 -0
  44. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/agreement_content.rb +71 -0
  45. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/agreement_type.rb +18 -0
  46. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/artifact_content_properties_definition.rb +93 -0
  47. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/artifact_properties.rb +68 -0
  48. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +83 -0
  49. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2agreement_content.rb +59 -0
  50. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2envelope_settings.rb +93 -0
  51. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2error_settings.rb +59 -0
  52. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2mdn_settings.rb +141 -0
  53. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +83 -0
  54. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +71 -0
  55. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2protocol_settings.rb +120 -0
  56. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2security_settings.rb +153 -0
  57. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/as2validation_settings.rb +157 -0
  58. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/assembly_collection.rb +55 -0
  59. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/assembly_definition.rb +98 -0
  60. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/assembly_properties.rb +128 -0
  61. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/azure_resource_error_info.rb +74 -0
  62. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/b2bpartner_content.rb +56 -0
  63. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_configuration.rb +99 -0
  64. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_configuration_collection.rb +55 -0
  65. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_configuration_properties.rb +82 -0
  66. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/batch_release_criteria.rb +69 -0
  67. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/business_identity.rb +58 -0
  68. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/callback_url.rb +46 -0
  69. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/content_hash.rb +57 -0
  70. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/content_link.rb +91 -0
  71. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/correlation.rb +46 -0
  72. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/day_of_week.rb +21 -0
  73. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/days_of_week.rb +21 -0
  74. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +163 -0
  75. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +59 -0
  76. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_character_set.rb +29 -0
  77. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb +17 -0
  78. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +172 -0
  79. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +204 -0
  80. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +494 -0
  81. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +164 -0
  82. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_message_filter.rb +47 -0
  83. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_message_identifier.rb +47 -0
  84. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +71 -0
  85. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +94 -0
  86. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +212 -0
  87. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +112 -0
  88. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_validation_override.rb +118 -0
  89. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +155 -0
  90. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/encryption_algorithm.rb +21 -0
  91. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/error_info.rb +46 -0
  92. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/error_properties.rb +58 -0
  93. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/error_response.rb +48 -0
  94. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/event_level.rb +20 -0
  95. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/expression.rb +90 -0
  96. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/expression_root.rb +89 -0
  97. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/expression_traces.rb +56 -0
  98. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb +46 -0
  99. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/get_callback_url_parameters.rb +58 -0
  100. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/hashing_algorithm.rb +21 -0
  101. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account.rb +109 -0
  102. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_agreement.rb +194 -0
  103. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb +49 -0
  104. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +99 -0
  105. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_certificate.rb +144 -0
  106. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +100 -0
  107. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_list_result.rb +98 -0
  108. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map.rb +181 -0
  109. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map_filter.rb +47 -0
  110. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb +99 -0
  111. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_map_properties_parameters_schema.rb +47 -0
  112. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_partner.rb +145 -0
  113. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb +47 -0
  114. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb +99 -0
  115. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_schema.rb +201 -0
  116. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +47 -0
  117. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb +99 -0
  118. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_session.rb +121 -0
  119. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_session_filter.rb +46 -0
  120. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb +99 -0
  121. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_sku.rb +47 -0
  122. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/integration_account_sku_name.rb +18 -0
  123. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/json_schema.rb +57 -0
  124. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_type.rb +17 -0
  125. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key.rb +58 -0
  126. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_attributes.rb +68 -0
  127. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_collection.rb +66 -0
  128. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +69 -0
  129. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb +70 -0
  130. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/key_vault_reference.rb +61 -0
  131. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/list_key_vault_keys_definition.rb +58 -0
  132. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/map_type.rb +19 -0
  133. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/message_filter_type.rb +17 -0
  134. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation.rb +58 -0
  135. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_display.rb +69 -0
  136. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_list_result.rb +101 -0
  137. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_result.rb +189 -0
  138. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/operation_result_properties.rb +105 -0
  139. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/parameter_type.rb +23 -0
  140. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/partner_content.rb +47 -0
  141. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/partner_type.rb +16 -0
  142. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/recurrence_frequency.rb +22 -0
  143. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/recurrence_schedule.rb +132 -0
  144. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb +60 -0
  145. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/regenerate_action_parameter.rb +47 -0
  146. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/repetition_index.rb +57 -0
  147. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request.rb +68 -0
  148. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request_history.rb +98 -0
  149. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request_history_list_result.rb +98 -0
  150. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/request_history_properties.rb +81 -0
  151. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/resource.rb +110 -0
  152. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/resource_reference.rb +70 -0
  153. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/response.rb +69 -0
  154. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/retry_history.rb +102 -0
  155. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/run_action_correlation.rb +70 -0
  156. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/run_correlation.rb +65 -0
  157. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/schema_type.rb +16 -0
  158. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +19 -0
  159. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/set_trigger_state_action_definition.rb +48 -0
  160. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/signing_algorithm.rb +20 -0
  161. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/sku.rb +59 -0
  162. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/sku_name.rb +20 -0
  163. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/sub_resource.rb +47 -0
  164. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/track_events_operation_options.rb +16 -0
  165. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_event.rb +91 -0
  166. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_event_error_info.rb +58 -0
  167. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_events_definition.rb +79 -0
  168. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/tracking_record_type.rb +30 -0
  169. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +18 -0
  170. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/usage_indicator.rb +18 -0
  171. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow.rb +218 -0
  172. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_filter.rb +48 -0
  173. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_list_result.rb +98 -0
  174. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_output_parameter.rb +79 -0
  175. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_parameter.rb +81 -0
  176. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +32 -0
  177. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run.rb +227 -0
  178. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action.rb +213 -0
  179. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb +49 -0
  180. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb +98 -0
  181. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_repetition_definition.rb +281 -0
  182. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_action_repetition_definition_collection.rb +56 -0
  183. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_filter.rb +49 -0
  184. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_list_result.rb +98 -0
  185. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +208 -0
  186. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_state.rb +20 -0
  187. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_status.rb +27 -0
  188. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger.rb +188 -0
  189. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb +116 -0
  190. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb +48 -0
  191. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +206 -0
  192. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb +49 -0
  193. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb +99 -0
  194. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb +90 -0
  195. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +98 -0
  196. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +32 -0
  197. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +104 -0
  198. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_version.rb +202 -0
  199. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +98 -0
  200. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +209 -0
  201. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12agreement_content.rb +59 -0
  202. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12character_set.rb +18 -0
  203. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12date_format.rb +17 -0
  204. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +138 -0
  205. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12envelope_override.rb +150 -0
  206. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12envelope_settings.rb +308 -0
  207. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12framing_settings.rb +116 -0
  208. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12message_filter.rb +47 -0
  209. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12message_identifier.rb +46 -0
  210. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +71 -0
  211. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12processing_settings.rb +106 -0
  212. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12protocol_settings.rb +222 -0
  213. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12schema_reference.rb +79 -0
  214. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12security_settings.rb +79 -0
  215. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12time_format.rb +19 -0
  216. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12validation_override.rb +118 -0
  217. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/models/x12validation_settings.rb +155 -0
  218. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/module_definition.rb +9 -0
  219. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/operations.rb +215 -0
  220. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_repetitions.rb +333 -0
  221. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_repetitions_request_histories.rb +350 -0
  222. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_request_histories.rb +341 -0
  223. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_action_scope_repetitions.rb +229 -0
  224. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb +444 -0
  225. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_run_operations.rb +125 -0
  226. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_runs.rb +420 -0
  227. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb +439 -0
  228. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb +793 -0
  229. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_version_triggers.rb +135 -0
  230. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflow_versions.rb +327 -0
  231. data/lib/2018-07-01-preview/generated/azure_mgmt_logic/workflows.rb +1645 -0
  232. data/lib/azure_mgmt_logic.rb +1 -0
  233. data/lib/profiles/latest/modules/logic_profile_module.rb +465 -445
  234. data/lib/version.rb +1 -1
  235. metadata +211 -5
@@ -0,0 +1,1218 @@
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 IntegrationAccounts
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the IntegrationAccounts 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 integration accounts by subscription.
26
+ #
27
+ # @param top [Integer] The number of items to be included in the result.
28
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
+ # will be added to the HTTP request.
30
+ #
31
+ # @return [Array<IntegrationAccount>] operation results.
32
+ #
33
+ def list_by_subscription(top:nil, custom_headers:nil)
34
+ first_page = list_by_subscription_as_lazy(top:top, custom_headers:custom_headers)
35
+ first_page.get_all_items
36
+ end
37
+
38
+ #
39
+ # Gets a list of integration accounts by subscription.
40
+ #
41
+ # @param top [Integer] The number of items to be included in the result.
42
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
43
+ # will be added to the HTTP request.
44
+ #
45
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
+ #
47
+ def list_by_subscription_with_http_info(top:nil, custom_headers:nil)
48
+ list_by_subscription_async(top:top, custom_headers:custom_headers).value!
49
+ end
50
+
51
+ #
52
+ # Gets a list of integration accounts by subscription.
53
+ #
54
+ # @param top [Integer] The number of items to be included in the result.
55
+ # @param [Hash{String => String}] A hash of custom headers that will be added
56
+ # to the HTTP request.
57
+ #
58
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
+ #
60
+ def list_by_subscription_async(top:nil, custom_headers:nil)
61
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
62
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
63
+
64
+
65
+ request_headers = {}
66
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
67
+
68
+ # Set Headers
69
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
70
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
71
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Logic/integrationAccounts'
72
+
73
+ request_url = @base_url || @client.base_url
74
+
75
+ options = {
76
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
77
+ path_params: {'subscriptionId' => @client.subscription_id},
78
+ query_params: {'api-version' => @client.api_version,'$top' => top},
79
+ headers: request_headers.merge(custom_headers || {}),
80
+ base_url: request_url
81
+ }
82
+ promise = @client.make_request_async(:get, path_template, options)
83
+
84
+ promise = promise.then do |result|
85
+ http_response = result.response
86
+ status_code = http_response.status
87
+ response_content = http_response.body
88
+ unless status_code == 200
89
+ error_model = JSON.load(response_content)
90
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
91
+ end
92
+
93
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
94
+ # Deserialize Response
95
+ if status_code == 200
96
+ begin
97
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
98
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountListResult.mapper()
99
+ result.body = @client.deserialize(result_mapper, parsed_response)
100
+ rescue Exception => e
101
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
102
+ end
103
+ end
104
+
105
+ result
106
+ end
107
+
108
+ promise.execute
109
+ end
110
+
111
+ #
112
+ # Gets a list of integration accounts by resource group.
113
+ #
114
+ # @param resource_group_name [String] The resource group name.
115
+ # @param top [Integer] The number of items to be included in the result.
116
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
117
+ # will be added to the HTTP request.
118
+ #
119
+ # @return [Array<IntegrationAccount>] operation results.
120
+ #
121
+ def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil)
122
+ first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers)
123
+ first_page.get_all_items
124
+ end
125
+
126
+ #
127
+ # Gets a list of integration accounts by resource group.
128
+ #
129
+ # @param resource_group_name [String] The resource group name.
130
+ # @param top [Integer] The number of items to be included in the result.
131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
132
+ # will be added to the HTTP request.
133
+ #
134
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
135
+ #
136
+ def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil)
137
+ list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value!
138
+ end
139
+
140
+ #
141
+ # Gets a list of integration accounts by resource group.
142
+ #
143
+ # @param resource_group_name [String] The resource group name.
144
+ # @param top [Integer] The number of items to be included in the result.
145
+ # @param [Hash{String => String}] A hash of custom headers that will be added
146
+ # to the HTTP request.
147
+ #
148
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
149
+ #
150
+ def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil)
151
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
152
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
153
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
154
+
155
+
156
+ request_headers = {}
157
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
158
+
159
+ # Set Headers
160
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
161
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
162
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts'
163
+
164
+ request_url = @base_url || @client.base_url
165
+
166
+ options = {
167
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
168
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
169
+ query_params: {'api-version' => @client.api_version,'$top' => top},
170
+ headers: request_headers.merge(custom_headers || {}),
171
+ base_url: request_url
172
+ }
173
+ promise = @client.make_request_async(:get, path_template, options)
174
+
175
+ promise = promise.then do |result|
176
+ http_response = result.response
177
+ status_code = http_response.status
178
+ response_content = http_response.body
179
+ unless status_code == 200
180
+ error_model = JSON.load(response_content)
181
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
182
+ end
183
+
184
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
185
+ # Deserialize Response
186
+ if status_code == 200
187
+ begin
188
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
189
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountListResult.mapper()
190
+ result.body = @client.deserialize(result_mapper, parsed_response)
191
+ rescue Exception => e
192
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
193
+ end
194
+ end
195
+
196
+ result
197
+ end
198
+
199
+ promise.execute
200
+ end
201
+
202
+ #
203
+ # Gets an integration account.
204
+ #
205
+ # @param resource_group_name [String] The resource group name.
206
+ # @param integration_account_name [String] The integration account name.
207
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
208
+ # will be added to the HTTP request.
209
+ #
210
+ # @return [IntegrationAccount] operation results.
211
+ #
212
+ def get(resource_group_name, integration_account_name, custom_headers:nil)
213
+ response = get_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value!
214
+ response.body unless response.nil?
215
+ end
216
+
217
+ #
218
+ # Gets an integration account.
219
+ #
220
+ # @param resource_group_name [String] The resource group name.
221
+ # @param integration_account_name [String] The integration account name.
222
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
223
+ # will be added to the HTTP request.
224
+ #
225
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
226
+ #
227
+ def get_with_http_info(resource_group_name, integration_account_name, custom_headers:nil)
228
+ get_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value!
229
+ end
230
+
231
+ #
232
+ # Gets an integration account.
233
+ #
234
+ # @param resource_group_name [String] The resource group name.
235
+ # @param integration_account_name [String] The integration account name.
236
+ # @param [Hash{String => String}] A hash of custom headers that will be added
237
+ # to the HTTP request.
238
+ #
239
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
240
+ #
241
+ def get_async(resource_group_name, integration_account_name, custom_headers:nil)
242
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
243
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
244
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
245
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
246
+
247
+
248
+ request_headers = {}
249
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
250
+
251
+ # Set Headers
252
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
253
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
254
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'
255
+
256
+ request_url = @base_url || @client.base_url
257
+
258
+ options = {
259
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
260
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
261
+ query_params: {'api-version' => @client.api_version},
262
+ headers: request_headers.merge(custom_headers || {}),
263
+ base_url: request_url
264
+ }
265
+ promise = @client.make_request_async(:get, path_template, options)
266
+
267
+ promise = promise.then do |result|
268
+ http_response = result.response
269
+ status_code = http_response.status
270
+ response_content = http_response.body
271
+ unless status_code == 200
272
+ error_model = JSON.load(response_content)
273
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
274
+ end
275
+
276
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
277
+ # Deserialize Response
278
+ if status_code == 200
279
+ begin
280
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
281
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
282
+ result.body = @client.deserialize(result_mapper, parsed_response)
283
+ rescue Exception => e
284
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
285
+ end
286
+ end
287
+
288
+ result
289
+ end
290
+
291
+ promise.execute
292
+ end
293
+
294
+ #
295
+ # Creates or updates an integration account.
296
+ #
297
+ # @param resource_group_name [String] The resource group name.
298
+ # @param integration_account_name [String] The integration account name.
299
+ # @param integration_account [IntegrationAccount] The integration account.
300
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
301
+ # will be added to the HTTP request.
302
+ #
303
+ # @return [IntegrationAccount] operation results.
304
+ #
305
+ def create_or_update(resource_group_name, integration_account_name, integration_account, custom_headers:nil)
306
+ response = create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value!
307
+ response.body unless response.nil?
308
+ end
309
+
310
+ #
311
+ # Creates or updates an integration account.
312
+ #
313
+ # @param resource_group_name [String] The resource group name.
314
+ # @param integration_account_name [String] The integration account name.
315
+ # @param integration_account [IntegrationAccount] The integration account.
316
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
317
+ # will be added to the HTTP request.
318
+ #
319
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
320
+ #
321
+ def create_or_update_with_http_info(resource_group_name, integration_account_name, integration_account, custom_headers:nil)
322
+ create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value!
323
+ end
324
+
325
+ #
326
+ # Creates or updates an integration account.
327
+ #
328
+ # @param resource_group_name [String] The resource group name.
329
+ # @param integration_account_name [String] The integration account name.
330
+ # @param integration_account [IntegrationAccount] The integration account.
331
+ # @param [Hash{String => String}] A hash of custom headers that will be added
332
+ # to the HTTP request.
333
+ #
334
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
335
+ #
336
+ def create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers:nil)
337
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
338
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
339
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
340
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
341
+ fail ArgumentError, 'integration_account is nil' if integration_account.nil?
342
+
343
+
344
+ request_headers = {}
345
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
346
+
347
+ # Set Headers
348
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
349
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
350
+
351
+ # Serialize Request
352
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
353
+ request_content = @client.serialize(request_mapper, integration_account)
354
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
355
+
356
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'
357
+
358
+ request_url = @base_url || @client.base_url
359
+
360
+ options = {
361
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
362
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
363
+ query_params: {'api-version' => @client.api_version},
364
+ body: request_content,
365
+ headers: request_headers.merge(custom_headers || {}),
366
+ base_url: request_url
367
+ }
368
+ promise = @client.make_request_async(:put, path_template, options)
369
+
370
+ promise = promise.then do |result|
371
+ http_response = result.response
372
+ status_code = http_response.status
373
+ response_content = http_response.body
374
+ unless status_code == 200 || status_code == 201
375
+ error_model = JSON.load(response_content)
376
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
377
+ end
378
+
379
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
380
+ # Deserialize Response
381
+ if status_code == 200
382
+ begin
383
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
384
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
385
+ result.body = @client.deserialize(result_mapper, parsed_response)
386
+ rescue Exception => e
387
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
388
+ end
389
+ end
390
+ # Deserialize Response
391
+ if status_code == 201
392
+ begin
393
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
394
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
395
+ result.body = @client.deserialize(result_mapper, parsed_response)
396
+ rescue Exception => e
397
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
398
+ end
399
+ end
400
+
401
+ result
402
+ end
403
+
404
+ promise.execute
405
+ end
406
+
407
+ #
408
+ # Updates an integration account.
409
+ #
410
+ # @param resource_group_name [String] The resource group name.
411
+ # @param integration_account_name [String] The integration account name.
412
+ # @param integration_account [IntegrationAccount] The integration account.
413
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
414
+ # will be added to the HTTP request.
415
+ #
416
+ # @return [IntegrationAccount] operation results.
417
+ #
418
+ def update(resource_group_name, integration_account_name, integration_account, custom_headers:nil)
419
+ response = update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value!
420
+ response.body unless response.nil?
421
+ end
422
+
423
+ #
424
+ # Updates an integration account.
425
+ #
426
+ # @param resource_group_name [String] The resource group name.
427
+ # @param integration_account_name [String] The integration account name.
428
+ # @param integration_account [IntegrationAccount] The integration account.
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
433
+ #
434
+ def update_with_http_info(resource_group_name, integration_account_name, integration_account, custom_headers:nil)
435
+ update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value!
436
+ end
437
+
438
+ #
439
+ # Updates an integration account.
440
+ #
441
+ # @param resource_group_name [String] The resource group name.
442
+ # @param integration_account_name [String] The integration account name.
443
+ # @param integration_account [IntegrationAccount] The integration account.
444
+ # @param [Hash{String => String}] A hash of custom headers that will be added
445
+ # to the HTTP request.
446
+ #
447
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
448
+ #
449
+ def update_async(resource_group_name, integration_account_name, integration_account, custom_headers:nil)
450
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
451
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
452
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
453
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
454
+ fail ArgumentError, 'integration_account is nil' if integration_account.nil?
455
+
456
+
457
+ request_headers = {}
458
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
459
+
460
+ # Set Headers
461
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
462
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
463
+
464
+ # Serialize Request
465
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
466
+ request_content = @client.serialize(request_mapper, integration_account)
467
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
468
+
469
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'
470
+
471
+ request_url = @base_url || @client.base_url
472
+
473
+ options = {
474
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
475
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
476
+ query_params: {'api-version' => @client.api_version},
477
+ body: request_content,
478
+ headers: request_headers.merge(custom_headers || {}),
479
+ base_url: request_url
480
+ }
481
+ promise = @client.make_request_async(:patch, path_template, options)
482
+
483
+ promise = promise.then do |result|
484
+ http_response = result.response
485
+ status_code = http_response.status
486
+ response_content = http_response.body
487
+ unless status_code == 200
488
+ error_model = JSON.load(response_content)
489
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
490
+ end
491
+
492
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
493
+ # Deserialize Response
494
+ if status_code == 200
495
+ begin
496
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
497
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
498
+ result.body = @client.deserialize(result_mapper, parsed_response)
499
+ rescue Exception => e
500
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
501
+ end
502
+ end
503
+
504
+ result
505
+ end
506
+
507
+ promise.execute
508
+ end
509
+
510
+ #
511
+ # Deletes an integration account.
512
+ #
513
+ # @param resource_group_name [String] The resource group name.
514
+ # @param integration_account_name [String] The integration account name.
515
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
516
+ # will be added to the HTTP request.
517
+ #
518
+ #
519
+ def delete(resource_group_name, integration_account_name, custom_headers:nil)
520
+ response = delete_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value!
521
+ nil
522
+ end
523
+
524
+ #
525
+ # Deletes an integration account.
526
+ #
527
+ # @param resource_group_name [String] The resource group name.
528
+ # @param integration_account_name [String] The integration account name.
529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
+ # will be added to the HTTP request.
531
+ #
532
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
533
+ #
534
+ def delete_with_http_info(resource_group_name, integration_account_name, custom_headers:nil)
535
+ delete_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value!
536
+ end
537
+
538
+ #
539
+ # Deletes an integration account.
540
+ #
541
+ # @param resource_group_name [String] The resource group name.
542
+ # @param integration_account_name [String] The integration account name.
543
+ # @param [Hash{String => String}] A hash of custom headers that will be added
544
+ # to the HTTP request.
545
+ #
546
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
547
+ #
548
+ def delete_async(resource_group_name, integration_account_name, custom_headers:nil)
549
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
550
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
551
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
552
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
553
+
554
+
555
+ request_headers = {}
556
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
557
+
558
+ # Set Headers
559
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
560
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
561
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'
562
+
563
+ request_url = @base_url || @client.base_url
564
+
565
+ options = {
566
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
567
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
568
+ query_params: {'api-version' => @client.api_version},
569
+ headers: request_headers.merge(custom_headers || {}),
570
+ base_url: request_url
571
+ }
572
+ promise = @client.make_request_async(:delete, path_template, options)
573
+
574
+ promise = promise.then do |result|
575
+ http_response = result.response
576
+ status_code = http_response.status
577
+ response_content = http_response.body
578
+ unless status_code == 200 || status_code == 204
579
+ error_model = JSON.load(response_content)
580
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
581
+ end
582
+
583
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
584
+
585
+ result
586
+ end
587
+
588
+ promise.execute
589
+ end
590
+
591
+ #
592
+ # Gets the integration account callback URL.
593
+ #
594
+ # @param resource_group_name [String] The resource group name.
595
+ # @param integration_account_name [String] The integration account name.
596
+ # @param parameters [GetCallbackUrlParameters] The callback URL parameters.
597
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
598
+ # will be added to the HTTP request.
599
+ #
600
+ # @return [CallbackUrl] operation results.
601
+ #
602
+ def list_callback_url(resource_group_name, integration_account_name, parameters, custom_headers:nil)
603
+ response = list_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers:custom_headers).value!
604
+ response.body unless response.nil?
605
+ end
606
+
607
+ #
608
+ # Gets the integration account callback URL.
609
+ #
610
+ # @param resource_group_name [String] The resource group name.
611
+ # @param integration_account_name [String] The integration account name.
612
+ # @param parameters [GetCallbackUrlParameters] The callback URL parameters.
613
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
614
+ # will be added to the HTTP request.
615
+ #
616
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
617
+ #
618
+ def list_callback_url_with_http_info(resource_group_name, integration_account_name, parameters, custom_headers:nil)
619
+ list_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers:custom_headers).value!
620
+ end
621
+
622
+ #
623
+ # Gets the integration account callback URL.
624
+ #
625
+ # @param resource_group_name [String] The resource group name.
626
+ # @param integration_account_name [String] The integration account name.
627
+ # @param parameters [GetCallbackUrlParameters] The callback URL parameters.
628
+ # @param [Hash{String => String}] A hash of custom headers that will be added
629
+ # to the HTTP request.
630
+ #
631
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
632
+ #
633
+ def list_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers:nil)
634
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
635
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
636
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
637
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
638
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
639
+
640
+
641
+ request_headers = {}
642
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
643
+
644
+ # Set Headers
645
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
646
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
647
+
648
+ # Serialize Request
649
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::GetCallbackUrlParameters.mapper()
650
+ request_content = @client.serialize(request_mapper, parameters)
651
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
652
+
653
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listCallbackUrl'
654
+
655
+ request_url = @base_url || @client.base_url
656
+
657
+ options = {
658
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
659
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
660
+ query_params: {'api-version' => @client.api_version},
661
+ body: request_content,
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
+ # Deserialize Response
678
+ if status_code == 200
679
+ begin
680
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
681
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::CallbackUrl.mapper()
682
+ result.body = @client.deserialize(result_mapper, parsed_response)
683
+ rescue Exception => e
684
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
685
+ end
686
+ end
687
+
688
+ result
689
+ end
690
+
691
+ promise.execute
692
+ end
693
+
694
+ #
695
+ # Gets the integration account's Key Vault keys.
696
+ #
697
+ # @param resource_group_name [String] The resource group name.
698
+ # @param integration_account_name [String] The integration account name.
699
+ # @param list_key_vault_keys [ListKeyVaultKeysDefinition] The key vault
700
+ # parameters.
701
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
702
+ # will be added to the HTTP request.
703
+ #
704
+ # @return [KeyVaultKeyCollection] operation results.
705
+ #
706
+ def list_key_vault_keys(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:nil)
707
+ response = list_key_vault_keys_async(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:custom_headers).value!
708
+ response.body unless response.nil?
709
+ end
710
+
711
+ #
712
+ # Gets the integration account's Key Vault keys.
713
+ #
714
+ # @param resource_group_name [String] The resource group name.
715
+ # @param integration_account_name [String] The integration account name.
716
+ # @param list_key_vault_keys [ListKeyVaultKeysDefinition] The key vault
717
+ # parameters.
718
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
719
+ # will be added to the HTTP request.
720
+ #
721
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
722
+ #
723
+ def list_key_vault_keys_with_http_info(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:nil)
724
+ list_key_vault_keys_async(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:custom_headers).value!
725
+ end
726
+
727
+ #
728
+ # Gets the integration account's Key Vault keys.
729
+ #
730
+ # @param resource_group_name [String] The resource group name.
731
+ # @param integration_account_name [String] The integration account name.
732
+ # @param list_key_vault_keys [ListKeyVaultKeysDefinition] The key vault
733
+ # parameters.
734
+ # @param [Hash{String => String}] A hash of custom headers that will be added
735
+ # to the HTTP request.
736
+ #
737
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
738
+ #
739
+ def list_key_vault_keys_async(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:nil)
740
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
741
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
742
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
743
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
744
+ fail ArgumentError, 'list_key_vault_keys is nil' if list_key_vault_keys.nil?
745
+
746
+
747
+ request_headers = {}
748
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
749
+
750
+ # Set Headers
751
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
752
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
753
+
754
+ # Serialize Request
755
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ListKeyVaultKeysDefinition.mapper()
756
+ request_content = @client.serialize(request_mapper, list_key_vault_keys)
757
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
758
+
759
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listKeyVaultKeys'
760
+
761
+ request_url = @base_url || @client.base_url
762
+
763
+ options = {
764
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
765
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
766
+ query_params: {'api-version' => @client.api_version},
767
+ body: request_content,
768
+ headers: request_headers.merge(custom_headers || {}),
769
+ base_url: request_url
770
+ }
771
+ promise = @client.make_request_async(:post, path_template, options)
772
+
773
+ promise = promise.then do |result|
774
+ http_response = result.response
775
+ status_code = http_response.status
776
+ response_content = http_response.body
777
+ unless status_code == 200
778
+ error_model = JSON.load(response_content)
779
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
780
+ end
781
+
782
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
783
+ # Deserialize Response
784
+ if status_code == 200
785
+ begin
786
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
787
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyCollection.mapper()
788
+ result.body = @client.deserialize(result_mapper, parsed_response)
789
+ rescue Exception => e
790
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
791
+ end
792
+ end
793
+
794
+ result
795
+ end
796
+
797
+ promise.execute
798
+ end
799
+
800
+ #
801
+ # Logs the integration account's tracking events.
802
+ #
803
+ # @param resource_group_name [String] The resource group name.
804
+ # @param integration_account_name [String] The integration account name.
805
+ # @param log_tracking_events [TrackingEventsDefinition] The callback URL
806
+ # parameters.
807
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
808
+ # will be added to the HTTP request.
809
+ #
810
+ #
811
+ def log_tracking_events(resource_group_name, integration_account_name, log_tracking_events, custom_headers:nil)
812
+ response = log_tracking_events_async(resource_group_name, integration_account_name, log_tracking_events, custom_headers:custom_headers).value!
813
+ nil
814
+ end
815
+
816
+ #
817
+ # Logs the integration account's tracking events.
818
+ #
819
+ # @param resource_group_name [String] The resource group name.
820
+ # @param integration_account_name [String] The integration account name.
821
+ # @param log_tracking_events [TrackingEventsDefinition] The callback URL
822
+ # parameters.
823
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
824
+ # will be added to the HTTP request.
825
+ #
826
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
827
+ #
828
+ def log_tracking_events_with_http_info(resource_group_name, integration_account_name, log_tracking_events, custom_headers:nil)
829
+ log_tracking_events_async(resource_group_name, integration_account_name, log_tracking_events, custom_headers:custom_headers).value!
830
+ end
831
+
832
+ #
833
+ # Logs the integration account's tracking events.
834
+ #
835
+ # @param resource_group_name [String] The resource group name.
836
+ # @param integration_account_name [String] The integration account name.
837
+ # @param log_tracking_events [TrackingEventsDefinition] The callback URL
838
+ # parameters.
839
+ # @param [Hash{String => String}] A hash of custom headers that will be added
840
+ # to the HTTP request.
841
+ #
842
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
843
+ #
844
+ def log_tracking_events_async(resource_group_name, integration_account_name, log_tracking_events, custom_headers:nil)
845
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
846
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
847
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
848
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
849
+ fail ArgumentError, 'log_tracking_events is nil' if log_tracking_events.nil?
850
+
851
+
852
+ request_headers = {}
853
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
854
+
855
+ # Set Headers
856
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
857
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
858
+
859
+ # Serialize Request
860
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventsDefinition.mapper()
861
+ request_content = @client.serialize(request_mapper, log_tracking_events)
862
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
863
+
864
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/logTrackingEvents'
865
+
866
+ request_url = @base_url || @client.base_url
867
+
868
+ options = {
869
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
870
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
871
+ query_params: {'api-version' => @client.api_version},
872
+ body: request_content,
873
+ headers: request_headers.merge(custom_headers || {}),
874
+ base_url: request_url
875
+ }
876
+ promise = @client.make_request_async(:post, path_template, options)
877
+
878
+ promise = promise.then do |result|
879
+ http_response = result.response
880
+ status_code = http_response.status
881
+ response_content = http_response.body
882
+ unless status_code == 200
883
+ error_model = JSON.load(response_content)
884
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
885
+ end
886
+
887
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
888
+
889
+ result
890
+ end
891
+
892
+ promise.execute
893
+ end
894
+
895
+ #
896
+ # Regenerates the integration account access key.
897
+ #
898
+ # @param resource_group_name [String] The resource group name.
899
+ # @param integration_account_name [String] The integration account name.
900
+ # @param regenerate_access_key [RegenerateActionParameter] The access key type.
901
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
902
+ # will be added to the HTTP request.
903
+ #
904
+ # @return [IntegrationAccount] operation results.
905
+ #
906
+ def regenerate_access_key(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:nil)
907
+ response = regenerate_access_key_async(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:custom_headers).value!
908
+ response.body unless response.nil?
909
+ end
910
+
911
+ #
912
+ # Regenerates the integration account access key.
913
+ #
914
+ # @param resource_group_name [String] The resource group name.
915
+ # @param integration_account_name [String] The integration account name.
916
+ # @param regenerate_access_key [RegenerateActionParameter] The access key type.
917
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
918
+ # will be added to the HTTP request.
919
+ #
920
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
921
+ #
922
+ def regenerate_access_key_with_http_info(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:nil)
923
+ regenerate_access_key_async(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:custom_headers).value!
924
+ end
925
+
926
+ #
927
+ # Regenerates the integration account access key.
928
+ #
929
+ # @param resource_group_name [String] The resource group name.
930
+ # @param integration_account_name [String] The integration account name.
931
+ # @param regenerate_access_key [RegenerateActionParameter] The access key type.
932
+ # @param [Hash{String => String}] A hash of custom headers that will be added
933
+ # to the HTTP request.
934
+ #
935
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
936
+ #
937
+ def regenerate_access_key_async(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:nil)
938
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
939
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
940
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
941
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
942
+ fail ArgumentError, 'regenerate_access_key is nil' if regenerate_access_key.nil?
943
+
944
+
945
+ request_headers = {}
946
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
947
+
948
+ # Set Headers
949
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
950
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
951
+
952
+ # Serialize Request
953
+ request_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RegenerateActionParameter.mapper()
954
+ request_content = @client.serialize(request_mapper, regenerate_access_key)
955
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
956
+
957
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/regenerateAccessKey'
958
+
959
+ request_url = @base_url || @client.base_url
960
+
961
+ options = {
962
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
963
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
964
+ query_params: {'api-version' => @client.api_version},
965
+ body: request_content,
966
+ headers: request_headers.merge(custom_headers || {}),
967
+ base_url: request_url
968
+ }
969
+ promise = @client.make_request_async(:post, path_template, options)
970
+
971
+ promise = promise.then do |result|
972
+ http_response = result.response
973
+ status_code = http_response.status
974
+ response_content = http_response.body
975
+ unless status_code == 200
976
+ error_model = JSON.load(response_content)
977
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
978
+ end
979
+
980
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
981
+ # Deserialize Response
982
+ if status_code == 200
983
+ begin
984
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
985
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount.mapper()
986
+ result.body = @client.deserialize(result_mapper, parsed_response)
987
+ rescue Exception => e
988
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
989
+ end
990
+ end
991
+
992
+ result
993
+ end
994
+
995
+ promise.execute
996
+ end
997
+
998
+ #
999
+ # Gets a list of integration accounts by subscription.
1000
+ #
1001
+ # @param next_page_link [String] The NextLink from the previous successful call
1002
+ # to List operation.
1003
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1004
+ # will be added to the HTTP request.
1005
+ #
1006
+ # @return [IntegrationAccountListResult] operation results.
1007
+ #
1008
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
1009
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1010
+ response.body unless response.nil?
1011
+ end
1012
+
1013
+ #
1014
+ # Gets a list of integration accounts by subscription.
1015
+ #
1016
+ # @param next_page_link [String] The NextLink from the previous successful call
1017
+ # to List operation.
1018
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1019
+ # will be added to the HTTP request.
1020
+ #
1021
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1022
+ #
1023
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1024
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1025
+ end
1026
+
1027
+ #
1028
+ # Gets a list of integration accounts by subscription.
1029
+ #
1030
+ # @param next_page_link [String] The NextLink from the previous successful call
1031
+ # to List operation.
1032
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1033
+ # to the HTTP request.
1034
+ #
1035
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1036
+ #
1037
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1038
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1039
+
1040
+
1041
+ request_headers = {}
1042
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1043
+
1044
+ # Set Headers
1045
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1046
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1047
+ path_template = '{nextLink}'
1048
+
1049
+ request_url = @base_url || @client.base_url
1050
+
1051
+ options = {
1052
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1053
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1054
+ headers: request_headers.merge(custom_headers || {}),
1055
+ base_url: request_url
1056
+ }
1057
+ promise = @client.make_request_async(:get, path_template, options)
1058
+
1059
+ promise = promise.then do |result|
1060
+ http_response = result.response
1061
+ status_code = http_response.status
1062
+ response_content = http_response.body
1063
+ unless status_code == 200
1064
+ error_model = JSON.load(response_content)
1065
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1066
+ end
1067
+
1068
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1069
+ # Deserialize Response
1070
+ if status_code == 200
1071
+ begin
1072
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1073
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountListResult.mapper()
1074
+ result.body = @client.deserialize(result_mapper, parsed_response)
1075
+ rescue Exception => e
1076
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1077
+ end
1078
+ end
1079
+
1080
+ result
1081
+ end
1082
+
1083
+ promise.execute
1084
+ end
1085
+
1086
+ #
1087
+ # Gets a list of integration accounts by resource group.
1088
+ #
1089
+ # @param next_page_link [String] The NextLink from the previous successful call
1090
+ # to List operation.
1091
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1092
+ # will be added to the HTTP request.
1093
+ #
1094
+ # @return [IntegrationAccountListResult] operation results.
1095
+ #
1096
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1097
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1098
+ response.body unless response.nil?
1099
+ end
1100
+
1101
+ #
1102
+ # Gets a list of integration accounts by resource group.
1103
+ #
1104
+ # @param next_page_link [String] The NextLink from the previous successful call
1105
+ # to List operation.
1106
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1107
+ # will be added to the HTTP request.
1108
+ #
1109
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1110
+ #
1111
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1112
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1113
+ end
1114
+
1115
+ #
1116
+ # Gets a list of integration accounts by resource group.
1117
+ #
1118
+ # @param next_page_link [String] The NextLink from the previous successful call
1119
+ # to List operation.
1120
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1121
+ # to the HTTP request.
1122
+ #
1123
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1124
+ #
1125
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1126
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1127
+
1128
+
1129
+ request_headers = {}
1130
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1131
+
1132
+ # Set Headers
1133
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1134
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1135
+ path_template = '{nextLink}'
1136
+
1137
+ request_url = @base_url || @client.base_url
1138
+
1139
+ options = {
1140
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1141
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1142
+ headers: request_headers.merge(custom_headers || {}),
1143
+ base_url: request_url
1144
+ }
1145
+ promise = @client.make_request_async(:get, path_template, options)
1146
+
1147
+ promise = promise.then do |result|
1148
+ http_response = result.response
1149
+ status_code = http_response.status
1150
+ response_content = http_response.body
1151
+ unless status_code == 200
1152
+ error_model = JSON.load(response_content)
1153
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1154
+ end
1155
+
1156
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1157
+ # Deserialize Response
1158
+ if status_code == 200
1159
+ begin
1160
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1161
+ result_mapper = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountListResult.mapper()
1162
+ result.body = @client.deserialize(result_mapper, parsed_response)
1163
+ rescue Exception => e
1164
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1165
+ end
1166
+ end
1167
+
1168
+ result
1169
+ end
1170
+
1171
+ promise.execute
1172
+ end
1173
+
1174
+ #
1175
+ # Gets a list of integration accounts by subscription.
1176
+ #
1177
+ # @param top [Integer] The number of items to be included in the result.
1178
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1179
+ # will be added to the HTTP request.
1180
+ #
1181
+ # @return [IntegrationAccountListResult] which provide lazy access to pages of
1182
+ # the response.
1183
+ #
1184
+ def list_by_subscription_as_lazy(top:nil, custom_headers:nil)
1185
+ response = list_by_subscription_async(top:top, custom_headers:custom_headers).value!
1186
+ unless response.nil?
1187
+ page = response.body
1188
+ page.next_method = Proc.new do |next_page_link|
1189
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1190
+ end
1191
+ page
1192
+ end
1193
+ end
1194
+
1195
+ #
1196
+ # Gets a list of integration accounts by resource group.
1197
+ #
1198
+ # @param resource_group_name [String] The resource group name.
1199
+ # @param top [Integer] The number of items to be included in the result.
1200
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1201
+ # will be added to the HTTP request.
1202
+ #
1203
+ # @return [IntegrationAccountListResult] which provide lazy access to pages of
1204
+ # the response.
1205
+ #
1206
+ def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil)
1207
+ response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value!
1208
+ unless response.nil?
1209
+ page = response.body
1210
+ page.next_method = Proc.new do |next_page_link|
1211
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1212
+ end
1213
+ page
1214
+ end
1215
+ end
1216
+
1217
+ end
1218
+ end