azure_mgmt_data_factory 0.18.3 → 0.18.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) 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 +129 -115
  4. data/lib/2018-06-01/generated/azure_mgmt_data_factory/data_factory_management_client.rb +9 -1
  5. data/lib/2018-06-01/generated/azure_mgmt_data_factory/exposure_control.rb +114 -0
  6. data/lib/2018-06-01/generated/azure_mgmt_data_factory/managed_private_endpoints.rb +611 -0
  7. data/lib/2018-06-01/generated/azure_mgmt_data_factory/managed_virtual_networks.rb +486 -0
  8. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/az_power_shell_setup.rb +61 -0
  9. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_fslinked_service.rb +14 -0
  10. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_blob_storage_linked_service.rb +14 -0
  11. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_data_lake_store_linked_service.rb +14 -0
  12. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_databricks_linked_service.rb +12 -0
  13. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_file_storage_linked_service.rb +12 -0
  14. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_file_storage_write_settings.rb +81 -0
  15. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_database_linked_service.rb +14 -0
  16. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_dwlinked_service.rb +14 -0
  17. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/azure_sql_milinked_service.rb +14 -0
  18. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/connection_state_properties.rb +71 -0
  19. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/copy_sink.rb +1 -0
  20. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/cosmos_db_sql_api_source.rb +12 -0
  21. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/custom_setup_base.rb +1 -0
  22. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/data_flow_staging_info.rb +3 -2
  23. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/exposure_control_batch_request.rb +56 -0
  24. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/exposure_control_batch_response.rb +56 -0
  25. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/hdfs_read_settings.rb +13 -0
  26. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/managed_private_endpoint.rb +135 -0
  27. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/managed_private_endpoint_list_response.rb +100 -0
  28. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/managed_private_endpoint_resource.rb +83 -0
  29. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/managed_virtual_network.rb +78 -0
  30. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/managed_virtual_network_list_response.rb +100 -0
  31. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/managed_virtual_network_resource.rb +83 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/odata_linked_service.rb +14 -0
  33. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/quick_books_linked_service.rb +19 -6
  34. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/rest_service_linked_service.rb +14 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/rest_sink.rb +180 -0
  36. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/salesforce_marketing_cloud_linked_service.rb +14 -1
  37. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_open_hub_linked_service.rb +51 -3
  38. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_open_hub_source.rb +26 -0
  39. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/sap_table_source.rb +13 -0
  40. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/square_linked_service.rb +15 -3
  41. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/store_write_settings.rb +1 -0
  42. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/web_hook_activity.rb +3 -3
  43. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/xero_linked_service.rb +13 -1
  44. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/xml_read_settings.rb +24 -0
  45. data/lib/2018-06-01/generated/azure_mgmt_data_factory/models/zoho_linked_service.rb +13 -1
  46. data/lib/2018-06-01/generated/azure_mgmt_data_factory/trigger_runs.rb +100 -0
  47. data/lib/profiles/latest/modules/datafactory_profile_module.rb +431 -379
  48. data/lib/version.rb +1 -1
  49. metadata +16 -2
@@ -19,6 +19,11 @@ module Azure::DataFactory::Mgmt::V2018_06_01
19
19
 
20
20
  attr_accessor :type
21
21
 
22
+ # @return Properties used to connect to Salesforce Marketing Cloud. It is
23
+ # mutually exclusive with any other properties in the linked service.
24
+ # Type: object.
25
+ attr_accessor :connection_properties
26
+
22
27
  # @return The client ID associated with the Salesforce Marketing Cloud
23
28
  # application. Type: string (or Expression with resultType string).
24
29
  attr_accessor :client_id
@@ -136,9 +141,17 @@ module Azure::DataFactory::Mgmt::V2018_06_01
136
141
  name: 'String'
137
142
  }
138
143
  },
