files.com 1.0.215 → 1.0.219

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ed7c097919b49afe6a6bb05f1af86859e52b095ba60ddf6789cbf9551026114
4
- data.tar.gz: 8c8871067fb1b37614a97bc4e575be78ac83881aee152f20f082afb59351de47
3
+ metadata.gz: 34129df0787d31e5519914ab6b679d02efe80727d62b339af58befe1145283ed
4
+ data.tar.gz: 2bb37311852d4e079cbc7ba4c7c61be93b65a1b5a095c25aebf00ef535612494
5
5
  SHA512:
6
- metadata.gz: 8389dce7eb366abf5825817f1c2d752f93d059277f037274c3b0f7fb9718c35f5ccfb9a9da7f0ab6a935273cbb3582382efc599dc0ced11e65a489b81e5782a8
7
- data.tar.gz: ddba1e6121b8353e1d10d291a269e5cde4b076d2227372fc0ac2981d70f82fbaacaf62777251cfa62a383e007f8546f3a0ded4e58b4ed7282a82ce02c2a982a7
6
+ metadata.gz: 49a2b088fc730db0fa8ae70c62a5beb45a31699b3ad32b1d9685d4b68b97e0194b8b3c20e208a487b6e6eada7b86e61cb1a748eb0c367801844119478534a102
7
+ data.tar.gz: 0a929278c4c5a64af8dea48f6d75885bf22d3fcb2177e7c1156b9f3db74cad2af1406bd04e25db6195c34eb2161e94e04ca1dbc5484253e0366728d673dd41c9
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.215
1
+ 1.0.219
@@ -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
@@ -43,6 +43,8 @@
43
43
  "disable_notifications": true,
44
44
  "disable_password_reset": true,
45
45
  "domain": "my-custom-domain.com",
46
+ "domain_hsts_header": true,
47
+ "domain_letsencrypt_chain": "",
46
48
  "email": "john.doe@files.com",
47
49
  "ftp_enabled": true,
48
50
  "reply_to_email": "jane.doe@files.com",
@@ -256,6 +258,8 @@
256
258
  * `disable_notifications` (boolean): Are notifications disabled?
257
259
  * `disable_password_reset` (boolean): Is password reset disabled?
258
260
  * `domain` (string): Custom domain
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.
259
263
  * `email` (email): Main email for this site
260
264
  * `ftp_enabled` (boolean): Is FTP enabled?
261
265
  * `reply_to_email` (email): Reply-to email for this site
@@ -373,6 +377,7 @@ Files::Site.update(
373
377
  name: "My Site",
374
378
  subdomain: "mysite",
375
379
  domain: "my-custom-domain.com",
380
+ domain_hsts_header: true,
376
381
  email: "john.doe@files.com",
377
382
  reply_to_email: "jane.doe@files.com",
378
383
  allow_bundle_names: true,
@@ -475,6 +480,8 @@ Files::Site.update(
475
480
  * `name` (string): Site name
476
481
  * `subdomain` (string): Site subdomain
477
482
  * `domain` (string): Custom domain
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.
478
485
  * `email` (string): Main email for this site
479
486
  * `reply_to_email` (string): Reply-to email for this site
480
487
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
@@ -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
@@ -189,6 +189,16 @@ module Files
189
189
  @attributes[:domain]
190
190
  end
191
191
 
192
+ # boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
193
+ def domain_hsts_header
194
+ @attributes[:domain_hsts_header]
195
+ end
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
+
192
202
  # email - Main email for this site
193
203
  def email
194
204
  @attributes[:email]
@@ -643,6 +653,8 @@ module Files
643
653
  # name - string - Site name
644
654
  # subdomain - string - Site subdomain
645
655
  # domain - string - Custom domain
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.
646
658
  # email - string - Main email for this site
647
659
  # reply_to_email - string - Reply-to email for this site
648
660
  # allow_bundle_names - boolean - Are manual Bundle names allowed?
@@ -758,6 +770,7 @@ module Files
758
770
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
759
771
  raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params.dig(:subdomain) and !params.dig(:subdomain).is_a?(String)
760
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)
761
774
  raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
762
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)
763
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.215
4
+ version: 1.0.219
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-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable