files.com 1.1.682 → 1.1.684

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,6 +64,16 @@ module Files
64
64
  @attributes[:retry_of_run_id]
65
65
  end
66
66
 
67
+ # int64 - ID of the run whose persisted node outputs this run reused.
68
+ def rerun_of_run_id
69
+ @attributes[:rerun_of_run_id]
70
+ end
71
+
72
+ # string - Node at which this run resumed execution.
73
+ def rerun_from_node_id
74
+ @attributes[:rerun_from_node_id]
75
+ end
76
+
67
77
  # double - Automation run runtime.
68
78
  def runtime
69
79
  @attributes[:runtime]
@@ -94,6 +104,11 @@ module Files
94
104
  @attributes[:node_states]
95
105
  end
96
106
 
107
+ # array(object) - Execution status, timing, and bounded output summaries for each node. For performance reasons, this is not provided when listing Automation runs.
108
+ def execution_nodes
109
+ @attributes[:execution_nodes]
110
+ end
111
+
97
112
  # string - Link to the run journal artifact.
98
113
  def journal_url
99
114
  @attributes[:journal_url]
@@ -115,6 +130,22 @@ module Files
115
130
  Api.send_request("/automation_runs/#{@attributes[:id]}/cancel", :post, params, @options)
116
131
  end
117
132
 
133
+ # Re-run Automation from Node
134
+ #
135
+ # Parameters:
136
+ # node_id (required) - string - Node ID at which execution should resume.
137
+ def rerun(params = {})
138
+ params ||= {}
139
+ params[:id] = @attributes[:id]
140
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
141
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
142
+ raise InvalidParameterError.new("Bad parameter: node_id must be an String") if params[:node_id] and !params[:node_id].is_a?(String)
143
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
144
+ raise MissingParameterError.new("Parameter missing: node_id") unless params[:node_id]
145
+
146
+ Api.send_request("/automation_runs/#{@attributes[:id]}/rerun", :post, params, @options)
147
+ end
148
+
118
149
  # Parameters:
119
150
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
120
151
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
@@ -156,6 +187,21 @@ module Files
156
187
  find(id, params, options)
157
188
  end
158
189
 
190
+ # Parameters:
191
+ # id (required) - int64 - Automation Run ID.
192
+ # node_id (required) - string - Node ID from the pinned Automation definition.
193
+ def self.find_node(id, params = {}, options = {})
194
+ params ||= {}
195
+ params[:id] = id
196
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
197
+ raise InvalidParameterError.new("Bad parameter: node_id must be an String") if params[:node_id] and !params[:node_id].is_a?(String)
198
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
199
+ raise MissingParameterError.new("Parameter missing: node_id") unless params[:node_id]
200
+
201
+ response, options = Api.send_request("/automation_runs/#{params[:id]}/node", :get, params, options)
202
+ AutomationExecutionNode.new(response.data, options)
203
+ end
204
+
159
205
  # Cancel Automation Run
160
206
  def self.cancel(id, params = {}, options = {})
161
207
  params ||= {}
@@ -166,5 +212,21 @@ module Files
166
212
  response, options = Api.send_request("/automation_runs/#{params[:id]}/cancel", :post, params, options)
167
213
  AutomationRun.new(response.data, options)
168
214
  end
215
+
216
+ # Re-run Automation from Node
217
+ #
218
+ # Parameters:
219
+ # node_id (required) - string - Node ID at which execution should resume.
220
+ def self.rerun(id, params = {}, options = {})
221
+ params ||= {}
222
+ params[:id] = id
223
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
224
+ raise InvalidParameterError.new("Bad parameter: node_id must be an String") if params[:node_id] and !params[:node_id].is_a?(String)
225
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
226
+ raise MissingParameterError.new("Parameter missing: node_id") unless params[:node_id]
227
+
228
+ response, options = Api.send_request("/automation_runs/#{params[:id]}/rerun", :post, params, options)
229
+ AutomationRun.new(response.data, options)
230
+ end
169
231
  end
170
232
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.682"
4
+ VERSION = "1.1.684"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -50,6 +50,7 @@ require "files.com/models/as2_station"
50
50
  require "files.com/models/auto"
51
51
  require "files.com/models/automation"
52
52
  require "files.com/models/automation_authoring_schema"
53
+ require "files.com/models/automation_execution_node"
53
54
  require "files.com/models/automation_log"
54
55
  require "files.com/models/automation_run"
55
56
  require "files.com/models/bandwidth_snapshot"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.682
4
+ version: 1.1.684
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-14 00:00:00.000000000 Z
11
+ date: 2026-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -188,6 +188,7 @@ files:
188
188
  - docs/auto.md
189
189
  - docs/automation.md
190
190
  - docs/automation_authoring_schema.md
191
+ - docs/automation_execution_node.md
191
192
  - docs/automation_log.md
192
193
  - docs/automation_run.md
193
194
  - docs/bandwidth_snapshot.md
@@ -336,6 +337,7 @@ files:
336
337
  - lib/files.com/models/auto.rb
337
338
  - lib/files.com/models/automation.rb
338
339
  - lib/files.com/models/automation_authoring_schema.rb
340
+ - lib/files.com/models/automation_execution_node.rb
339
341
  - lib/files.com/models/automation_log.rb
340
342
  - lib/files.com/models/automation_run.rb
341
343
  - lib/files.com/models/bandwidth_snapshot.rb