144
+ connection_properties: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'typeProperties.connectionProperties',
148
+ type: {
149
+ name: 'Object'
150
+ }
151
+ },
139
152
  client_id: {
140
153
  client_side_validation: true,
141
- required: true,
154
+ required: false,
142
155
  serialized_name: 'typeProperties.clientId',
143
156
  type: {
144
157
  name: 'Object'
@@ -39,6 +39,10 @@ module Azure::DataFactory::Mgmt::V2018_06_01
39
39
  # resultType string).
40
40
  attr_accessor :language
41
41
 
42
+ # @return SystemID of the SAP system where the table is located. Type:
43
+ # string (or Expression with resultType string).
44
+ attr_accessor :system_id
45
+
42
46
  # @return Username to access the SAP BW server where the open hub
43
47
  # destination is located. Type: string (or Expression with resultType
44
48
  # string).
@@ -48,6 +52,18 @@ module Azure::DataFactory::Mgmt::V2018_06_01
48
52
  # open hub destination is located.
49
53
  attr_accessor :password
50
54
 
55
+ # @return The hostname of the SAP Message Server. Type: string (or
56
+ # Expression with resultType string).
57
+ attr_accessor :message_server
58
+
59
+ # @return The service name or port number of the Message Server. Type:
60
+ # string (or Expression with resultType string).
61
+ attr_accessor :message_server_service
62
+
63
+ # @return The Logon Group for the SAP System. Type: string (or Expression
64
+ # with resultType string).
65
+ attr_accessor :logon_group
66
+
51
67
  # @return The encrypted credential used for authentication. Credentials
52
68
  # are encrypted using the integration runtime credential manager. Type:
53
69
  # string (or Expression with resultType string).
@@ -142,7 +158,7 @@ module Azure::DataFactory::Mgmt::V2018_06_01
142
158
  },
143
159
  server: {
144
160
  client_side_validation: true,
145
- required: true,
161
+ required: false,
146
162
  serialized_name: 'typeProperties.server',
147
163
  type: {
148
164
  name: 'Object'
@@ -150,7 +166,7 @@ module Azure::DataFactory::Mgmt::V2018_06_01
150
166
  },
151
167
  system_number: {
152
168
  client_side_validation: true,
153
- required: true,
169
+ required: false,
154
170
  serialized_name: 'typeProperties.systemNumber',
155
171
  type: {
156
172
  name: 'Object'
@@ -158,7 +174,7 @@ module Azure::DataFactory::Mgmt::V2018_06_01
158
174
  },
159
175
  client_id: {
160
176
  client_side_validation: true,
161
- required: true,
177
+ required: false,
162
178
  serialized_name: 'typeProperties.clientId',
163
179
  type: {
164
180
  name: 'Object'
@@ -172,6 +188,14 @@ module Azure::DataFactory::Mgmt::V2018_06_01
172
188
  name: 'Object'
173
189
  }
174
190
  },
191
+ system_id: {
192
+ client_side_validation: true,
193
+ required: false,
194
+ serialized_name: 'typeProperties.systemId',
195
+ type: {
196
+ name: 'Object'
197
+ }
198
+ },
175
199
  user_name: {
176
200
  client_side_validation: true,
177
201
  required: false,
@@ -191,6 +215,30 @@ module Azure::DataFactory::Mgmt::V2018_06_01
191
215
  class_name: 'SecretBase'
192
216
  }
193
217
  },
218
+ message_server: {
219
+ client_side_validation: true,
220
+ required: false,
221
+ serialized_name: 'typeProperties.messageServer',
222
+ type: {
223
+ name: 'Object'
224
+ }
225
+ },
226
+ message_server_service: {
227
+ client_side_validation: true,
228
+ required: false,
229
+ serialized_name: 'typeProperties.messageServerService',
230
+ type: {
231
+ name: 'Object'
232
+ }
233
+ },
234
+ logon_group: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ serialized_name: 'typeProperties.logonGroup',
238
+ type: {
239
+ name: 'Object'
240
+ }
241
+ },
194
242
  encrypted_credential: {
195
243
  client_side_validation: true,
196
244
  required: false,
@@ -30,6 +30,16 @@ module Azure::DataFactory::Mgmt::V2018_06_01
30
30
  # resultType integer ).
31
31
  attr_accessor :base_request_id
32
32
 
33
+ # @return Specifies the custom RFC function module that will be used to
34
+ # read data from SAP Table. Type: string (or Expression with resultType
35
+ # string).
36
+ attr_accessor :custom_rfc_read_table_function_module
37
+
38
+ # @return The single character that will be used as delimiter passed to
39
+ # SAP RFC as well as splitting the output data retrieved. Type: string
40
+ # (or Expression with resultType string).
41
+ attr_accessor :sap_data_column_delimiter
42
+
33
43
 
34
44
  #
35
45
  # Mapper for SapOpenHubSource class as Ruby Hash.
@@ -131,6 +141,22 @@ module Azure::DataFactory::Mgmt::V2018_06_01
131
141
  type: {
132
142
  name: 'Object'
133
143
  }
144
+ },
145
+ custom_rfc_read_table_function_module: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'customRfcReadTableFunctionModule',
149
+ type: {
150
+ name: 'Object'
151
+ }
152
+ },
153
+ sap_data_column_delimiter: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'sapDataColumnDelimiter',
157
+ type: {
158
+ name: 'Object'
159
+ }
134
160
  }
