files.com 1.1.46 → 1.1.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/bundle.md +3 -1
- data/docs/bundle_path.md +13 -0
- data/docs/site.md +8 -0
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/bundle.rb +9 -0
- data/lib/files.com/models/bundle_path.rb +22 -0
- data/lib/files.com/models/site.rb +12 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 272dc209ad35385cdc17ee8e7bc7b11b7cf8e17b1d2e477d0803a3b240e054ae
|
4
|
+
data.tar.gz: f84431a25829db447b0a85b9ddcde55c502c76520155876bd6129b348e0948f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f89da0c6739c65a0e9ea1184d156891d44c44e4cbc680673b5e73799293e9bd85ec5a415aaf59e9f5489e76d04da3ea49755c03122ffdd624a6271b67c8cb04b
|
7
|
+
data.tar.gz: 63a912c08fdd8d34f3701a3cca4438ee67eecf423ee63a32b7a1448c99ff38828198980046b280282b849d40f12bab2ecf3a9f98a81dc1dc9db94d04d41c0553
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.48
|
data/docs/bundle.md
CHANGED
@@ -76,7 +76,8 @@
|
|
76
76
|
"has_inbox": true,
|
77
77
|
"paths": [
|
78
78
|
"file.txt"
|
79
|
-
]
|
79
|
+
],
|
80
|
+
"bundlepaths": "example"
|
80
81
|
}
|
81
82
|
```
|
82
83
|
|
@@ -118,6 +119,7 @@
|
|
118
119
|
* `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
119
120
|
* `has_inbox` (boolean): Does this bundle have an associated inbox?
|
120
121
|
* `paths` (array): A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
|
122
|
+
* `bundlepaths` (BundlePath): A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
|
121
123
|
* `password` (string): Password for this bundle.
|
122
124
|
* `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
|
123
125
|
* `create_snapshot` (boolean): If true, create a snapshot of this bundle's contents.
|
data/docs/bundle_path.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# BundlePath
|
2
|
+
|
3
|
+
## Example BundlePath Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"recursive": true,
|
8
|
+
"path": "example"
|
9
|
+
}
|
10
|
+
```
|
11
|
+
|
12
|
+
* `recursive` (boolean): Allow access to subfolders content?
|
13
|
+
* `path` (string): The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
data/docs/site.md
CHANGED
@@ -260,6 +260,8 @@
|
|
260
260
|
"user_lockout_within": 6,
|
261
261
|
"user_requests_enabled": true,
|
262
262
|
"user_requests_notify_admins": true,
|
263
|
+
"users_can_create_api_keys": true,
|
264
|
+
"users_can_create_ssh_keys": true,
|
263
265
|
"welcome_custom_text": "Welcome to my site!",
|
264
266
|
"welcome_email_cc": "example",
|
265
267
|
"welcome_email_subject": "example",
|
@@ -416,6 +418,8 @@
|
|
416
418
|
* `user_lockout_within` (int64): Number of hours for user lockout window
|
417
419
|
* `user_requests_enabled` (boolean): Enable User Requests feature
|
418
420
|
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
421
|
+
* `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
|
422
|
+
* `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
|
419
423
|
* `welcome_custom_text` (string): Custom text send in user welcome email
|
420
424
|
* `welcome_email_cc` (email): Include this email in welcome emails if enabled
|
421
425
|
* `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
|
@@ -531,6 +535,8 @@ Files::Site.update(
|
|
531
535
|
dav_enabled: true,
|
532
536
|
ftp_enabled: true,
|
533
537
|
sftp_enabled: true,
|
538
|
+
users_can_create_api_keys: true,
|
539
|
+
users_can_create_ssh_keys: true,
|
534
540
|
sftp_host_key_type: "default",
|
535
541
|
active_sftp_host_key_id: 1,
|
536
542
|
protocol_access_groups_only: true,
|
@@ -674,6 +680,8 @@ Files::Site.update(
|
|
674
680
|
* `dav_enabled` (boolean): Is WebDAV enabled?
|
675
681
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
676
682
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
683
|
+
* `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
|
684
|
+
* `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
|
677
685
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
678
686
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
679
687
|
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
data/lib/files.com/errors.rb
CHANGED
@@ -175,6 +175,7 @@ module Files
|
|
175
175
|
class FileTooBigToDecryptError < ProcessingFailureError; end
|
176
176
|
class FileTooBigToEncryptError < ProcessingFailureError; end
|
177
177
|
class FileUploadedToWrongRegionError < ProcessingFailureError; end
|
178
|
+
class FilenameTooLongError < ProcessingFailureError; end
|
178
179
|
class FolderLockedError < ProcessingFailureError; end
|
179
180
|
class FolderNotEmptyError < ProcessingFailureError; end
|
180
181
|
class HistoryUnavailableError < ProcessingFailureError; end
|
@@ -347,6 +347,15 @@ module Files
|
|
347
347
|
@attributes[:paths] = value
|
348
348
|
end
|
349
349
|
|
350
|
+
# BundlePath - A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
|
351
|
+
def bundlepaths
|
352
|
+
@attributes[:bundlepaths]
|
353
|
+
end
|
354
|
+
|
355
|
+
def bundlepaths=(value)
|
356
|
+
@attributes[:bundlepaths] = value
|
357
|
+
end
|
358
|
+
|
350
359
|
# string - Password for this bundle.
|
351
360
|
def password
|
352
361
|
@attributes[:password]
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class BundlePath
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# boolean - Allow access to subfolders content?
|
13
|
+
def recursive
|
14
|
+
@attributes[:recursive]
|
15
|
+
end
|
16
|
+
|
17
|
+
# string - The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
18
|
+
def path
|
19
|
+
@attributes[:path]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -734,6 +734,16 @@ module Files
|
|
734
734
|
@attributes[:user_requests_notify_admins]
|
735
735
|
end
|
736
736
|
|
737
|
+
# boolean - Allow users to create their own API keys?
|
738
|
+
def users_can_create_api_keys
|
739
|
+
@attributes[:users_can_create_api_keys]
|
740
|
+
end
|
741
|
+
|
742
|
+
# boolean - Allow users to create their own SSH keys?
|
743
|
+
def users_can_create_ssh_keys
|
744
|
+
@attributes[:users_can_create_ssh_keys]
|
745
|
+
end
|
746
|
+
|
737
747
|
# string - Custom text send in user welcome email
|
738
748
|
def welcome_custom_text
|
739
749
|
@attributes[:welcome_custom_text]
|
@@ -867,6 +877,8 @@ module Files
|
|
867
877
|
# dav_enabled - boolean - Is WebDAV enabled?
|
868
878
|
# ftp_enabled - boolean - Is FTP enabled?
|
869
879
|
# sftp_enabled - boolean - Is SFTP enabled?
|
880
|
+
# users_can_create_api_keys - boolean - Allow users to create their own API keys?
|
881
|
+
# users_can_create_ssh_keys - boolean - Allow users to create their own SSH keys?
|
870
882
|
# sftp_host_key_type - string - Sftp Host Key Type
|
871
883
|
# active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
872
884
|
# protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
@@ -53,6 +53,7 @@ require "files.com/models/behavior"
|
|
53
53
|
require "files.com/models/bundle"
|
54
54
|
require "files.com/models/bundle_download"
|
55
55
|
require "files.com/models/bundle_notification"
|
56
|
+
require "files.com/models/bundle_path"
|
56
57
|
require "files.com/models/bundle_recipient"
|
57
58
|
require "files.com/models/bundle_registration"
|
58
59
|
require "files.com/models/clickwrap"
|
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.
|
4
|
+
version: 1.1.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- docs/bundle.md
|
136
136
|
- docs/bundle_download.md
|
137
137
|
- docs/bundle_notification.md
|
138
|
+
- docs/bundle_path.md
|
138
139
|
- docs/bundle_recipient.md
|
139
140
|
- docs/bundle_registration.md
|
140
141
|
- docs/clickwrap.md
|
@@ -231,6 +232,7 @@ files:
|
|
231
232
|
- lib/files.com/models/bundle.rb
|
232
233
|
- lib/files.com/models/bundle_download.rb
|
233
234
|
- lib/files.com/models/bundle_notification.rb
|
235
|
+
- lib/files.com/models/bundle_path.rb
|
234
236
|
- lib/files.com/models/bundle_recipient.rb
|
235
237
|
- lib/files.com/models/bundle_registration.rb
|
236
238
|
- lib/files.com/models/clickwrap.rb
|