files.com 1.1.111 → 1.1.113

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: 99beea965d4c6448002096eda9b41b4874a167e51d5eb6e356776b37e9b9ad39
4
- data.tar.gz: 87e628927f868e366b00a6fef4ae445d44db8accd55897552c586e2fee312b00
3
+ metadata.gz: 4649d1278f2e8b8310761ae4faf15de407919758aa5563eeeee961f744d02f7a
4
+ data.tar.gz: da78961e1d0c7df3d1db61c05d83457a89701e3159913108f668a56ba14a3e48
5
5
  SHA512:
6
- metadata.gz: 4acdd42c64d1e51c3dc3370649afc62e19e12d69f3a1b5d035f4f05d6a0aef82049eb0e079a6e73598ee0cf49d38718758c8711d688bade34048c2d4ee06c4a8
7
- data.tar.gz: a3e6bef77c115538988d1652503fa4a9f0ecf386d45e8fbf53fb0338b0eac87decd566fe4ebb379b4e2e07e49367b3568cf3fb41f8d30473d517f5eea69bf099
6
+ metadata.gz: d1008d423d92e773252694d6053dcc99632d42a8862d6b0d14fcbb0c7a14a3e0509a7c920c5dc0af3849d4d6fe8adf662aab3b339f1838220f949b51e5ec9741
7
+ data.tar.gz: 8a4d19d7ea6bc24dee24b36835d707495859e9a5e2daa301a95fce2e80e9980ebe323bb77ff065d6fa2e43da8f11623e1fb37e2c2d6399d2dea0fc7bc6c06500
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.111
1
+ 1.1.113
data/docs/file.md CHANGED
@@ -246,7 +246,7 @@ Files::File.move(path,
246
246
 
247
247
  ---
248
248
 
249
- ## Begin file upload
249
+ ## Begin File Upload
250
250
 
251
251
  ```
252
252
  Files::File.begin_upload(path,
@@ -379,7 +379,7 @@ file.move(
379
379
 
380
380
  ---
381
381
 
382
- ## Begin file upload
382
+ ## Begin File Upload
383
383
 
384
384
  ```
385
385
  file = Files::File.find(path)
data/docs/file_action.md CHANGED
@@ -10,4 +10,4 @@
10
10
  ```
11
11
 
12
12
  * `status` (string): Status of file operation.
13
- * `file_migration_id` (int64): If status is pending, this is the id of the FileMigration to check for status updates.
13
+ * `file_migration_id` (int64): If status is pending, this is the id of the File Migration to check for status updates.
@@ -11,7 +11,7 @@
11
11
  }
12
12
  ```
13
13
 
14
- * `id` (int64): Sftp Host Key ID
14
+ * `id` (int64): SFTP Host Key ID
15
15
  * `name` (string): The friendly name of this SFTP Host Key.
16
16
  * `fingerprint_md5` (string): MD5 Fingerpint of the public key
17
17
  * `fingerprint_sha256` (string): SHA256 Fingerpint of the public key
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
@@ -1029,7 +1029,7 @@ module Files
1029
1029
  Api.send_request("/file_actions/move/#{@attributes[:path]}", :post, params, @options)
1030
1030
  end
1031
1031
 
1032
- # Begin file upload
1032
+ # Begin File Upload
1033
1033
  #
1034
1034
  # Parameters:
1035
1035
  # mkdir_parents - boolean - Create parent directories if they do not exist?
@@ -1204,7 +1204,7 @@ module Files
1204
1204
  FileAction.new(response.data, options)
1205
1205
  end
1206
1206
 
1207
- # Begin file upload
1207
+ # Begin File Upload
1208
1208
  #
1209
1209
  # Parameters:
1210
1210
  # mkdir_parents - boolean - Create parent directories if they do not exist?
@@ -14,7 +14,7 @@ module Files
14
14
  @attributes[:status]
15
15
  end
16
16
 
17
- # int64 - If status is pending, this is the id of the FileMigration to check for status updates.
17
+ # int64 - If status is pending, this is the id of the File Migration to check for status updates.
18
18
  def file_migration_id
19
19
  @attributes[:file_migration_id]
20
20
  end
@@ -9,7 +9,7 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
- # int64 - Sftp Host Key ID
12
+ # int64 - SFTP Host Key ID
13
13
  def id
14
14
  @attributes[:id]
15
15
  end
@@ -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.111"
4
+ VERSION = "1.1.113"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -36,7 +36,6 @@ require "files.com/models/account_line_item"
36
36
  require "files.com/models/action"
37
37
  require "files.com/models/action_notification_export"
38
38
  require "files.com/models/action_notification_export_result"
39
- require "files.com/models/action_webhook_failure"
40
39
  require "files.com/models/api_key"
41
40
  require "files.com/models/api_request_log"
42
41
  require "files.com/models/app"
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.111
4
+ version: 1.1.113
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-06 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -118,7 +118,6 @@ files:
118
118
  - docs/action.md
119
119
  - docs/action_notification_export.md
120
120
  - docs/action_notification_export_result.md
121
- - docs/action_webhook_failure.md
122
121
  - docs/api_key.md
123
122
  - docs/api_request_log.md
124
123
  - docs/app.md
@@ -220,7 +219,6 @@ files:
220
219
  - lib/files.com/models/action.rb
221
220
  - lib/files.com/models/action_notification_export.rb
222
221
  - lib/files.com/models/action_notification_export_result.rb
223
- - lib/files.com/models/action_webhook_failure.rb
224
222
  - lib/files.com/models/api_key.rb
225
223
  - lib/files.com/models/api_request_log.rb
226
224
  - lib/files.com/models/app.rb
@@ -1,28 +0,0 @@
1
-
2
-
3
- ---
4
-
5
- ## retry Action Webhook Failure
6
-
7
- ```
8
- Files::ActionWebhookFailure.retry(id)
9
- ```
10
-
11
- ### Parameters
12
-
13
- * `id` (int64): Required - Action Webhook Failure ID.
14
-
15
-
16
- ---
17
-
18
- ## retry Action Webhook Failure
19
-
20
- ```
21
- action_webhook_failure = Files::ActionWebhookFailure.new
22
-
23
- action_webhook_failure.retry
24
- ```
25
-
26
- ### Parameters
27
-
28
- * `id` (int64): Required - Action Webhook Failure ID.
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ActionWebhookFailure
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # retry Action Webhook Failure
13
- def retry(params = {})
14
- params ||= {}
15
- params[:id] = @attributes[:id]
16
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
17
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
18
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
19
-
20
- Api.send_request("/action_webhook_failures/#{@attributes[:id]}/retry", :post, params, @options)
21
- end
22
-
23
- # retry Action Webhook Failure
24
- def self.retry(id, params = {}, options = {})
25
- params ||= {}
26
- params[:id] = id
27
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
28
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
29
-
30
- Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
31
- nil
32
- end
33
- end
34
- end