files.com 1.0.216 → 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: 84a82c25b2862f5c1c9c32ea3d0ac4e3865b0a5cd8d39cf6474980cb16fd6934
4
- data.tar.gz: 50b1bd508a5e4c8f16f6a97c67abe0157cf75ab2bf1ba6e86a8a371057db71d3
3
+ metadata.gz: 98ce510868addea03411d75ab91abcc76df99f57437985ceb870703ff35f3f17
4
+ data.tar.gz: 6fbb076b3b27630e0b18c41f60a21b42c14536cb232c9c0c3517891d6313fa1c
5
5
  SHA512:
6
- metadata.gz: 1a9accfbbe5acde823d3ca00833c5263702c60f66e7b99c48cdd87d6c9c14ba06679204fd76998097c13363f57799e685cf42840c20cc59a52ad157821cb7cd1
7
- data.tar.gz: ec66f0e2efa44fb3934d4ce1b1efadff43c7e5a3cf68b11c2b1778a2023e783152da18e6e297f99b9d6d81e726dc6042c69a770610e0032286dad84c57edd15d
6
+ metadata.gz: 20dd906b5c2755202dbb54d249734a1c1106319f54d1b6861cb260a0603e33199faf4018127e81c34b52206e8292c7a5953cdc7f5e394767461a1cad34c010f6
7
+ data.tar.gz: 186f3d9313efff7b916af1039cc3c372d0f3a8cfc800a91e9da483e2205b4ce62235149415f414d206b548bed887d2fb2b3d77b155b3a7d478001ceeaa89adf4
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.216
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.
@@ -45,7 +45,7 @@ Files::ExternalEvent.list(
45
45
 
46
46
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
47
47
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
48
- * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
48
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
49
49
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
50
50
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
51
51
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
data/docs/site.md CHANGED
@@ -44,6 +44,7 @@
44
44
  "disable_password_reset": true,
45
45
  "domain": "my-custom-domain.com",
46
46
  "domain_hsts_header": true,
47
+ "domain_letsencrypt_chain": "",
47
48
  "email": "john.doe@files.com",
48
49
  "ftp_enabled": true,
49
50
  "reply_to_email": "jane.doe@files.com",
@@ -258,6 +259,7 @@
258
259
  * `disable_password_reset` (boolean): Is password reset disabled?
259
260
  * `domain` (string): Custom domain
260
261
  * `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
262
+ * `domain_letsencrypt_chain` (string): Letsencrypt chain to use when registering SSL Certificate for domain.
261
263
  * `email` (email): Main email for this site
262
264
  * `ftp_enabled` (boolean): Is FTP enabled?
263
265
  * `reply_to_email` (email): Reply-to email for this site
@@ -479,6 +481,7 @@ Files::Site.update(
479
481
  * `subdomain` (string): Site subdomain
480
482
  * `domain` (string): Custom domain
481
483
  * `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
484
+ * `domain_letsencrypt_chain` (string): Letsencrypt chain to use when registering SSL Certificate for domain.
482
485
  * `email` (string): Main email for this site
483
486
  * `reply_to_email` (string): Reply-to email for this site
484
487
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
@@ -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
@@ -116,7 +116,7 @@ module Files
116
116
  # Parameters:
117
117
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
118
118
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
119
- # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
119
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
120
120
  # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
121
121
  # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
122
122
  # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
@@ -155,7 +155,7 @@ module Files
155
155
  etags ||= []
156
156
  bytes_written = 0
157
157
  loop do
158
- begin_upload = FileAction.begin_upload(path, { ref: upload&.ref, part: (upload&.part_number || 0) + 1 }, options)
158
+ begin_upload = File.begin_upload(path, { ref: upload&.ref, part: (upload&.part_number || 0) + 1 }, options)
159
159
  upload = begin_upload.is_a?(Enumerable) ? begin_upload.first : begin_upload
160
160
  buf = io.read(upload.partsize) || ""
161
161
  bytes_written += buf.length
@@ -194,6 +194,11 @@ module Files
194
194
  @attributes[:domain_hsts_header]
195
195
  end
196
196
 
197
+ # string - Letsencrypt chain to use when registering SSL Certificate for domain.
198
+ def domain_letsencrypt_chain
199
+ @attributes[:domain_letsencrypt_chain]
200
+ end
201
+
197
202
  # email - Main email for this site
198
203
  def email
199
204
  @attributes[:email]
@@ -649,6 +654,7 @@ module Files
649
654
  # subdomain - string - Site subdomain
650
655
  # domain - string - Custom domain
651
656
  # domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
657
+ # domain_letsencrypt_chain - string - Letsencrypt chain to use when registering SSL Certificate for domain.
652
658
  # email - string - Main email for this site
653
659
  # reply_to_email - string - Reply-to email for this site
654
660
  # allow_bundle_names - boolean - Are manual Bundle names allowed?
@@ -764,6 +770,7 @@ module Files
764
770
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
765
771
  raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params.dig(:subdomain) and !params.dig(:subdomain).is_a?(String)
766
772
  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
773
+ raise InvalidParameterError.new("Bad parameter: domain_letsencrypt_chain must be an String") if params.dig(:domain_letsencrypt_chain) and !params.dig(:domain_letsencrypt_chain).is_a?(String)
767
774
  raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
768
775
  raise InvalidParameterError.new("Bad parameter: reply_to_email must be an String") if params.dig(:reply_to_email) and !params.dig(:reply_to_email).is_a?(String)
769
776
  raise InvalidParameterError.new("Bad parameter: bundle_expiration must be an Integer") if params.dig(:bundle_expiration) and !params.dig(:bundle_expiration).is_a?(Integer)
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.216
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-09-28 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