135
161
  }
136
162
  }
@@ -47,6 +47,11 @@ module Azure::DataFactory::Mgmt::V2018_06_01
47
47
  # string).
48
48
  attr_accessor :custom_rfc_read_table_function_module
49
49
 
50
+ # @return The single character that will be used as delimiter passed to
51
+ # SAP RFC as well as splitting the output data retrieved. Type: string
52
+ # (or Expression with resultType string).
53
+ attr_accessor :sap_data_column_delimiter
54
+
50
55
  # @return [SapTablePartitionOption] The partition mechanism that will be
51
56
  # used for SAP table read in parallel. Possible values include: 'None',
52
57
  # 'PartitionOnInt', 'PartitionOnCalendarYear',
@@ -192,6 +197,14 @@ module Azure::DataFactory::Mgmt::V2018_06_01
192
197
  name: 'Object'
193
198
  }
194
199
  },
200
+ sap_data_column_delimiter: {
201
+ client_side_validation: true,
202
+ required: false,
203
+ serialized_name: 'sapDataColumnDelimiter',
204
+ type: {
205
+ name: 'Object'
206
+ }
207
+ },
195
208
  partition_option: {
196
209
  client_side_validation: true,
197
210
  required: false,
@@ -19,6 +19,10 @@ module Azure::DataFactory::Mgmt::V2018_06_01
19
19
 
20
20
  attr_accessor :type
21
21
 
22
+ # @return Properties used to connect to Square. It is mutually exclusive
23
+ # with any other properties in the linked service. Type: object.
24
+ attr_accessor :connection_properties
25
+
22
26
  # @return The URL of the Square instance. (i.e. mystore.mysquare.com)
23
27
  attr_accessor :host
24
28
 
@@ -138,9 +142,17 @@ module Azure::DataFactory::Mgmt::V2018_06_01
138
142
  name: 'String'
139
143
  }
140
144
  },
