azure_mgmt_data_factory 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-09-01-preview/generated/azure_mgmt_data_factory/data_factory_management_client.rb +1 -1
  3. data/lib/2018-06-01/generated/azure_mgmt_data_factory.rb +256 -120
  4. data/lib/2018-06-01/generated/azure_mgmt_data_factory/data_factory_management_client.rb +9 -5
  5. data/lib/2018-06-01/generated/azure_mgmt_data_factory/{rerun_triggers.rb → data_flow_debug_session.rb} +250 -287
  6. data/lib/2018-06-01/generated/azure_mgmt_data_factory/data_flows.rb +579 -0
  7. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/activity.rb +4 -0
  8. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/add_data_flow_to_debug_session_response.rb +46 -0
  9. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/amazon_mwssource.rb +9 -1
  10. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/amazon_redshift_source.rb +9 -1
  11. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/amazon_redshift_table_dataset.rb +177 -0
  12. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/amazon_s3location.rb +15 -8
  13. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/amazon_s3read_settings.rb +15 -8
  14. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/avro_compression_codec.rb +19 -0
  15. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/avro_dataset.rb +182 -0
  16. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/avro_sink.rb +131 -0
  17. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/avro_source.rb +103 -0
  18. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/avro_write_settings.rb +88 -0
  19. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_fslocation.rb +15 -8
  20. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_fsread_settings.rb +15 -8
  21. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_fswrite_settings.rb +27 -8
  22. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_storage_location.rb +15 -8
  23. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_storage_read_settings.rb +27 -8
  24. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_storage_write_settings.rb +27 -8
  25. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_data_explorer_command_activity.rb +158 -0
  26. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_data_lake_store_location.rb +15 -8
  27. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_data_lake_store_read_settings.rb +15 -8
  28. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_data_lake_store_write_settings.rb +15 -8
  29. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_databricks_linked_service.rb +41 -15
  30. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_file_storage_linked_service.rb +166 -0
  31. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_file_storage_location.rb +81 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_file_storage_read_settings.rb +144 -0
  33. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_maria_dblinked_service.rb +153 -0
  34. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_maria_dbsource.rb +109 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_maria_dbtable_dataset.rb +153 -0
  36. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_mlexecute_pipeline_activity.rb +202 -0
  37. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_mllinked_service.rb +6 -6
  38. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_mlservice_linked_service.rb +205 -0
  39. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_my_sql_sink.rb +117 -0
  40. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_my_sql_source.rb +9 -1
  41. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_my_sql_table_dataset.rb +12 -0
  42. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_postgre_sql_sink.rb +117 -0
  43. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_postgre_sql_source.rb +9 -1
  44. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_postgre_sql_table_dataset.rb +26 -1
  45. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_dwtable_dataset.rb +25 -1
  46. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_milinked_service.rb +193 -0
  47. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_mitable_dataset.rb +177 -0
  48. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_sink.rb +13 -0
  49. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_source.rb +9 -1
  50. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_table_dataset.rb +25 -1
  51. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_table_source.rb +9 -1
  52. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/binary_dataset.rb +170 -0
  53. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/binary_sink.rb +119 -0
  54. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/binary_source.rb +103 -0
  55. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/blob_events_trigger.rb +12 -0
  56. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cassandra_source.rb +9 -1
  57. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/chaining_trigger.rb +148 -0
  58. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cmdkey_setup.rb +86 -0
  59. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/common_data_service_for_apps_entity_dataset.rb +153 -0
  60. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/common_data_service_for_apps_linked_service.rb +287 -0
  61. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/common_data_service_for_apps_sink.rb +144 -0
  62. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/common_data_service_for_apps_source.rb +102 -0
  63. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/component_setup.rb +75 -0
  64. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/concur_source.rb +9 -1
  65. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/copy_sink.rb +13 -0
  66. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/copy_source.rb +38 -17
  67. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cosmos_db_linked_service.rb +30 -4
  68. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cosmos_db_mongo_db_api_source.rb +13 -1
  69. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cosmos_db_sql_api_collection_dataset.rb +153 -0
  70. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cosmos_db_sql_api_sink.rb +118 -0
  71. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cosmos_db_sql_api_source.rb +125 -0
  72. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/couchbase_source.rb +9 -1
  73. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/create_data_flow_debug_session_request.rb +83 -0
  74. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/create_data_flow_debug_session_response.rb +57 -0
  75. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/custom_setup_base.rb +48 -0
  76. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow.rb +90 -0
  77. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_compute_type.rb +17 -0
  78. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_command_payload.rb +87 -0
  79. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_command_request.rb +71 -0
  80. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_command_response.rb +60 -0
  81. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_command_type.rb +17 -0
  82. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_package.rb +141 -0
  83. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_package_debug_settings.rb +86 -0
  84. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_resource.rb +57 -0
  85. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_debug_session_info.rb +154 -0
  86. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_folder.rb +47 -0
  87. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/{rerun_trigger_list_response.rb → data_flow_list_response.rb} +12 -13
  88. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_reference.rb +71 -0
  89. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/{rerun_trigger_resource.rb → data_flow_resource.rb} +9 -7
  90. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_sink.rb +63 -0
  91. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_source.rb +63 -0
  92. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_source_setting.rb +76 -0
  93. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_staging_info.rb +58 -0
  94. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dataset.rb +20 -0
  95. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dataset_debug_resource.rb +58 -0
  96. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dataset_location.rb +21 -11
  97. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/db2linked_service.rb +24 -0
  98. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/db2source.rb +109 -0
  99. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/db2table_dataset.rb +177 -0
  100. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/delete_data_flow_debug_session_request.rb +46 -0
  101. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/delimited_text_dataset.rb +2 -0
  102. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/delimited_text_read_settings.rb +7 -0
  103. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/delimited_text_sink.rb +2 -0
  104. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/delimited_text_source.rb +2 -0
  105. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/delimited_text_write_settings.rb +7 -0
  106. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/document_db_collection_sink.rb +3 -2
  107. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/document_db_collection_source.rb +12 -0
  108. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/drill_source.rb +9 -1
  109. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/drill_table_dataset.rb +26 -2
  110. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dwcopy_command_default_value.rb +59 -0
  111. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dwcopy_command_settings.rb +81 -0
  112. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_authentication_type.rb +17 -0
  113. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_axsource.rb +9 -1
  114. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_crm_entity_dataset.rb +153 -0
  115. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_crm_linked_service.rb +284 -0
  116. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_crm_sink.rb +144 -0
  117. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_crm_source.rb +102 -0
  118. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_deployment_type.rb +16 -0
  119. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_linked_service.rb +49 -2
  120. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/dynamics_sink.rb +12 -0
  121. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/eloqua_source.rb +9 -1
  122. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/environment_variable_setup.rb +72 -0
  123. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/event_subscription_status.rb +19 -0
  124. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/execute_data_flow_activity.rb +185 -0
  125. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/execute_data_flow_activity_type_properties_compute.rb +61 -0
  126. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/execute_ssispackage_activity.rb +12 -0
  127. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/file_server_location.rb +15 -8
  128. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/file_server_read_settings.rb +15 -8
  129. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/file_server_write_settings.rb +15 -8
  130. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/format_read_settings.rb +11 -11
  131. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/format_write_settings.rb +13 -11
  132. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ftp_read_settings.rb +15 -8
  133. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ftp_server_location.rb +15 -8
  134. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/get_data_factory_operation_status_response.rb +65 -0
  135. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_ad_words_linked_service.rb +3 -6
  136. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_ad_words_source.rb +9 -1
  137. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_big_query_linked_service.rb +3 -6
  138. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_big_query_object_dataset.rb +26 -2
  139. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_big_query_source.rb +9 -1
  140. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_cloud_storage_linked_service.rb +171 -0
  141. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_cloud_storage_location.rb +105 -0
  142. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/google_cloud_storage_read_settings.rb +156 -0
  143. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/greenplum_source.rb +9 -1
  144. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/greenplum_table_dataset.rb +26 -2
  145. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hbase_source.rb +9 -1
  146. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hdfs_location.rb +15 -8
  147. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hdfs_read_settings.rb +15 -8
  148. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hdinsight_pig_activity.rb +3 -10
  149. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hdinsight_spark_activity.rb +1 -1
  150. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hive_object_dataset.rb +26 -2
  151. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hive_source.rb +9 -1
  152. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/http_read_settings.rb +15 -8
  153. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/http_server_location.rb +15 -8
  154. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hubspot_source.rb +9 -1
  155. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/impala_object_dataset.rb +26 -2
  156. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/impala_source.rb +9 -1
  157. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/informix_linked_service.rb +195 -0
  158. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/informix_sink.rb +117 -0
  159. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/informix_source.rb +109 -0
  160. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/informix_table_dataset.rb +153 -0
  161. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/integration_runtime_compute_properties.rb +13 -0
  162. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/integration_runtime_data_flow_properties.rb +94 -0
  163. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/integration_runtime_debug_resource.rb +57 -0
  164. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/integration_runtime_ssis_properties.rb +23 -0
  165. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/integration_runtime_vnet_properties.rb +20 -0
  166. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/jira_source.rb +9 -1
  167. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/json_dataset.rb +186 -0
  168. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/json_sink.rb +131 -0
  169. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/json_source.rb +103 -0
  170. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/json_write_file_pattern.rb +16 -0
  171. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/json_write_settings.rb +79 -0
  172. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/linked_service.rb +10 -0
  173. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/linked_service_debug_resource.rb +58 -0
  174. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/magento_source.rb +9 -1
  175. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/mapping_data_flow.rb +154 -0
  176. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/maria_dbsource.rb +9 -1
  177. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/marketo_source.rb +9 -1
  178. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/microsoft_access_linked_service.rb +195 -0
  179. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/microsoft_access_sink.rb +117 -0
  180. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/microsoft_access_source.rb +101 -0
  181. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/microsoft_access_table_dataset.rb +153 -0
  182. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/mongo_db_v2source.rb +13 -1
  183. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/my_sql_linked_service.rb +2 -5
  184. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/my_sql_source.rb +109 -0
  185. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/my_sql_table_dataset.rb +153 -0
  186. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/netezza_partition_option.rb +17 -0
  187. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/netezza_partition_settings.rb +74 -0
  188. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/netezza_source.rb +35 -1
  189. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/netezza_table_dataset.rb +26 -2
  190. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/odata_source.rb +101 -0
  191. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/odbc_source.rb +109 -0
  192. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/odbc_table_dataset.rb +153 -0
  193. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/office365source.rb +75 -1
  194. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/oracle_partition_option.rb +17 -0
  195. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/oracle_partition_settings.rb +85 -0
  196. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/oracle_service_cloud_source.rb +9 -1
  197. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/oracle_source.rb +26 -0
  198. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/oracle_table_dataset.rb +25 -1
  199. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/orc_compression_codec.rb +17 -0
  200. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/orc_dataset.rb +167 -0
  201. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/orc_sink.rb +119 -0
  202. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/orc_source.rb +103 -0
  203. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/parquet_dataset.rb +2 -0
  204. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/parquet_sink.rb +2 -0
  205. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/parquet_source.rb +2 -0
  206. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/paypal_source.rb +9 -1
  207. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/phoenix_object_dataset.rb +26 -2
  208. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/phoenix_source.rb +9 -1
  209. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/pipeline_resource.rb +19 -0
  210. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/pipeline_run.rb +21 -0
  211. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/postgre_sql_linked_service.rb +2 -5
  212. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/postgre_sql_source.rb +109 -0
  213. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/postgre_sql_table_dataset.rb +177 -0
  214. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/presto_object_dataset.rb +26 -2
  215. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/presto_source.rb +9 -1
  216. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/query_data_flow_debug_sessions_response.rb +100 -0
  217. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/quick_books_source.rb +9 -1
  218. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/rerun_tumbling_window_trigger.rb +3 -3
  219. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/responsys_source.rb +9 -1
  220. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/rest_source.rb +48 -0
  221. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_marketing_cloud_source.rb +9 -1
  222. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_service_cloud_linked_service.rb +197 -0
  223. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_service_cloud_object_dataset.rb +153 -0
  224. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_service_cloud_sink.rb +149 -0
  225. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_service_cloud_source.rb +114 -0
  226. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_source.rb +9 -1
  227. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_bw_cube_dataset.rb +141 -0
  228. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_bw_source.rb +108 -0
  229. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_cloud_for_customer_source.rb +9 -1
  230. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_ecc_source.rb +9 -1
  231. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_hana_partition_option.rb +17 -0
  232. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_hana_partition_settings.rb +47 -0
  233. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_hana_source.rb +35 -1
  234. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_open_hub_source.rb +35 -1
  235. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_table_partition_option.rb +20 -0
  236. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_table_partition_settings.rb +85 -0
  237. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_table_source.rb +37 -1
  238. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/self_dependency_tumbling_window_trigger_reference.rb +1 -1
  239. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/service_now_source.rb +9 -1
  240. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sftp_location.rb +15 -8
  241. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sftp_read_settings.rb +15 -8
  242. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sftp_write_settings.rb +94 -0
  243. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/shopify_source.rb +9 -1
  244. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/spark_object_dataset.rb +26 -2
  245. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/spark_source.rb +9 -1
  246. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_dwsink.rb +38 -0
  247. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_dwsource.rb +9 -1
  248. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_misink.rb +187 -0
  249. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_misource.rb +155 -0
  250. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_server_sink.rb +13 -0
  251. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_server_source.rb +9 -1
  252. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_server_table_dataset.rb +25 -1
  253. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_sink.rb +13 -0
  254. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sql_source.rb +9 -1
  255. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/square_source.rb +9 -1
  256. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ssis_package_location_type.rb +17 -0
  257. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ssisaccess_credential.rb +71 -0
  258. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ssischild_package.rb +81 -0
  259. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ssislog_location.rb +86 -0
  260. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/ssispackage_location.rb +105 -1
  261. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/store_read_settings.rb +21 -11
  262. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/store_write_settings.rb +15 -11
  263. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sub_resource_debug_resource.rb +46 -0
  264. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/switch_activity.rb +179 -0
  265. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/switch_case.rb +70 -0
  266. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sybase_source.rb +109 -0
  267. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sybase_table_dataset.rb +153 -0
  268. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/tabular_source.rb +101 -0
  269. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/teradata_linked_service.rb +13 -1
  270. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/teradata_partition_option.rb +17 -0
  271. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/teradata_partition_settings.rb +74 -0
  272. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/teradata_source.rb +135 -0
  273. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/teradata_table_dataset.rb +165 -0
  274. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/transformation.rb +57 -0
  275. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/trigger.rb +1 -0
  276. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/trigger_filter_parameters.rb +59 -0
  277. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/trigger_query_response.rb +67 -0
  278. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/trigger_run.rb +41 -0
  279. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/trigger_subscription_operation_status.rb +61 -0
  280. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/tumbling_window_trigger_dependency_reference.rb +1 -1
  281. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/vertica_source.rb +9 -1
  282. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/vertica_table_dataset.rb +26 -2
  283. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/web_activity.rb +13 -0
  284. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/web_activity_authentication.rb +8 -5
  285. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/web_hook_activity.rb +14 -0
  286. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/xero_source.rb +9 -1
  287. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/zoho_source.rb +9 -1
  288. data/lib/2018-06-01/generated/azure_mgmt_data_factory/pipelines.rb +15 -6
  289. data/lib/2018-06-01/generated/azure_mgmt_data_factory/trigger_runs.rb +100 -0
  290. data/lib/2018-06-01/generated/azure_mgmt_data_factory/triggers.rb +523 -0
  291. data/lib/profiles/latest/modules/datafactory_profile_module.rb +932 -390
  292. data/lib/version.rb +1 -1
  293. metadata +142 -6
  294. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/rerun_tumbling_window_trigger_action_parameters.rb +0 -76
