files.com 1.0.103 → 1.0.108
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 +18 -2
- data/docs/app.md +2 -0
- data/docs/as2_key.md +1 -0
- data/docs/bandwidth_snapshot.md +8 -0
- data/docs/bundle_download.md +1 -0
- data/docs/bundle_recipient.md +1 -0
- data/docs/clickwrap.md +1 -0
- data/docs/dns_record.md +1 -0
- data/docs/external_event.md +43 -0
- data/docs/file.md +2 -4
- data/docs/file_comment.md +1 -0
- data/docs/file_part_upload.md +12 -10
- data/docs/folder.md +2 -4
- data/docs/group_user.md +1 -0
- data/docs/history_export.md +20 -20
- data/docs/history_export_result.md +0 -1
- data/docs/invoice.md +1 -0
- data/docs/ip_address.md +2 -0
- data/docs/lock.md +1 -0
- data/docs/message.md +1 -0
- data/docs/message_comment.md +1 -0
- data/docs/message_comment_reaction.md +1 -0
- data/docs/message_reaction.md +1 -0
- data/docs/payment.md +1 -0
- data/docs/project.md +1 -0
- data/docs/public_key.md +1 -0
- data/docs/remote_server.md +1 -0
- data/docs/session.md +10 -2
- data/docs/site.md +18 -2
- data/docs/sso_strategy.md +3 -0
- data/docs/usage_snapshot.md +1 -0
- data/docs/user_cipher_use.md +1 -0
- data/docs/user_request.md +1 -0
- data/lib/files.com.rb +1 -0
- data/lib/files.com/api_client.rb +7 -2
- data/lib/files.com/models/api_key.rb +12 -0
- data/lib/files.com/models/app.rb +5 -0
- data/lib/files.com/models/as2_key.rb +4 -3
- data/lib/files.com/models/bandwidth_snapshot.rb +18 -3
- data/lib/files.com/models/bundle_download.rb +4 -3
- data/lib/files.com/models/bundle_recipient.rb +4 -3
- data/lib/files.com/models/clickwrap.rb +4 -3
- data/lib/files.com/models/dns_record.rb +4 -3
- data/lib/files.com/models/external_event.rb +66 -0
- data/lib/files.com/models/file.rb +6 -15
- data/lib/files.com/models/file_comment.rb +4 -3
- data/lib/files.com/models/file_part_upload.rb +10 -5
- data/lib/files.com/models/folder.rb +3 -12
- data/lib/files.com/models/group_user.rb +4 -3
- data/lib/files.com/models/history_export.rb +15 -15
- data/lib/files.com/models/history_export_result.rb +0 -2
- data/lib/files.com/models/invoice.rb +4 -3
- data/lib/files.com/models/ip_address.rb +8 -6
- data/lib/files.com/models/lock.rb +4 -3
- data/lib/files.com/models/message.rb +4 -3
- data/lib/files.com/models/message_comment.rb +4 -3
- data/lib/files.com/models/message_comment_reaction.rb +4 -3
- data/lib/files.com/models/message_reaction.rb +4 -3
- data/lib/files.com/models/payment.rb +4 -3
- data/lib/files.com/models/project.rb +4 -3
- data/lib/files.com/models/public_key.rb +4 -3
- data/lib/files.com/models/remote_server.rb +4 -3
- data/lib/files.com/models/session.rb +6 -0
- data/lib/files.com/models/site.rb +12 -0
- data/lib/files.com/models/sso_strategy.rb +9 -3
- data/lib/files.com/models/usage_snapshot.rb +4 -3
- data/lib/files.com/models/user_cipher_use.rb +4 -3
- data/lib/files.com/models/user_request.rb +4 -3
- metadata +4 -2
@@ -101,15 +101,16 @@ module Files
|
|
101
101
|
# page - int64 - Current page number.
|
102
102
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
103
103
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
104
|
+
# 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.
|
104
105
|
def self.list(params = {}, options = {})
|
105
106
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
106
107
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
107
108
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
108
109
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
110
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
109
111
|
|
110
|
-
|
111
|
-
|
112
|
-
PublicKey.new(entity_data, options)
|
112
|
+
List.new(PublicKey, params) do
|
113
|
+
Api.send_request("/public_keys", :get, params, options)
|
113
114
|
end
|
114
115
|
end
|
115
116
|
|
@@ -476,14 +476,15 @@ module Files
|
|
476
476
|
# page - int64 - Current page number.
|
477
477
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
478
478
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
479
|
+
# 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.
|
479
480
|
def self.list(params = {}, options = {})
|
480
481
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
481
482
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
482
483
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
484
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
483
485
|
|
484
|
-
|
485
|
-
|
486
|
-
RemoteServer.new(entity_data, options)
|
486
|
+
List.new(RemoteServer, params) do
|
487
|
+
Api.send_request("/remote_servers", :get, params, options)
|
487
488
|
end
|
488
489
|
end
|
489
490
|
|
@@ -235,7 +235,13 @@ module Files
|
|
235
235
|
Session.new(response.data, options)
|
236
236
|
end
|
237
237
|
|
238
|
+
# Parameters:
|
239
|
+
# format - string
|
240
|
+
# session - object
|
238
241
|
def self.delete(params = {}, options = {})
|
242
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
243
|
+
raise InvalidParameterError.new("Bad parameter: session must be an Hash") if params.dig(:session) and !params.dig(:session).is_a?(Hash)
|
244
|
+
|
239
245
|
response, _options = Api.send_request("/sessions", :delete, params, options)
|
240
246
|
response.data
|
241
247
|
end
|
@@ -559,12 +559,24 @@ module Files
|
|
559
559
|
@attributes[:disable_users_from_inactivity_period_days]
|
560
560
|
end
|
561
561
|
|
562
|
+
# Parameters:
|
563
|
+
# format - string
|
564
|
+
# site - object
|
562
565
|
def self.get(params = {}, options = {})
|
566
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
567
|
+
raise InvalidParameterError.new("Bad parameter: site must be an Hash") if params.dig(:site) and !params.dig(:site).is_a?(Hash)
|
568
|
+
|
563
569
|
response, options = Api.send_request("/site", :get, params, options)
|
564
570
|
Site.new(response.data, options)
|
565
571
|
end
|
566
572
|
|
573
|
+
# Parameters:
|
574
|
+
# format - string
|
575
|
+
# site - object
|
567
576
|
def self.get_usage(params = {}, options = {})
|
577
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
578
|
+
raise InvalidParameterError.new("Bad parameter: site must be an Hash") if params.dig(:site) and !params.dig(:site).is_a?(Hash)
|
579
|
+
|
568
580
|
response, options = Api.send_request("/site/usage", :get, params, options)
|
569
581
|
UsageSnapshot.new(response.data, options)
|
570
582
|
end
|
@@ -94,6 +94,11 @@ module Files
|
|
94
94
|
@attributes[:deprovision_groups]
|
95
95
|
end
|
96
96
|
|
97
|
+
# string - Method used for deprovisioning users.
|
98
|
+
def deprovision_behavior
|
99
|
+
@attributes[:deprovision_behavior]
|
100
|
+
end
|
101
|
+
|
97
102
|
# string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
|
98
103
|
def provision_group_default
|
99
104
|
@attributes[:provision_group_default]
|
@@ -193,14 +198,15 @@ module Files
|
|
193
198
|
# page - int64 - Current page number.
|
194
199
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
195
200
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
201
|
+
# 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.
|
196
202
|
def self.list(params = {}, options = {})
|
197
203
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
198
204
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
199
205
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
206
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
200
207
|
|
201
|
-
|
202
|
-
|
203
|
-
SsoStrategy.new(entity_data, options)
|
208
|
+
List.new(SsoStrategy, params) do
|
209
|
+
Api.send_request("/sso_strategies", :get, params, options)
|
204
210
|
end
|
205
211
|
end
|
206
212
|
|
@@ -78,14 +78,15 @@ module Files
|
|
78
78
|
# page - int64 - Current page number.
|
79
79
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
80
80
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
81
|
+
# 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.
|
81
82
|
def self.list(params = {}, options = {})
|
82
83
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
83
84
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
84
85
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
86
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
85
87
|
|
86
|
-
|
87
|
-
|
88
|
-
UsageSnapshot.new(entity_data, options)
|
88
|
+
List.new(UsageSnapshot, params) do
|
89
|
+
Api.send_request("/usage_snapshots", :get, params, options)
|
89
90
|
end
|
90
91
|
end
|
91
92
|
|
@@ -44,15 +44,16 @@ module Files
|
|
44
44
|
# page - int64 - Current page number.
|
45
45
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
46
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.
|
47
48
|
def self.list(params = {}, options = {})
|
48
49
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
49
50
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
50
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)
|
51
52
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
53
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
52
54
|
|
53
|
-
|
54
|
-
|
55
|
-
UserCipherUse.new(entity_data, options)
|
55
|
+
List.new(UserCipherUse, params) do
|
56
|
+
Api.send_request("/user_cipher_uses", :get, params, options)
|
56
57
|
end
|
57
58
|
end
|
58
59
|
|
@@ -72,14 +72,15 @@ module Files
|
|
72
72
|
# page - int64 - Current page number.
|
73
73
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
74
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.
|
75
76
|
def self.list(params = {}, options = {})
|
76
77
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
77
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)
|
78
79
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
80
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
79
81
|
|
80
|
-
|
81
|
-
|
82
|
-
UserRequest.new(entity_data, options)
|
82
|
+
List.new(UserRequest, params) do
|
83
|
+
Api.send_request("/user_requests", :get, params, options)
|
83
84
|
end
|
84
85
|
end
|
85
86
|
|
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.108
|
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-08-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- docs/clickwrap.md
|
101
101
|
- docs/dns_record.md
|
102
102
|
- docs/errors.md
|
103
|
+
- docs/external_event.md
|
103
104
|
- docs/file.md
|
104
105
|
- docs/file_action.md
|
105
106
|
- docs/file_comment.md
|
@@ -164,6 +165,7 @@ files:
|
|
164
165
|
- lib/files.com/models/dir.rb
|
165
166
|
- lib/files.com/models/dns_record.rb
|
166
167
|
- lib/files.com/models/errors.rb
|
168
|
+
- lib/files.com/models/external_event.rb
|
167
169
|
- lib/files.com/models/file.rb
|
168
170
|
- lib/files.com/models/file_action.rb
|
169
171
|
- lib/files.com/models/file_comment.rb
|