145
+ connection_properties: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'typeProperties.connectionProperties',
149
+ type: {
150
+ name: 'Object'
151
+ }
152
+ },
141
153
  host: {
142
154
  client_side_validation: true,
143
- required: true,
155
+ required: false,
144
156
  serialized_name: 'typeProperties.host',
145
157
  type: {
146
158
  name: 'Object'
@@ -148,7 +160,7 @@ module Azure::DataFactory::Mgmt::V2018_06_01
148
160
  },
149
161
  client_id: {
150
162
  client_side_validation: true,
151
- required: true,
163
+ required: false,
152
164
  serialized_name: 'typeProperties.clientId',
153
165
  type: {
154
166
  name: 'Object'
@@ -167,7 +179,7 @@ module Azure::DataFactory::Mgmt::V2018_06_01
167
179
  },
168
180
  redirect_uri: {
169
181
  client_side_validation: true,
170
- required: true,
182
+ required: false,
171
183
  serialized_name: 'typeProperties.redirectUri',
172
184
  type: {
173
185
  name: 'Object'
@@ -13,6 +13,7 @@ module Azure::DataFactory::Mgmt::V2018_06_01
13
13
  include MsRestAzure
14
14
 
15
15
  @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["AzureFileStorageWriteSettings"] = "AzureFileStorageWriteSettings"
16
17
  @@discriminatorMap["FileServerWriteSettings"] = "FileServerWriteSettings"
17
18
  @@discriminatorMap["AzureDataLakeStoreWriteSettings"] = "AzureDataLakeStoreWriteSettings"
18
19
  @@discriminatorMap["AzureBlobFSWriteSettings"] = "AzureBlobFSWriteSettings"
@@ -47,9 +47,9 @@ module Azure::DataFactory::Mgmt::V2018_06_01
47
47
  # calling the endpoint.
48
48
  attr_accessor :authentication
49
49
 
50
- # @return When set to true, statusCode, output and error in callback
51
- # request body will be consumed by activity. The activity can be marked
52
- # as failed by setting statusCode >= 400 in callback request. Default is
50
+ # @return When set to true, statusCode, output and error in callback
51
+ # request body will be consumed by activity. The activity can be marked
52
+ # as failed by setting statusCode >= 400 in callback request. Default is
53
53
  # false. Type: boolean (or Expression with resultType boolean).
54
54
  attr_accessor :report_status_on_call_back
55
55
 
@@ -19,6 +19,10 @@ module Azure::DataFactory::Mgmt::V2018_06_01
19
19
 
20
20
  attr_accessor :type
21
21
 
22
+ # @return Properties used to connect to Xero. It is mutually exclusive
23
+ # with any other properties in the linked service. Type: object.
24
+ attr_accessor :connection_properties
25
+
22
26
  # @return The endpoint of the Xero server. (i.e. api.xero.com)
23
27
  attr_accessor :host
24
28
 
@@ -137,9 +141,17 @@ module Azure::DataFactory::Mgmt::V2018_06_01
137
141
  name: 'String'
138
142
  }
139
143
  },
144
+ connection_properties: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'typeProperties.connectionProperties',
148
+ type: {
149
+ name: 'Object'
150
+ }
151
+ },
140
152
  host: {
141
153
  client_side_validation: true,
142
- required: true,
154
+ required: false,
143
155
  serialized_name: 'typeProperties.host',
144
156
  type: {
145
157
  name: 'Object'
@@ -27,6 +27,14 @@ module Azure::DataFactory::Mgmt::V2018_06_01
27
27
  # Expression with resultType string).
28
28
  attr_accessor :validation_mode
29
29
 
30
+ # @return Indicates whether type detection is enabled when reading the
31
+ # xml files. Type: boolean (or Expression with resultType boolean).
32
+ attr_accessor :detect_data_type
33
+
34
+ # @return Indicates whether namespace is enabled when reading the xml
35
+ # files. Type: boolean (or Expression with resultType boolean).
36
+ attr_accessor :namespaces
37
+
30
38
  # @return Namespace uri to prefix mappings to override the prefixes in
31
39
  # column names when namespace is enabled, if no prefix is defined for a
32
40
  # namespace uri, the prefix of xml element/attribute name in the xml data
@@ -90,6 +98,22 @@ module Azure::DataFactory::Mgmt::V2018_06_01
90
98
  name: 'Object'
91
99
  }
92
100
  },
101
+ detect_data_type: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'detectDataType',
105
+ type: {
106
+ name: 'Object'
107
+ }
108
+ },
109
+ namespaces: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'namespaces',
113
+ type: {
114
+ name: 'Object'
115
+ }
116
+ },
93
117
  namespace_prefixes: {
94
118
  client_side_validation: true,
95
119
  required: false,
@@ -19,6 +19,10 @@ module Azure::DataFactory::Mgmt::V2018_06_01
19
19
 
20
20
  attr_accessor :type
21
21
 
22
+ # @return Properties used to connect to Zoho. It is mutually exclusive
23
+ # with any other properties in the linked service. Type: object.
24
+ attr_accessor :connection_properties
25
+
22
26
  # @return The endpoint of the Zoho server. (i.e.
23
27
  # crm.zoho.com/crm/private)
24
28
  attr_accessor :endpoint
@@ -131,9 +135,17 @@ module Azure::DataFactory::Mgmt::V2018_06_01
131
135
  name: 'String'
132
136
  }
133
137
  },
