files.com 1.1.112 → 1.1.114

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18fa64da839810ed00562ec71c7c1a27eb4ffad729020b79fe33a7eec54f701d
4
- data.tar.gz: 57e6b2336a33a39806e80bf1da896dac16c7951825233eafe90bb033ad9fec93
3
+ metadata.gz: 578b92a8aeefb7ed5116b22ecd06c0b2248f37919f6ab13f64afcd495f098cd3
4
+ data.tar.gz: c157f057f96ca7af7543f302e0884c9624908555966d5b86523f2e846972bb47
5
5
  SHA512:
6
- metadata.gz: 672a3b4894c4f3fc3d80eb2ab6471ac8e0ef9b7e2339762cfe7e58e8b369c078d4aa052a813700fbd649ddc7bc214126218aa946a5221a1e68af2718e0d9a3e8
7
- data.tar.gz: 62d5ac9edea75c1bbfed744271014df953234190f73e621d4ea059a7381be34a52b0f608c3cdb86d52d73b1dc9b81f3d5d398ea6e1ec71d1fc22ce5036dafe47
6
+ metadata.gz: 111c1245c11016fce37a630340e61ebc4ec768a4cb9a7d820cbf77c2a556647927c37c874f91b6bfd7ba480b9d12e3ddddc66fa35a09f8bee4fcceb861fc9187
7
+ data.tar.gz: af683024ddafd3234f97bdf067845f26e4dd4839310db4a541c6c374d85b5696adf8e6864b5bbd7fc06c8e879ef1e72673cc686832aa0615b3b9f96bcb915bb1
data/README.md CHANGED
@@ -339,6 +339,7 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
339
339
  |`ApiKeyOnlyForDesktopAppError`| `NotAuthorizedError` |
340
340
  |`ApiKeyOnlyForMobileAppError`| `NotAuthorizedError` |
341
341
  |`ApiKeyOnlyForOfficeIntegrationError`| `NotAuthorizedError` |
342
+ |`BillingOrSiteAdminPermissionRequiredError`| `NotAuthorizedError` |
342
343
  |`BillingPermissionRequiredError`| `NotAuthorizedError` |
343
344
  |`BundleMaximumUsesReachedError`| `NotAuthorizedError` |
344
345
  |`CannotLoginWhileUsingKeyError`| `NotAuthorizedError` |
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.112
1
+ 1.1.114
data/docs/api_key.md CHANGED
@@ -27,7 +27,7 @@
27
27
  * `key` (string): API Key actual key string
28
28
  * `last_use_at` (date-time): API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
29
29
  * `name` (string): Internal name for the API Key. For your use.
30
- * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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.
30
+ * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
31
31
  * `platform` (string): If this API key represents a Desktop app, what platform was it created on?
32
32
  * `url` (string): URL for API host.
33
33
  * `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
@@ -99,7 +99,7 @@ Files::ApiKey.create(
99
99
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
100
100
  * `description` (string): User-supplied description of API key.
101
101
  * `expires_at` (string): API Key expiration date
102
- * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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.
102
+ * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
103
103
  * `name` (string): Required - Internal name for the API Key. For your use.
104
104
  * `path` (string): Folder path restriction for this API key.
105
105
 
@@ -120,7 +120,7 @@ Files::ApiKey.update_current(
120
120
 
121
121
  * `expires_at` (string): API Key expiration date
122
122
  * `name` (string): Internal name for the API Key. For your use.
123
- * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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.
123
+ * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
124
124
 
125
125
 
126
126
  ---
@@ -141,7 +141,7 @@ Files::ApiKey.update(id,
141
141
  * `id` (int64): Required - Api Key ID.
142
142
  * `description` (string): User-supplied description of API key.
143
143
  * `expires_at` (string): API Key expiration date
144
- * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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.
144
+ * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
145
145
  * `name` (string): Internal name for the API Key. For your use.
146
146
 
147
147
 
@@ -187,7 +187,7 @@ api_key.update(
187
187
  * `id` (int64): Required - Api Key ID.
188
188
  * `description` (string): User-supplied description of API key.
189
189
  * `expires_at` (string): API Key expiration date
190
- * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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.
190
+ * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
191
191
  * `name` (string): Internal name for the API Key. For your use.
192
192
 
193
193
 
data/docs/site.md CHANGED
@@ -248,6 +248,7 @@
248
248
  "active_2fa": true,
249
249
  "require_password_change": true,
250
250
  "password_expired": true,
251
+ "readonly_site_admin": true,
251
252
  "restapi_permission": true,
252
253
  "self_managed": true,
253
254
  "sftp_permission": true,
data/docs/user.md CHANGED
@@ -53,6 +53,7 @@
53
53
  "active_2fa": true,
54
54
  "require_password_change": true,
55
55
  "password_expired": true,
56
+ "readonly_site_admin": true,
56
57
  "restapi_permission": true,
57
58
  "self_managed": true,
58
59
  "sftp_permission": true,
@@ -118,6 +119,7 @@
118
119
  * `active_2fa` (boolean): Is 2fa active for the user?
119
120
  * `require_password_change` (boolean): Is a password change required upon next user login?
120
121
  * `password_expired` (boolean): Is user's password expired?
122
+ * `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
121
123
  * `restapi_permission` (boolean): Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
