files.com 1.0.117 → 1.0.122

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/docs/api_key.md +2 -5
  4. data/docs/app.md +1 -4
  5. data/docs/as2_key.md +1 -4
  6. data/docs/automation.md +1 -4
  7. data/docs/bandwidth_snapshot.md +1 -4
  8. data/docs/behavior.md +2 -8
  9. data/docs/bundle.md +7 -6
  10. data/docs/bundle_download.md +1 -4
  11. data/docs/bundle_recipient.md +1 -4
  12. data/docs/clickwrap.md +3 -5
  13. data/docs/dns_record.md +1 -4
  14. data/docs/external_event.md +1 -4
  15. data/docs/file_comment.md +1 -4
  16. data/docs/folder.md +1 -4
  17. data/docs/group.md +1 -4
  18. data/docs/group_user.md +1 -4
  19. data/docs/history.md +10 -30
  20. data/docs/history_export.md +5 -0
  21. data/docs/history_export_result.md +1 -5
  22. data/docs/invoice.md +1 -4
  23. data/docs/ip_address.md +2 -8
  24. data/docs/lock.md +1 -4
  25. data/docs/message.md +1 -4
  26. data/docs/message_comment.md +1 -4
  27. data/docs/message_comment_reaction.md +1 -4
  28. data/docs/message_reaction.md +1 -4
  29. data/docs/notification.md +1 -4
  30. data/docs/payment.md +1 -4
  31. data/docs/permission.md +1 -4
  32. data/docs/project.md +1 -4
  33. data/docs/public_key.md +1 -4
  34. data/docs/remote_server.md +13 -12
  35. data/docs/request.md +2 -8
  36. data/docs/settings_change.md +1 -4
  37. data/docs/sso_strategy.md +5 -4
  38. data/docs/usage_daily_snapshot.md +1 -4
  39. data/docs/usage_snapshot.md +1 -4
  40. data/docs/user.md +9 -6
  41. data/docs/user_cipher_use.md +1 -4
  42. data/docs/user_request.md +1 -4
  43. data/lib/files.com/models/api_key.rb +3 -7
  44. data/lib/files.com/models/app.rb +2 -6
  45. data/lib/files.com/models/as2_key.rb +2 -6
  46. data/lib/files.com/models/automation.rb +2 -6
  47. data/lib/files.com/models/bandwidth_snapshot.rb +2 -6
  48. data/lib/files.com/models/behavior.rb +4 -12
  49. data/lib/files.com/models/bundle.rb +6 -6
  50. data/lib/files.com/models/bundle_download.rb +2 -6
  51. data/lib/files.com/models/bundle_recipient.rb +2 -6
  52. data/lib/files.com/models/clickwrap.rb +11 -15
  53. data/lib/files.com/models/dns_record.rb +2 -6
  54. data/lib/files.com/models/external_event.rb +2 -6
  55. data/lib/files.com/models/file_comment.rb +2 -6
  56. data/lib/files.com/models/folder.rb +2 -6
  57. data/lib/files.com/models/group.rb +2 -6
  58. data/lib/files.com/models/group_user.rb +2 -6
  59. data/lib/files.com/models/history.rb +10 -30
  60. data/lib/files.com/models/history_export.rb +20 -0
  61. data/lib/files.com/models/history_export_result.rb +2 -6
  62. data/lib/files.com/models/invoice.rb +2 -6
  63. data/lib/files.com/models/ip_address.rb +4 -12
  64. data/lib/files.com/models/lock.rb +2 -6
  65. data/lib/files.com/models/message.rb +2 -6
  66. data/lib/files.com/models/message_comment.rb +2 -6
  67. data/lib/files.com/models/message_comment_reaction.rb +2 -6
  68. data/lib/files.com/models/message_reaction.rb +2 -6
  69. data/lib/files.com/models/notification.rb +2 -6
  70. data/lib/files.com/models/payment.rb +2 -6
  71. data/lib/files.com/models/permission.rb +2 -6
  72. data/lib/files.com/models/project.rb +2 -6
  73. data/lib/files.com/models/public_key.rb +2 -6
  74. data/lib/files.com/models/remote_server.rb +17 -6
  75. data/lib/files.com/models/request.rb +4 -12
  76. data/lib/files.com/models/settings_change.rb +2 -6
  77. data/lib/files.com/models/sso_strategy.rb +12 -6
  78. data/lib/files.com/models/usage_daily_snapshot.rb +2 -6
  79. data/lib/files.com/models/usage_snapshot.rb +2 -6
  80. data/lib/files.com/models/user.rb +9 -7
  81. data/lib/files.com/models/user_cipher_use.rb +2 -6
  82. data/lib/files.com/models/user_request.rb +2 -6
  83. metadata +2 -2
@@ -41,16 +41,12 @@ module Files
41
41
 
42
42
  # Parameters:
43
43
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
44
- # page - int64 - Current page number.
44
+ # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
45
45
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
47
- # cursor - string - Send cursor to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
48
46
  def self.list(params = {}, options = {})
49
47
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
50
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
51
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
52
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
53
48
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
49
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
54
50
 
55
51
  List.new(UserCipherUse, params) do
56
52
  Api.send_request("/user_cipher_uses", :get, params, options)
@@ -69,15 +69,11 @@ module Files
69
69
  end
70
70
 
71
71
  # Parameters:
72
- # page - int64 - Current page number.
72
+ # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
73
73
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
74
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
75
- # cursor - string - Send cursor to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
76
74
  def self.list(params = {}, options = {})
77
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
78
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
79
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
80
75
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
76
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
81
77
 
82
78
  List.new(UserRequest, params) do
83
79
  Api.send_request("/user_requests", :get, 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.117
4
+ version: 1.0.122
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2020-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable