files.com 1.0.345 → 1.0.347
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 +4 -4
- data/_VERSION +1 -1
- data/docs/bundle.md +3 -1
- data/docs/site.md +5 -1
- data/docs/snapshot.md +25 -3
- data/lib/files.com/models/bundle.rb +2 -0
- data/lib/files.com/models/site.rb +6 -0
- data/lib/files.com/models/snapshot.rb +31 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf6c0f216e2972892011ad1e35fd26a1295b5f2ba0004d0afc082544e4ce878
|
4
|
+
data.tar.gz: ff86f0bcf4a1cb02e9778bf62dc19e3a3bc5502211355cac1636b3a1cf22c650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e19919d02d4060410464e2e96cbd0eb20fe143e722f6d94c0367d7fdba208a7e9aac9f086e4b9d2ee0a418c600ccb87c726445e8d4c48c7da997f3bf04319df
|
7
|
+
data.tar.gz: 19a0fb2020290204f2792091937343c8152177def4e67c314540c7b95eea3108319af784a6cc688c9856853d1b1c018beab171fed0863144d23af09e27f186bc
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.347
|
data/docs/bundle.md
CHANGED
@@ -159,7 +159,8 @@ Files::Bundle.create(
|
|
159
159
|
send_email_receipt_to_uploader: true,
|
160
160
|
skip_email: true,
|
161
161
|
skip_name: true,
|
162
|
-
skip_company: true
|
162
|
+
skip_company: true,
|
163
|
+
snapshot_id: 1
|
163
164
|
)
|
164
165
|
```
|
165
166
|
|
@@ -188,6 +189,7 @@ Files::Bundle.create(
|
|
188
189
|
* `skip_email` (boolean): BundleRegistrations can be saved without providing email?
|
189
190
|
* `skip_name` (boolean): BundleRegistrations can be saved without providing name?
|
190
191
|
* `skip_company` (boolean): BundleRegistrations can be saved without providing company?
|
192
|
+
* `snapshot_id` (int64): ID of the snapshot containing this bundle's contents.
|
191
193
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
192
194
|
|
193
195
|
|
data/docs/site.md
CHANGED
@@ -213,7 +213,8 @@
|
|
213
213
|
"welcome_email_enabled": true,
|
214
214
|
"welcome_screen": "user_controlled",
|
215
215
|
"windows_mode_ftp": true,
|
216
|
-
"disable_users_from_inactivity_period_days": 1
|
216
|
+
"disable_users_from_inactivity_period_days": 1,
|
217
|
+
"group_admins_can_set_user_password": true
|
217
218
|
}
|
218
219
|
```
|
219
220
|
|
@@ -358,6 +359,7 @@
|
|
358
359
|
* `welcome_screen` (string): Does the welcome screen appear?
|
359
360
|
* `windows_mode_ftp` (boolean): Does FTP user Windows emulation mode?
|
360
361
|
* `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
|
362
|
+
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
361
363
|
|
362
364
|
|
363
365
|
---
|
@@ -462,6 +464,7 @@ Files::Site.update(
|
|
462
464
|
sftp_host_key_type: "default",
|
463
465
|
active_sftp_host_key_id: 1,
|
464
466
|
bundle_watermark_value: {"key":"example value"},
|
467
|
+
group_admins_can_set_user_password: true,
|
465
468
|
allowed_2fa_method_sms: true,
|
466
469
|
allowed_2fa_method_u2f: true,
|
467
470
|
allowed_2fa_method_totp: true,
|
@@ -591,6 +594,7 @@ Files::Site.update(
|
|
591
594
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
592
595
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
593
596
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
597
|
+
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
594
598
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
595
599
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
596
600
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
data/docs/snapshot.md
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
* `name` (string): A name for the snapshot.
|
18
18
|
* `user_id` (int64): The user that created this snapshot, if applicable.
|
19
19
|
* `bundle_id` (int64): The bundle using this snapshot, if applicable.
|
20
|
+
* `paths` (array(string)): An array of paths to add to the snapshot.
|
20
21
|
* `id` (int64): Snapshot ID.
|
21
22
|
|
22
23
|
|
@@ -54,21 +55,36 @@ Files::Snapshot.find(id)
|
|
54
55
|
## Create Snapshot
|
55
56
|
|
56
57
|
```
|
57
|
-
Files::Snapshot.create
|
58
|
+
Files::Snapshot.create(
|
59
|
+
expires_at: "2000-01-01T01:00:00Z",
|
60
|
+
name: "My Snapshot"
|
61
|
+
)
|
58
62
|
```
|
59
63
|
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
* `expires_at` (string): When the snapshot expires.
|
67
|
+
* `name` (string): A name for the snapshot.
|
68
|
+
* `paths` (array(string)): An array of paths to add to the snapshot.
|
69
|
+
|
60
70
|
|
61
71
|
---
|
62
72
|
|
63
73
|
## Update Snapshot
|
64
74
|
|
65
75
|
```
|
66
|
-
Files::Snapshot.update(id
|
76
|
+
Files::Snapshot.update(id,
|
77
|
+
expires_at: "2000-01-01T01:00:00Z",
|
78
|
+
name: "My Snapshot"
|
79
|
+
)
|
67
80
|
```
|
68
81
|
|
69
82
|
### Parameters
|
70
83
|
|
71
84
|
* `id` (int64): Required - Snapshot ID.
|
85
|
+
* `expires_at` (string): When the snapshot expires.
|
86
|
+
* `name` (string): A name for the snapshot.
|
87
|
+
* `paths` (array(string)): An array of paths to add to the snapshot.
|
72
88
|
|
73
89
|
|
74
90
|
---
|
@@ -91,12 +107,18 @@ Files::Snapshot.delete(id)
|
|
91
107
|
```
|
92
108
|
snapshot = Files::Snapshot.list.first
|
93
109
|
|
94
|
-
snapshot.update
|
110
|
+
snapshot.update(
|
111
|
+
expires_at: "2000-01-01T01:00:00Z",
|
112
|
+
name: "My Snapshot"
|
113
|
+
)
|
95
114
|
```
|
96
115
|
|
97
116
|
### Parameters
|
98
117
|
|
99
118
|
* `id` (int64): Required - Snapshot ID.
|
119
|
+
* `expires_at` (string): When the snapshot expires.
|
120
|
+
* `name` (string): A name for the snapshot.
|
121
|
+
* `paths` (array(string)): An array of paths to add to the snapshot.
|
100
122
|
|
101
123
|
|
102
124
|
---
|
@@ -488,6 +488,7 @@ module Files
|
|
488
488
|
# skip_email - boolean - BundleRegistrations can be saved without providing email?
|
489
489
|
# skip_name - boolean - BundleRegistrations can be saved without providing name?
|
490
490
|
# skip_company - boolean - BundleRegistrations can be saved without providing company?
|
491
|
+
# snapshot_id - int64 - ID of the snapshot containing this bundle's contents.
|
491
492
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
492
493
|
def self.create(params = {}, options = {})
|
493
494
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
@@ -503,6 +504,7 @@ module Files
|
|
503
504
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
504
505
|
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
|
505
506
|
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
507
|
+
raise InvalidParameterError.new("Bad parameter: snapshot_id must be an Integer") if params[:snapshot_id] and !params[:snapshot_id].is_a?(Integer)
|
506
508
|
raise MissingParameterError.new("Parameter missing: paths") unless params[:paths]
|
507
509
|
|
508
510
|
response, options = Api.send_request("/bundles", :post, params, options)
|
@@ -714,6 +714,11 @@ module Files
|
|
714
714
|
@attributes[:disable_users_from_inactivity_period_days]
|
715
715
|
end
|
716
716
|
|
717
|
+
# boolean - Allow group admins set password authentication method
|
718
|
+
def group_admins_can_set_user_password
|
719
|
+
@attributes[:group_admins_can_set_user_password]
|
720
|
+
end
|
721
|
+
|
717
722
|
def self.get(params = {}, options = {})
|
718
723
|
response, options = Api.send_request("/site", :get, params, options)
|
719
724
|
Site.new(response.data, options)
|
@@ -803,6 +808,7 @@ module Files
|
|
803
808
|
# sftp_host_key_type - string - Sftp Host Key Type
|
804
809
|
# active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
805
810
|
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
811
|
+
# group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
806
812
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
807
813
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
808
814
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
@@ -54,6 +54,15 @@ module Files
|
|
54
54
|
@attributes[:bundle_id] = value
|
55
55
|
end
|
56
56
|
|
57
|
+
# array(string) - An array of paths to add to the snapshot.
|
58
|
+
def paths
|
59
|
+
@attributes[:paths]
|
60
|
+
end
|
61
|
+
|
62
|
+
def paths=(value)
|
63
|
+
@attributes[:paths] = value
|
64
|
+
end
|
65
|
+
|
57
66
|
# int64 - Snapshot ID.
|
58
67
|
def id
|
59
68
|
@attributes[:id]
|
@@ -63,11 +72,18 @@ module Files
|
|
63
72
|
@attributes[:id] = value
|
64
73
|
end
|
65
74
|
|
75
|
+
# Parameters:
|
76
|
+
# expires_at - string - When the snapshot expires.
|
77
|
+
# name - string - A name for the snapshot.
|
78
|
+
# paths - array(string) - An array of paths to add to the snapshot.
|
66
79
|
def update(params = {})
|
67
80
|
params ||= {}
|
68
81
|
params[:id] = @attributes[:id]
|
69
82
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
70
83
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
84
|
+
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
85
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
86
|
+
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params[:paths] and !params[:paths].is_a?(Array)
|
71
87
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
72
88
|
|
73
89
|
Api.send_request("/snapshots/#{@attributes[:id]}", :patch, params, @options)
|
@@ -128,15 +144,30 @@ module Files
|
|
128
144
|
find(id, params, options)
|
129
145
|
end
|
130
146
|
|
147
|
+
# Parameters:
|
148
|
+
# expires_at - string - When the snapshot expires.
|
149
|
+
# name - string - A name for the snapshot.
|
150
|
+
# paths - array(string) - An array of paths to add to the snapshot.
|
131
151
|
def self.create(params = {}, options = {})
|
152
|
+
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
153
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
154
|
+
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params[:paths] and !params[:paths].is_a?(Array)
|
155
|
+
|
132
156
|
response, options = Api.send_request("/snapshots", :post, params, options)
|
133
157
|
Snapshot.new(response.data, options)
|
134
158
|
end
|
135
159
|
|
160
|
+
# Parameters:
|
161
|
+
# expires_at - string - When the snapshot expires.
|
162
|
+
# name - string - A name for the snapshot.
|
163
|
+
# paths - array(string) - An array of paths to add to the snapshot.
|
136
164
|
def self.update(id, params = {}, options = {})
|
137
165
|
params ||= {}
|
138
166
|
params[:id] = id
|
139
167
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
168
|
+
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
169
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
170
|
+
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params[:paths] and !params[:paths].is_a?(Array)
|
140
171
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
141
172
|
|
142
173
|
response, options = Api.send_request("/snapshots/#{params[:id]}", :patch, params, options)
|
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.
|
4
|
+
version: 1.0.347
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|