122
124
  * `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
123
125
  * `sftp_permission` (boolean): Can the user access with SFTP?
@@ -210,6 +212,7 @@ Files::User.create(
210
212
  notes: "Internal notes on this user.",
211
213
  office_integration_enabled: true,
212
214
  password_validity_days: 1,
215
+ readonly_site_admin: true,
213
216
  receive_admin_alerts: true,
214
217
  require_login_by: "2000-01-01T01:00:00Z",
215
218
  require_password_change: true,
@@ -260,6 +263,7 @@ Files::User.create(
260
263
  * `notes` (string): Any internal notes on the user
261
264
  * `office_integration_enabled` (boolean): Enable integration with Office for the web?
262
265
  * `password_validity_days` (int64): Number of days to allow user to use the same password
266
+ * `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
263
267
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
264
268
  * `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
265
269
  * `require_password_change` (boolean): Is a password change required upon next user login?
@@ -345,6 +349,7 @@ Files::User.update(id,
345
349
  notes: "Internal notes on this user.",
346
350
  office_integration_enabled: true,
347
351
  password_validity_days: 1,
352
+ readonly_site_admin: true,
348
353
  receive_admin_alerts: true,
349
354
  require_login_by: "2000-01-01T01:00:00Z",
350
355
  require_password_change: true,
@@ -396,6 +401,7 @@ Files::User.update(id,
396
401
  * `notes` (string): Any internal notes on the user
397
402
  * `office_integration_enabled` (boolean): Enable integration with Office for the web?
398
403
  * `password_validity_days` (int64): Number of days to allow user to use the same password
404
+ * `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
399
405
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
400
406
  * `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
401
407
  * `require_password_change` (boolean): Is a password change required upon next user login?
@@ -502,6 +508,7 @@ user.update(
502
508
  notes: "Internal notes on this user.",
503
509
  office_integration_enabled: true,
504
510
  password_validity_days: 1,
511
+ readonly_site_admin: true,
505
512
  receive_admin_alerts: true,
506
513
  require_login_by: "2000-01-01T01:00:00Z",
507
514
  require_password_change: true,
@@ -553,6 +560,7 @@ user.update(
553
560
  * `notes` (string): Any internal notes on the user
554
561
  * `office_integration_enabled` (boolean): Enable integration with Office for the web?
555
562
  * `password_validity_days` (int64): Number of days to allow user to use the same password
563
+ * `readonly_site_admin` (boolean): Is the user an allowed to view all (non-billing) site configuration for this site?
556
564
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
557
565
  * `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
558
566
  * `require_password_change` (boolean): Is a password change required upon next user login?
@@ -109,6 +109,7 @@ module Files
109
109
  class ApiKeyOnlyForDesktopAppError < NotAuthorizedError; end
110
110
  class ApiKeyOnlyForMobileAppError < NotAuthorizedError; end
111
111
  class ApiKeyOnlyForOfficeIntegrationError < NotAuthorizedError; end
