files.com 1.0.219 → 1.0.220

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34129df0787d31e5519914ab6b679d02efe80727d62b339af58befe1145283ed
4
- data.tar.gz: 2bb37311852d4e079cbc7ba4c7c61be93b65a1b5a095c25aebf00ef535612494
3
+ metadata.gz: 98ce510868addea03411d75ab91abcc76df99f57437985ceb870703ff35f3f17
4
+ data.tar.gz: 6fbb076b3b27630e0b18c41f60a21b42c14536cb232c9c0c3517891d6313fa1c
5
5
  SHA512:
6
- metadata.gz: 49a2b088fc730db0fa8ae70c62a5beb45a31699b3ad32b1d9685d4b68b97e0194b8b3c20e208a487b6e6eada7b86e61cb1a748eb0c367801844119478534a102
7
- data.tar.gz: 0a929278c4c5a64af8dea48f6d75885bf22d3fcb2177e7c1156b9f3db74cad2af1406bd04e25db6195c34eb2161e94e04ca1dbc5484253e0366728d673dd41c9
6
+ metadata.gz: 20dd906b5c2755202dbb54d249734a1c1106319f54d1b6861cb260a0603e33199faf4018127e81c34b52206e8292c7a5953cdc7f5e394767461a1cad34c010f6
7
+ data.tar.gz: 186f3d9313efff7b916af1039cc3c372d0f3a8cfc800a91e9da483e2205b4ce62235149415f414d206b548bed887d2fb2b3d77b155b3a7d478001ceeaa89adf4
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.219
1
+ 1.0.220
@@ -4,13 +4,19 @@
4
4
 
5
5
  ```
6
6
  {
7
+ "id": 1,
7
8
  "automation_id": 1,
9
+ "completed_at": "2000-01-01T01:00:00Z",
10
+ "created_at": "2000-01-01T01:00:00Z",
8
11
  "status": "success",
9
12
  "status_messages_url": "https://www.example.com/log_file.txt"
10
13
  }
11
14
  ```
12
15
 
16
+ * `id` (int64): ID.
13
17
  * `automation_id` (int64): ID of the associated Automation.
18
+ * `completed_at` (date-time): Automation run completion/failure date/time.
19
+ * `created_at` (date-time): Automation run start date/time.
14
20
  * `status` (string): The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
15
21
  * `status_messages_url` (string): Link to status messages log file.
16
22
 
@@ -40,3 +46,16 @@ Files::AutomationRun.list(
40
46
  * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `status`.
41
47
  * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `status`.
42
48
  * `automation_id` (int64): Required - ID of the associated Automation.
49
+
50
+
51
+ ---
52
+
53
+ ## Show Automation Run
54
+
55
+ ```
56
+ Files::AutomationRun.find(id)
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ * `id` (int64): Required - Automation Run ID.
@@ -9,11 +9,26 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
+ # int64 - ID.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
12
17
  # int64 - ID of the associated Automation.
13
18
  def automation_id
14
19
  @attributes[:automation_id]
15
20
  end
16
21
 
22
+ # date-time - Automation run completion/failure date/time.
23
+ def completed_at
24
+ @attributes[:completed_at]
25
+ end
26
+
27
+ # date-time - Automation run start date/time.
28
+ def created_at
29
+ @attributes[:created_at]
30
+ end
31
+
17
32
  # string - The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
18
33
  def status
19
34
  @attributes[:status]
@@ -58,5 +73,21 @@ module Files
58
73
  def self.all(params = {}, options = {})
59
74
  list(params, options)
60
75
  end
76
+
77
+ # Parameters:
78
+ # id (required) - int64 - Automation Run ID.
79
+ def self.find(id, params = {}, options = {})
80
+ params ||= {}
81
+ params[:id] = id
82
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
83
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
84
+
85
+ response, options = Api.send_request("/automation_runs/#{params[:id]}", :get, params, options)
86
+ AutomationRun.new(response.data, options)
87
+ end
88
+
89
+ def self.get(id, params = {}, options = {})
90
+ find(id, params, options)
91
+ end
61
92
  end
62
93
  end
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.0.219
4
+ version: 1.0.220
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2021-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable