files.com 1.0.294 → 1.0.296
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/api_key.md +5 -0
- data/docs/site.md +11 -0
- data/lib/files.com/models/api_key.rb +15 -0
- data/lib/files.com/models/site.rb +19 -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: 72076d16be6da0a13bda5440289051a5ad436042d5c7267802a8c1fa45f789d0
|
4
|
+
data.tar.gz: a6d42c5711bdc3a01b1f95f4d90b6b5bb6da11c8166222373c67b9df757b117d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c0956fbd997e51bb9ff4c5f1951905a90fc35e6b035aa1cb5b7c4a0fe28c438788be524ec4bf4db561761dacd42c60c0ad3099648a9d0174a2e4c4bd84166bc
|
7
|
+
data.tar.gz: da2a16c45b0fb7b828c24bd0e44dc2372b78b623dc1bd3b30ce078bb11f7a5eaec49a083ed86ae24d770353a3fd02686afeb624c843273874eb7d9ecd1ad4a79
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.296
|
data/docs/api_key.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"descriptive_label": "Site-wide API key for https://site.files.com/ (key ID #1)",
|
9
|
+
"description": "",
|
9
10
|
"created_at": "2000-01-01T01:00:00Z",
|
10
11
|
"expires_at": "2000-01-01T01:00:00Z",
|
11
12
|
"key": "[key]",
|
@@ -20,6 +21,7 @@
|
|
20
21
|
|
21
22
|
* `id` (int64): API Key ID
|
22
23
|
* `descriptive_label` (string): Unique label that describes this API key. Useful for external systems where you may have API keys from multiple accounts and want a human-readable label for each key.
|
24
|
+
* `description` (string): User-supplied description of API key.
|
23
25
|
* `created_at` (date-time): Time which API Key was created
|
24
26
|
* `expires_at` (date-time): API Key expiration date
|
25
27
|
* `key` (string): API Key actual key string
|
@@ -96,6 +98,7 @@ Files::ApiKey.create(
|
|
96
98
|
|
97
99
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
98
100
|
* `name` (string): Internal name for the API Key. For your use.
|
101
|
+
* `description` (string): User-supplied description of API key.
|
99
102
|
* `expires_at` (string): API Key expiration date
|
100
103
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
101
104
|
* `path` (string): Folder path restriction for this api key.
|
@@ -136,6 +139,7 @@ Files::ApiKey.update(id,
|
|
136
139
|
|
137
140
|
* `id` (int64): Required - Api Key ID.
|
138
141
|
* `name` (string): Internal name for the API Key. For your use.
|
142
|
+
* `description` (string): User-supplied description of API key.
|
139
143
|
* `expires_at` (string): API Key expiration date
|
140
144
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
141
145
|
|
@@ -180,6 +184,7 @@ api_key.update(
|
|
180
184
|
|
181
185
|
* `id` (int64): Required - Api Key ID.
|
182
186
|
* `name` (string): Internal name for the API Key. For your use.
|
187
|
+
* `description` (string): User-supplied description of API key.
|
183
188
|
* `expires_at` (string): API Key expiration date
|
184
189
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
185
190
|
|
data/docs/site.md
CHANGED
@@ -96,6 +96,9 @@
|
|
96
96
|
"uri": "https://mysite.files.com/.../my_image.png"
|
97
97
|
},
|
98
98
|
"max_prior_passwords": 1,
|
99
|
+
"motd_text": "",
|
100
|
+
"motd_use_for_ftp": true,
|
101
|
+
"motd_use_for_sftp": true,
|
99
102
|
"next_billing_amount": 1.0,
|
100
103
|
"next_billing_date": "Apr 20",
|
101
104
|
"office_integration_available": true,
|
@@ -305,6 +308,9 @@
|
|
305
308
|
* `login_help_text` (string): Login help text
|
306
309
|
* `logo` (Image): Branded logo
|
307
310
|
* `max_prior_passwords` (int64): Number of prior passwords to disallow
|
311
|
+
* `motd_text` (string): A message to show users when they connect via FTP or SFTP.
|
312
|
+
* `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
|
313
|
+
* `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
|
308
314
|
* `next_billing_amount` (double): Next billing amount
|
309
315
|
* `next_billing_date` (string): Next billing date
|
310
316
|
* `office_integration_available` (boolean): Allow users to use Office for the web?
|
@@ -415,6 +421,8 @@ Files::Site.update(
|
|
415
421
|
welcome_screen: "user_controlled",
|
416
422
|
office_integration_available: true,
|
417
423
|
pin_all_remote_servers_to_site_region: true,
|
424
|
+
motd_use_for_ftp: true,
|
425
|
+
motd_use_for_sftp: true,
|
418
426
|
session_expiry: 1.0,
|
419
427
|
ssl_required: true,
|
420
428
|
tls_disabled: true,
|
@@ -526,6 +534,9 @@ Files::Site.update(
|
|
526
534
|
* `welcome_screen` (string): Does the welcome screen appear?
|
527
535
|
* `office_integration_available` (boolean): Allow users to use Office for the web?
|
528
536
|
* `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
537
|
+
* `motd_text` (string): A message to show users when they connect via FTP or SFTP.
|
538
|
+
* `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
|
539
|
+
* `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
|
529
540
|
* `session_expiry` (double): Session expiry in hours
|
530
541
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
531
542
|
* `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
|
@@ -27,6 +27,15 @@ module Files
|
|
27
27
|
@attributes[:descriptive_label] = value
|
28
28
|
end
|
29
29
|
|
30
|
+
# string - User-supplied description of API key.
|
31
|
+
def description
|
32
|
+
@attributes[:description]
|
33
|
+
end
|
34
|
+
|
35
|
+
def description=(value)
|
36
|
+
@attributes[:description] = value
|
37
|
+
end
|
38
|
+
|
30
39
|
# date-time - Time which API Key was created
|
31
40
|
def created_at
|
32
41
|
@attributes[:created_at]
|
@@ -106,6 +115,7 @@ module Files
|
|
106
115
|
|
107
116
|
# Parameters:
|
108
117
|
# name - string - Internal name for the API Key. For your use.
|
118
|
+
# description - string - User-supplied description of API key.
|
109
119
|
# expires_at - string - API Key expiration date
|
110
120
|
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
111
121
|
def update(params = {})
|
@@ -114,6 +124,7 @@ module Files
|
|
114
124
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
115
125
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
116
126
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
127
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
117
128
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
118
129
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
119
130
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
@@ -200,12 +211,14 @@ module Files
|
|
200
211
|
# Parameters:
|
201
212
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
202
213
|
# name - string - Internal name for the API Key. For your use.
|
214
|
+
# description - string - User-supplied description of API key.
|
203
215
|
# expires_at - string - API Key expiration date
|
204
216
|
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
205
217
|
# path - string - Folder path restriction for this api key.
|
206
218
|
def self.create(params = {}, options = {})
|
207
219
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
208
220
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
221
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
209
222
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
210
223
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
211
224
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
@@ -229,6 +242,7 @@ module Files
|
|
229
242
|
|
230
243
|
# Parameters:
|
231
244
|
# name - string - Internal name for the API Key. For your use.
|
245
|
+
# description - string - User-supplied description of API key.
|
232
246
|
# expires_at - string - API Key expiration date
|
233
247
|
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
234
248
|
def self.update(id, params = {}, options = {})
|
@@ -236,6 +250,7 @@ module Files
|
|
236
250
|
params[:id] = id
|
237
251
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
238
252
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
253
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
239
254
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
240
255
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
241
256
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
@@ -379,6 +379,21 @@ module Files
|
|
379
379
|
@attributes[:max_prior_passwords]
|
380
380
|
end
|
381
381
|
|
382
|
+
# string - A message to show users when they connect via FTP or SFTP.
|
383
|
+
def motd_text
|
384
|
+
@attributes[:motd_text]
|
385
|
+
end
|
386
|
+
|
387
|
+
# boolean - Show message to users connecting via FTP
|
388
|
+
def motd_use_for_ftp
|
389
|
+
@attributes[:motd_use_for_ftp]
|
390
|
+
end
|
391
|
+
|
392
|
+
# boolean - Show message to users connecting via SFTP
|
393
|
+
def motd_use_for_sftp
|
394
|
+
@attributes[:motd_use_for_sftp]
|
395
|
+
end
|
396
|
+
|
382
397
|
# double - Next billing amount
|
383
398
|
def next_billing_amount
|
384
399
|
@attributes[:next_billing_amount]
|
@@ -709,6 +724,9 @@ module Files
|
|
709
724
|
# welcome_screen - string - Does the welcome screen appear?
|
710
725
|
# office_integration_available - boolean - Allow users to use Office for the web?
|
711
726
|
# pin_all_remote_servers_to_site_region - boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
727
|
+
# motd_text - string - A message to show users when they connect via FTP or SFTP.
|
728
|
+
# motd_use_for_ftp - boolean - Show message to users connecting via FTP
|
729
|
+
# motd_use_for_sftp - boolean - Show message to users connecting via SFTP
|
712
730
|
# session_expiry - double - Session expiry in hours
|
713
731
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
714
732
|
# tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
|
@@ -819,6 +837,7 @@ module Files
|
|
819
837
|
raise InvalidParameterError.new("Bad parameter: desktop_app_session_lifetime must be an Integer") if params[:desktop_app_session_lifetime] and !params[:desktop_app_session_lifetime].is_a?(Integer)
|
820
838
|
raise InvalidParameterError.new("Bad parameter: mobile_app_session_lifetime must be an Integer") if params[:mobile_app_session_lifetime] and !params[:mobile_app_session_lifetime].is_a?(Integer)
|
821
839
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params[:welcome_screen] and !params[:welcome_screen].is_a?(String)
|
840
|
+
raise InvalidParameterError.new("Bad parameter: motd_text must be an String") if params[:motd_text] and !params[:motd_text].is_a?(String)
|
822
841
|
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params[:session_expiry] and !params[:session_expiry].is_a?(Float)
|
823
842
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params[:user_lockout_tries] and !params[:user_lockout_tries].is_a?(Integer)
|
824
843
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params[:user_lockout_within] and !params[:user_lockout_within].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.
|
4
|
+
version: 1.0.296
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|