112
+ class BillingOrSiteAdminPermissionRequiredError < NotAuthorizedError; end
112
113
  class BillingPermissionRequiredError < NotAuthorizedError; end
113
114
  class BundleMaximumUsesReachedError < NotAuthorizedError; end
114
115
  class CannotLoginWhileUsingKeyError < NotAuthorizedError; end
@@ -77,7 +77,7 @@ module Files
77
77
  @attributes[:name] = value
78
78
  end
79
79
 
80
- # string - Permissions for this API Key. It must be full for site-wide API Keys. 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.
80
+ # string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
81
81
  def permission_set
82
82
  @attributes[:permission_set]
83
83
  end
@@ -125,7 +125,7 @@ module Files
125
125
  # Parameters:
126
126
  # description - string - User-supplied description of API key.
127
127
  # expires_at - string - API Key expiration date
128
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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.
128
+ # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
129
129
  # name - string - Internal name for the API Key. For your use.
130
130
  def update(params = {})
131
131
  params ||= {}
@@ -222,7 +222,7 @@ module Files
222
222
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
223
223
  # description - string - User-supplied description of API key.
224
224
  # expires_at - string - API Key expiration date
225
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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.
225
+ # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
226
226
  # name (required) - string - Internal name for the API Key. For your use.
227
227
  # path - string - Folder path restriction for this API key.
228
228
  def self.create(params = {}, options = {})
@@ -241,7 +241,7 @@ module Files
241
241
  # Parameters:
242
242
  # expires_at - string - API Key expiration date
243
243
  # name - string - Internal name for the API Key. For your use.
244
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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.
244
+ # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
245
245
  def self.update_current(params = {}, options = {})
246
246
  raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
247
247
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -254,7 +254,7 @@ module Files
254
254
  # Parameters:
255
255
  # description - string - User-supplied description of API key.
256
256
  # expires_at - string - API Key expiration date
257
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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.
257
+ # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
258
258
  # name - string - Internal name for the API Key. For your use.
259
259
  def self.update(id, params = {}, options = {})
260
260
  params ||= {}
@@ -428,6 +428,15 @@ module Files
428
428
  @attributes[:password_expired] = value
429
429
  end
430
430
 
431
+ # boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
432
+ def readonly_site_admin
433
+ @attributes[:readonly_site_admin]
434
+ end
435
+
436
+ def readonly_site_admin=(value)
437
+ @attributes[:readonly_site_admin] = value
438
+ end
439
+
431
440
  # boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
432
441
  def restapi_permission
433
442
  @attributes[:restapi_permission]
@@ -717,6 +726,7 @@ module Files
717
726
  # notes - string - Any internal notes on the user
718
727
  # office_integration_enabled - boolean - Enable integration with Office for the web?
719
728
  # password_validity_days - int64 - Number of days to allow user to use the same password
729
+ # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
720
730
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
721
731
  # require_login_by - string - Require user to login by specified date otherwise it will be disabled.
722
732
  # require_password_change - boolean - Is a password change required upon next user login?
@@ -875,6 +885,7 @@ module Files
875
885
  # notes - string - Any internal notes on the user
876
886
  # office_integration_enabled - boolean - Enable integration with Office for the web?
877
887
  # password_validity_days - int64 - Number of days to allow user to use the same password
888
+ # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
878
889
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
879
890
  # require_login_by - string - Require user to login by specified date otherwise it will be disabled.
880
891
  # require_password_change - boolean - Is a password change required upon next user login?
@@ -987,6 +998,7 @@ module Files
987
998
  # notes - string - Any internal notes on the user
988
999
  # office_integration_enabled - boolean - Enable integration with Office for the web?
989
1000
  # password_validity_days - int64 - Number of days to allow user to use the same password
1001
+ # readonly_site_admin - boolean - Is the user an allowed to view all (non-billing) site configuration for this site?
990
1002
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
991
1003
  # require_login_by - string - Require user to login by specified date otherwise it will be disabled.
992
1004
  # require_password_change - boolean - Is a password change required upon next user login?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.112"
4
+ VERSION = "1.1.114"
5
5
  end
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.112
4
+ version: 1.1.114
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-08-12 00:00:00.000000000 Z
11
+ date: 2024-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable