files.com 1.1.274 → 1.1.276
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/site.md +2 -1
- data/docs/sync.md +28 -0
- data/docs/user.md +3 -1
- data/lib/files.com/models/sync.rb +22 -0
- data/lib/files.com/models/user.rb +9 -0
- data/lib/files.com/version.rb +1 -1
- 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: 0d5ac268a40afbdd7b25be984abb4f950926c2040f83ee9ac62c550ce2d0747d
|
4
|
+
data.tar.gz: 0b618ab598ba22eaf0b8c9109cd26db5895bccc4a4557bc01f1d0c5b98c54675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37211a48a596a26931475be0a0d26387bdb1662fb417adbf0d5e96413d08a4caa9abcc4deacf02fa3efd14b08bc333245ec8db126f4bf607b53ddcda34b8ce45
|
7
|
+
data.tar.gz: bfc5df7c750d7b2f749bbf0dd3f780bbf2f9a6b47303bbeb10b1083555470949b48836e2cd1ed430760807aef2987b472d93cecd1182afc1dfe07e20587f6977
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.276
|
data/docs/site.md
CHANGED
@@ -284,7 +284,8 @@
|
|
284
284
|
"user_root": "example",
|
285
285
|
"user_home": "example",
|
286
286
|
"days_remaining_until_password_expire": 1,
|
287
|
-
"password_expire_at": "2000-01-01T01:00:00Z"
|
287
|
+
"password_expire_at": "2000-01-01T01:00:00Z",
|
288
|
+
"has_reassignable_associations": true
|
288
289
|
},
|
289
290
|
"user_lockout": true,
|
290
291
|
"user_lockout_lock_period": 1,
|
data/docs/sync.md
CHANGED
@@ -153,6 +153,19 @@ Files::Sync.create_migrate_to
|
|
153
153
|
```
|
154
154
|
|
155
155
|
|
156
|
+
---
|
157
|
+
|
158
|
+
## Manually Run Sync
|
159
|
+
|
160
|
+
```
|
161
|
+
Files::Sync.manual_run(id)
|
162
|
+
```
|
163
|
+
|
164
|
+
### Parameters
|
165
|
+
|
166
|
+
* `id` (int64): Required - Sync ID.
|
167
|
+
|
168
|
+
|
156
169
|
---
|
157
170
|
|
158
171
|
## Update Sync
|
@@ -214,6 +227,21 @@ Files::Sync.delete(id)
|
|
214
227
|
* `id` (int64): Required - Sync ID.
|
215
228
|
|
216
229
|
|
230
|
+
---
|
231
|
+
|
232
|
+
## Manually Run Sync
|
233
|
+
|
234
|
+
```
|
235
|
+
sync = Files::Sync.find(id)
|
236
|
+
|
237
|
+
sync.manual_run
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
241
|
+
|
242
|
+
* `id` (int64): Required - Sync ID.
|
243
|
+
|
244
|
+
|
217
245
|
---
|
218
246
|
|
219
247
|
## Update Sync
|
data/docs/user.md
CHANGED
@@ -71,7 +71,8 @@
|
|
71
71
|
"user_root": "example",
|
72
72
|
"user_home": "example",
|
73
73
|
"days_remaining_until_password_expire": 1,
|
74
|
-
"password_expire_at": "2000-01-01T01:00:00Z"
|
74
|
+
"password_expire_at": "2000-01-01T01:00:00Z",
|
75
|
+
"has_reassignable_associations": true
|
75
76
|
}
|
76
77
|
```
|
77
78
|
|
@@ -141,6 +142,7 @@
|
|
141
142
|
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
142
143
|
* `days_remaining_until_password_expire` (int64): Number of days remaining until password expires
|
143
144
|
* `password_expire_at` (date-time): Password expiration datetime
|
145
|
+
* `has_reassignable_associations` (boolean): Does this user have any associations that can be reassigned on delete?
|
144
146
|
* `avatar_file` (file): An image file for your user avatar.
|
145
147
|
* `avatar_delete` (boolean): If true, the avatar will be deleted.
|
146
148
|
* `change_password` (string): Used for changing a password on an existing user.
|
@@ -226,6 +226,17 @@ module Files
|
|
226
226
|
@attributes[:schedule_time_zone] = value
|
227
227
|
end
|
228
228
|
|
229
|
+
# Manually Run Sync
|
230
|
+
def manual_run(params = {})
|
231
|
+
params ||= {}
|
232
|
+
params[:id] = @attributes[:id]
|
233
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
234
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
235
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
236
|
+
|
237
|
+
Api.send_request("/syncs/#{@attributes[:id]}/manual_run", :post, params, @options)
|
238
|
+
end
|
239
|
+
|
229
240
|
# Parameters:
|
230
241
|
# name - string - Name for this sync job
|
231
242
|
# description - string - Description for this sync job
|
@@ -367,6 +378,17 @@ module Files
|
|
367
378
|
nil
|
368
379
|
end
|
369
380
|
|
381
|
+
# Manually Run Sync
|
382
|
+
def self.manual_run(id, params = {}, options = {})
|
383
|
+
params ||= {}
|
384
|
+
params[:id] = id
|
385
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
386
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
387
|
+
|
388
|
+
Api.send_request("/syncs/#{params[:id]}/manual_run", :post, params, options)
|
389
|
+
nil
|
390
|
+
end
|
391
|
+
|
370
392
|
# Parameters:
|
371
393
|
# name - string - Name for this sync job
|
372
394
|
# description - string - Description for this sync job
|
@@ -599,6 +599,15 @@ module Files
|
|
599
599
|
@attributes[:password_expire_at] = value
|
600
600
|
end
|
601
601
|
|
602
|
+
# boolean - Does this user have any associations that can be reassigned on delete?
|
603
|
+
def has_reassignable_associations
|
604
|
+
@attributes[:has_reassignable_associations]
|
605
|
+
end
|
606
|
+
|
607
|
+
def has_reassignable_associations=(value)
|
608
|
+
@attributes[:has_reassignable_associations] = value
|
609
|
+
end
|
610
|
+
|
602
611
|
# file - An image file for your user avatar.
|
603
612
|
def avatar_file
|
604
613
|
@attributes[:avatar_file]
|
data/lib/files.com/version.rb
CHANGED
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.276
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|