138
+ connection_properties: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ serialized_name: 'typeProperties.connectionProperties',
142
+ type: {
143
+ name: 'Object'
144
+ }
145
+ },
134
146
  endpoint: {
135
147
  client_side_validation: true,
136
- required: true,
148
+ required: false,
137
149
  serialized_name: 'typeProperties.endpoint',
138
150
  type: {
139
151
  name: 'Object'
@@ -122,6 +122,106 @@ module Azure::DataFactory::Mgmt::V2018_06_01
122
122
  promise.execute
123
123
  end
124
124
 
125
+ #
126
+ # Cancel a single trigger instance by runId.
127
+ #
128
+ # @param resource_group_name [String] The resource group name.
129
+ # @param factory_name [String] The factory name.
130
+ # @param trigger_name [String] The trigger name.
131
+ # @param run_id [String] The pipeline run identifier.
132
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
133
+ # will be added to the HTTP request.
134
+ #
135
+ #
136
+ def cancel(resource_group_name, factory_name, trigger_name, run_id, custom_headers:nil)
137
+ response = cancel_async(resource_group_name, factory_name, trigger_name, run_id, custom_headers:custom_headers).value!
138
+ nil
139
+ end
140
+
141
+ #
142
+ # Cancel a single trigger instance by runId.
143
+ #
144
+ # @param resource_group_name [String] The resource group name.
145
+ # @param factory_name [String] The factory name.
146
+ # @param trigger_name [String] The trigger name.
147
+ # @param run_id [String] The pipeline run identifier.
148
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
+ # will be added to the HTTP request.
150
+ #
151
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
+ #
153
+ def cancel_with_http_info(resource_group_name, factory_name, trigger_name, run_id, custom_headers:nil)
154
+ cancel_async(resource_group_name, factory_name, trigger_name, run_id, custom_headers:custom_headers).value!
155
+ end
156
+
157
+ #
158
+ # Cancel a single trigger instance by runId.
159
+ #
160
+ # @param resource_group_name [String] The resource group name.
161
+ # @param factory_name [String] The factory name.
162
+ # @param trigger_name [String] The trigger name.
163
+ # @param run_id [String] The pipeline run identifier.
164
+ # @param [Hash{String => String}] A hash of custom headers that will be added
165
+ # to the HTTP request.
166
+ #
167
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
168
+ #
169
+ def cancel_async(resource_group_name, factory_name, trigger_name, run_id, custom_headers:nil)
170
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
171
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
172
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
173
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
174
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
175
+ fail ArgumentError, 'factory_name is nil' if factory_name.nil?
176
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MaxLength': '63'" if !factory_name.nil? && factory_name.length > 63
177
+ fail ArgumentError, "'factory_name' should satisfy the constraint - 'MinLength': '3'" if !factory_name.nil? && factory_name.length < 3
178
+ 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?
179
+ fail ArgumentError, 'trigger_name is nil' if trigger_name.nil?
180
+ fail ArgumentError, "'trigger_name' should satisfy the constraint - 'MaxLength': '260'" if !trigger_name.nil? && trigger_name.length > 260
181
+ fail ArgumentError, "'trigger_name' should satisfy the constraint - 'MinLength': '1'" if !trigger_name.nil? && trigger_name.length < 1
182
+ fail ArgumentError, "'trigger_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$'" if !trigger_name.nil? && trigger_name.match(Regexp.new('^^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$$')).nil?
183
+ fail ArgumentError, 'run_id is nil' if run_id.nil?
184
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
185
+
186
+
187
+ request_headers = {}
188
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
189
+
190
+ # Set Headers
191
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
192
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
193
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel'
194
+
195
+ request_url = @base_url || @client.base_url
196
+
197
+ options = {
198
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
199
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'factoryName' => factory_name,'triggerName' => trigger_name,'runId' => run_id},
200
+ query_params: {'api-version' => @client.api_version},
201
+ headers: request_headers.merge(custom_headers || {}),
202
+ base_url: request_url
203
+ }
204
+ promise = @client.make_request_async(:post, path_template, options)
205
+
206
+ promise = promise.then do |result|
207
+ http_response = result.response
208
+ status_code = http_response.status
209
+ response_content = http_response.body
210
+ unless status_code == 200
211
+ error_model = JSON.load(response_content)
212
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
213
+ end
214
+
215
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
216
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
217
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
218
+
219
+ result
220
+ end
221
+
222
+ promise.execute
223
+ end
224
+
125
225
  #
126
226
  # Query trigger runs.
127
227
  #