@@ -0,0 +1,579 @@
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::DataFactory::Mgmt::V2018_06_01
7
+ #
8
+ # The Azure Data Factory V2 management API provides a RESTful set of web
9
+ # services that interact with Azure Data Factory V2 services.
10
+ #
11
+ class DataFlows
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the DataFlows class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [DataFactoryManagementClient] reference to the DataFactoryManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Creates or updates a data flow.
27
+ #
28
+ # @param resource_group_name [String] The resource group name.
29
+ # @param factory_name [String] The factory name.
30
+ # @param data_flow_name [String] The data flow name.
31
+ # @param data_flow [DataFlowResource] Data flow resource definition.
32
+ # @param if_match [String] ETag of the data flow entity. Should only be
33
+ # specified for update, for which it should match existing entity or can be *
34
+ # for unconditional update.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [DataFlowResource] operation results.
39
+ #
40
+ def create_or_update(resource_group_name, factory_name, data_flow_name, data_flow, if_match:nil, custom_headers:nil)
41
+ response = create_or_update_async(resource_group_name, factory_name, data_flow_name, data_flow, if_match:if_match, custom_headers:custom_headers).value!
42
+ response.body unless response.nil?
43
+ end
44
+
45
+ #
46
+ # Creates or updates a data flow.
47
+ #
48
+ # @param resource_group_name [String] The resource group name.
49
+ # @param factory_name [String] The factory name.
50
+ # @param data_flow_name [String] The data flow name.
51
+ # @param data_flow [DataFlowResource] Data flow resource definition.
52
+ # @param if_match [String] ETag of the data flow entity. Should only be
53
+ # specified for update, for which it should match existing entity or can be *
54
+ # for unconditional update.
55
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
56
+ # will be added to the HTTP request.
57
+ #
58
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
+ #
60
+ def create_or_update_with_http_info(resource_group_name, factory_name, data_flow_name, data_flow, if_match:nil, custom_headers:nil)
61
+ create_or_update_async(resource_group_name, factory_name, data_flow_name, data_flow, if_match:if_match, custom_headers:custom_headers).value!
62
+ end
63
+
64
+ #
65
+ # Creates or updates a data flow.
66
+ #
67
+ # @param resource_group_name [String] The resource group name.
68
+ # @param factory_name [String] The factory name.
69
+ # @param data_flow_name [String] The data flow name.
70
+ # @param data_flow [DataFlowResource] Data flow resource definition.
71
+ # @param if_match [String] ETag of the data flow entity. Should only be
72
+ # specified for update, for which it should match existing entity or can be *
73
+ # for unconditional update.
74
+ # @param [Hash{String => String}] A hash of custom headers that will be added
75
+ # to the HTTP request.
76
+ #
77
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
78
+ #
79
+ def create_or_update_async(resource_group_name, factory_name, data_flow_name, data_flow, if_match:nil, custom_headers:nil)
80
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
82
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
83
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
84
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
85
+ fail ArgumentError, 'factory_name is nil' if factory_name.nil?
86
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MaxLength': '63'" if !factory_name.nil? && factory_name.length > 63
87
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MinLength': '3'" if !factory_name.nil? && factory_name.length < 3
88
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'" if !factory_name.nil? && factory_name.match(Regexp.new('^^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$$')).nil?
89
+ fail ArgumentError, 'data_flow_name is nil' if data_flow_name.nil?
90
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'MaxLength': '260'" if !data_flow_name.nil? && data_flow_name.length > 260
91
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'MinLength': '1'" if !data_flow_name.nil? && data_flow_name.length < 1
92
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$'" if !data_flow_name.nil? && data_flow_name.match(Regexp.new('^^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$$')).nil?
93
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
94
+ fail ArgumentError, 'data_flow is nil' if data_flow.nil?
95
+
96
+
97
+ request_headers = {}
98
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
99
+
100
+ # Set Headers
101
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
102
+ request_headers['If-Match'] = if_match unless if_match.nil?
103
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
104
+
105
+ # Serialize Request
106
+ request_mapper = Azure::DataFactory::Mgmt::V2018_06_01::Models::DataFlowResource.mapper()
107
+ request_content = @client.serialize(request_mapper, data_flow)
108
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
109
+
110
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}'
111
+
112
+ request_url = @base_url || @client.base_url
113
+
114
+ options = {
115
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
116
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'factoryName' => factory_name,'dataFlowName' => data_flow_name},
117
+ query_params: {'api-version' => @client.api_version},
118
+ body: request_content,
119
+ headers: request_headers.merge(custom_headers || {}),
120
+ base_url: request_url
121
+ }
122
+ promise = @client.make_request_async(:put, path_template, options)
123
+
124
+ promise = promise.then do |result|
125
+ http_response = result.response
126
+ status_code = http_response.status
127
+ response_content = http_response.body
128
+ unless status_code == 200
129
+ error_model = JSON.load(response_content)
130
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
131
+ end
132
+
133
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
134
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
135
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
136
+ # Deserialize Response
137
+ if status_code == 200
138
+ begin
139
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
140
+ result_mapper = Azure::DataFactory::Mgmt::V2018_06_01::Models::DataFlowResource.mapper()
141
+ result.body = @client.deserialize(result_mapper, parsed_response)
142
+ rescue Exception => e
143
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
144
+ end
145
+ end
146
+
147
+ result
148
+ end
149
+
150
+ promise.execute
151
+ end
152
+
153
+ #
154
+ # Gets a data flow.
155
+ #
156
+ # @param resource_group_name [String] The resource group name.
157
+ # @param factory_name [String] The factory name.
158
+ # @param data_flow_name [String] The data flow name.
159
+ # @param if_none_match [String] ETag of the data flow entity. Should only be
160
+ # specified for get. If the ETag matches the existing entity tag, or if * was
161
+ # provided, then no content will be returned.
162
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
163
+ # will be added to the HTTP request.
164
+ #
165
+ # @return [DataFlowResource] operation results.
166
+ #
167
+ def get(resource_group_name, factory_name, data_flow_name, if_none_match:nil, custom_headers:nil)
168
+ response = get_async(resource_group_name, factory_name, data_flow_name, if_none_match:if_none_match, custom_headers:custom_headers).value!
169
+ response.body unless response.nil?
170
+ end
171
+
172
+ #
173
+ # Gets a data flow.
174
+ #
175
+ # @param resource_group_name [String] The resource group name.
176
+ # @param factory_name [String] The factory name.
177
+ # @param data_flow_name [String] The data flow name.
178
+ # @param if_none_match [String] ETag of the data flow entity. Should only be
179
+ # specified for get. If the ETag matches the existing entity tag, or if * was
180
+ # provided, then no content will be returned.
181
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
182
+ # will be added to the HTTP request.
183
+ #
184
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
185
+ #
186
+ def get_with_http_info(resource_group_name, factory_name, data_flow_name, if_none_match:nil, custom_headers:nil)
187
+ get_async(resource_group_name, factory_name, data_flow_name, if_none_match:if_none_match, custom_headers:custom_headers).value!
188
+ end
189
+
190
+ #
191
+ # Gets a data flow.
192
+ #
193
+ # @param resource_group_name [String] The resource group name.
194
+ # @param factory_name [String] The factory name.
195
+ # @param data_flow_name [String] The data flow name.
196
+ # @param if_none_match [String] ETag of the data flow entity. Should only be
197
+ # specified for get. If the ETag matches the existing entity tag, or if * was
198
+ # provided, then no content will be returned.
199
+ # @param [Hash{String => String}] A hash of custom headers that will be added
200
+ # to the HTTP request.
201
+ #
202
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
203
+ #
204
+ def get_async(resource_group_name, factory_name, data_flow_name, if_none_match:nil, custom_headers:nil)
205
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
206
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
207
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
208
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
209
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
210
+ fail ArgumentError, 'factory_name is nil' if factory_name.nil?
211
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MaxLength': '63'" if !factory_name.nil? && factory_name.length > 63
212
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MinLength': '3'" if !factory_name.nil? && factory_name.length < 3
213
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'" if !factory_name.nil? && factory_name.match(Regexp.new('^^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$$')).nil?
214
+ fail ArgumentError, 'data_flow_name is nil' if data_flow_name.nil?
215
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'MaxLength': '260'" if !data_flow_name.nil? && data_flow_name.length > 260
216
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'MinLength': '1'" if !data_flow_name.nil? && data_flow_name.length < 1
217
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$'" if !data_flow_name.nil? && data_flow_name.match(Regexp.new('^^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$$')).nil?
218
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
219
+
220
+
221
+ request_headers = {}
222
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
223
+
224
+ # Set Headers
225
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
226
+ request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
227
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
228
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}'
229
+
230
+ request_url = @base_url || @client.base_url
231
+
232
+ options = {
233
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
234
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'factoryName' => factory_name,'dataFlowName' => data_flow_name},
235
+ query_params: {'api-version' => @client.api_version},
236
+ headers: request_headers.merge(custom_headers || {}),
237
+ base_url: request_url
238
+ }
239
+ promise = @client.make_request_async(:get, path_template, options)
240
+
241
+ promise = promise.then do |result|
242
+ http_response = result.response
243
+ status_code = http_response.status
244
+ response_content = http_response.body
245
+ unless status_code == 200
246
+ error_model = JSON.load(response_content)
247
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
248
+ end
249
+
250
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
251
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
252
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
253
+ # Deserialize Response
254
+ if status_code == 200
255
+ begin
256
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
257
+ result_mapper = Azure::DataFactory::Mgmt::V2018_06_01::Models::DataFlowResource.mapper()
258
+ result.body = @client.deserialize(result_mapper, parsed_response)
259
+ rescue Exception => e
260
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
261
+ end
262
+ end
263
+
264
+ result
265
+ end
266
+
267
+ promise.execute
268
+ end
269
+
270
+ #
271
+ # Deletes a data flow.
272
+ #
273
+ # @param resource_group_name [String] The resource group name.
274
+ # @param factory_name [String] The factory name.
275
+ # @param data_flow_name [String] The data flow name.
276
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
277
+ # will be added to the HTTP request.
278
+ #
279
+ #
280
+ def delete(resource_group_name, factory_name, data_flow_name, custom_headers:nil)
281
+ response = delete_async(resource_group_name, factory_name, data_flow_name, custom_headers:custom_headers).value!
282
+ nil
283
+ end
284
+
285
+ #
286
+ # Deletes a data flow.
287
+ #
288
+ # @param resource_group_name [String] The resource group name.
289
+ # @param factory_name [String] The factory name.
290
+ # @param data_flow_name [String] The data flow name.
291
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
292
+ # will be added to the HTTP request.
293
+ #
294
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
295
+ #
296
+ def delete_with_http_info(resource_group_name, factory_name, data_flow_name, custom_headers:nil)
297
+ delete_async(resource_group_name, factory_name, data_flow_name, custom_headers:custom_headers).value!
298
+ end
299
+
300
+ #
301
+ # Deletes a data flow.
302
+ #
303
+ # @param resource_group_name [String] The resource group name.
304
+ # @param factory_name [String] The factory name.
305
+ # @param data_flow_name [String] The data flow name.
306
+ # @param [Hash{String => String}] A hash of custom headers that will be added
307
+ # to the HTTP request.
308
+ #
309
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
310
+ #
311
+ def delete_async(resource_group_name, factory_name, data_flow_name, custom_headers:nil)
312
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
313
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
314
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
315
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
316
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
317
+ fail ArgumentError, 'factory_name is nil' if factory_name.nil?
318
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MaxLength': '63'" if !factory_name.nil? && factory_name.length > 63
319
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MinLength': '3'" if !factory_name.nil? && factory_name.length < 3
320
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'" if !factory_name.nil? && factory_name.match(Regexp.new('^^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$$')).nil?
321
+ fail ArgumentError, 'data_flow_name is nil' if data_flow_name.nil?
322
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'MaxLength': '260'" if !data_flow_name.nil? && data_flow_name.length > 260
323
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'MinLength': '1'" if !data_flow_name.nil? && data_flow_name.length < 1
324
+ fail ArgumentError, "'data_flow_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$'" if !data_flow_name.nil? && data_flow_name.match(Regexp.new('^^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$$')).nil?
325
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
326
+
327
+
328
+ request_headers = {}
329
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
330
+
331
+ # Set Headers
332
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
333
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
334
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}'
335
+
336
+ request_url = @base_url || @client.base_url
337
+
338
+ options = {
339
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
340
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'factoryName' => factory_name,'dataFlowName' => data_flow_name},
341
+ query_params: {'api-version' => @client.api_version},
342
+ headers: request_headers.merge(custom_headers || {}),
343
+ base_url: request_url
344
+ }
345
+ promise = @client.make_request_async(:delete, path_template, options)
346
+
347
+ promise = promise.then do |result|
348
+ http_response = result.response
349
+ status_code = http_response.status
350
+ response_content = http_response.body
351
+ unless status_code == 200 || status_code == 204
352
+ error_model = JSON.load(response_content)
353
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
354
+ end
355
+
356
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
357
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
358
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
359
+
360
+ result
361
+ end
362
+
363
+ promise.execute
364
+ end
365
+
366
+ #
367
+ # Lists data flows.
368
+ #
369
+ # @param resource_group_name [String] The resource group name.
370
+ # @param factory_name [String] The factory name.
371
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
372
+ # will be added to the HTTP request.
373
+ #
374
+ # @return [Array<DataFlowResource>] operation results.
375
+ #
376
+ def list_by_factory(resource_group_name, factory_name, custom_headers:nil)
377
+ first_page = list_by_factory_as_lazy(resource_group_name, factory_name, custom_headers:custom_headers)
378
+ first_page.get_all_items
379
+ end
380
+
381
+ #
382
+ # Lists data flows.
383
+ #
384
+ # @param resource_group_name [String] The resource group name.
385
+ # @param factory_name [String] The factory name.
386
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
387
+ # will be added to the HTTP request.
388
+ #
389
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
390
+ #
391
+ def list_by_factory_with_http_info(resource_group_name, factory_name, custom_headers:nil)
392
+ list_by_factory_async(resource_group_name, factory_name, custom_headers:custom_headers).value!
393
+ end
394
+
395
+ #
396
+ # Lists data flows.
397
+ #
398
+ # @param resource_group_name [String] The resource group name.
399
+ # @param factory_name [String] The factory name.
400
+ # @param [Hash{String => String}] A hash of custom headers that will be added
401
+ # to the HTTP request.
402
+ #
403
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
404
+ #
405
+ def list_by_factory_async(resource_group_name, factory_name, custom_headers:nil)
406
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
407
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
408
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
409
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
410
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
411
+ fail ArgumentError, 'factory_name is nil' if factory_name.nil?
412
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MaxLength': '63'" if !factory_name.nil? && factory_name.length > 63
413
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MinLength': '3'" if !factory_name.nil? && factory_name.length < 3
414
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$'" if !factory_name.nil? && factory_name.match(Regexp.new('^^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$$')).nil?
415
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
416
+
417
+
418
+ request_headers = {}
419
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
420
+
421
+ # Set Headers
422
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
423
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
424
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows'
425
+
426
+ request_url = @base_url || @client.base_url
427
+
428
+ options = {
429
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
430
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'factoryName' => factory_name},
431
+ query_params: {'api-version' => @client.api_version},
432
+ headers: request_headers.merge(custom_headers || {}),
433
+ base_url: request_url
434
+ }
435
+ promise = @client.make_request_async(:get, path_template, options)
436
+
437
+ promise = promise.then do |result|
438
+ http_response = result.response
439
+ status_code = http_response.status
440
+ response_content = http_response.body
441
+ unless status_code == 200
442
+ error_model = JSON.load(response_content)
443
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
444
+ end
445
+
446
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
447
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
448
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
449
+ # Deserialize Response
450
+ if status_code == 200
451
+ begin
452
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
453
+ result_mapper = Azure::DataFactory::Mgmt::V2018_06_01::Models::DataFlowListResponse.mapper()
454
+ result.body = @client.deserialize(result_mapper, parsed_response)
455
+ rescue Exception => e
456
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
457
+ end
458
+ end
459
+
460
+ result
461
+ end
462
+
463
+ promise.execute
464
+ end
465
+
466
+ #
467
+ # Lists data flows.
468
+ #
469
+ # @param next_page_link [String] The NextLink from the previous successful call
470
+ # to List operation.
471
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
472
+ # will be added to the HTTP request.
473
+ #
474
+ # @return [DataFlowListResponse] operation results.
475
+ #
476
+ def list_by_factory_next(next_page_link, custom_headers:nil)
477
+ response = list_by_factory_next_async(next_page_link, custom_headers:custom_headers).value!
478
+ response.body unless response.nil?
479
+ end
480
+
481
+ #
482
+ # Lists data flows.
483
+ #
484
+ # @param next_page_link [String] The NextLink from the previous successful call
485
+ # to List operation.
486
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
487
+ # will be added to the HTTP request.
488
+ #
489
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
490
+ #
491
+ def list_by_factory_next_with_http_info(next_page_link, custom_headers:nil)
492
+ list_by_factory_next_async(next_page_link, custom_headers:custom_headers).value!
493
+ end
494
+
495
+ #
496
+ # Lists data flows.
497
+ #
498
+ # @param next_page_link [String] The NextLink from the previous successful call
499
+ # to List operation.
500
+ # @param [Hash{String => String}] A hash of custom headers that will be added
501
+ # to the HTTP request.
502
+ #
503
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
504
+ #
505
+ def list_by_factory_next_async(next_page_link, custom_headers:nil)
506
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
507
+
508
+
509
+ request_headers = {}
510
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
511
+
512
+ # Set Headers
513
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
514
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
515
+ path_template = '{nextLink}'
516
+
517
+ request_url = @base_url || @client.base_url
518
+
519
+ options = {
520
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
521
+ skip_encoding_path_params: {'nextLink' => next_page_link},
522
+ headers: request_headers.merge(custom_headers || {}),
523
+ base_url: request_url
524
+ }
525
+ promise = @client.make_request_async(:get, path_template, options)
526
+
527
+ promise = promise.then do |result|
528
+ http_response = result.response
529
+ status_code = http_response.status
530
+ response_content = http_response.body
531
+ unless status_code == 200
532
+ error_model = JSON.load(response_content)
533
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
534
+ end
535
+
536
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
537
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
538
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
539
+ # Deserialize Response
540
+ if status_code == 200
541
+ begin
542
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
543
+ result_mapper = Azure::DataFactory::Mgmt::V2018_06_01::Models::DataFlowListResponse.mapper()
544
+ result.body = @client.deserialize(result_mapper, parsed_response)
545
+ rescue Exception => e
546
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
547
+ end
548
+ end
549
+
550
+ result
551
+ end
552
+
553
+ promise.execute
554
+ end
555
+
556
+ #
557
+ # Lists data flows.
558
+ #
559
+ # @param resource_group_name [String] The resource group name.
560
+ # @param factory_name [String] The factory name.
561
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
562
+ # will be added to the HTTP request.
563
+ #
564
+ # @return [DataFlowListResponse] which provide lazy access to pages of the
565
+ # response.
566
+ #
567
+ def list_by_factory_as_lazy(resource_group_name, factory_name, custom_headers:nil)
568
+ response = list_by_factory_async(resource_group_name, factory_name, custom_headers:custom_headers).value!
569
+ unless response.nil?
570
+ page = response.body
571
+ page.next_method = Proc.new do |next_page_link|
572
+ list_by_factory_next_async(next_page_link, custom_headers:custom_headers)
573
+ end
574
+ page
575
+ end
576
+ end
577
+
578
+ end
579
+ end