files.com 1.0.101 → 1.0.106
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/api_key.md +18 -2
- 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 -2
- data/docs/file_comment.md +1 -0
- data/docs/file_part_upload.md +2 -0
- data/docs/folder.md +2 -2
- data/docs/group_user.md +1 -0
- data/docs/history_export.md +23 -69
- data/docs/history_export_result.md +79 -0
- 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 +3 -0
- data/lib/files.com.rb +2 -0
- data/lib/files.com/api_client.rb +2 -1
- data/lib/files.com/models/api_key.rb +12 -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 -6
- data/lib/files.com/models/file_comment.rb +4 -3
- data/lib/files.com/models/file_part_upload.rb +5 -0
- data/lib/files.com/models/folder.rb +3 -3
- data/lib/files.com/models/group_user.rb +4 -3
- data/lib/files.com/models/history_export.rb +24 -64
- data/lib/files.com/models/history_export_result.rb +152 -0
- 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 +13 -3
- metadata +6 -2
@@ -83,14 +83,15 @@ module Files
|
|
83
83
|
# page - int64 - Current page number.
|
84
84
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
85
85
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
86
|
+
# 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.
|
86
87
|
def self.list(params = {}, options = {})
|
87
88
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
88
89
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
89
90
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
91
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
90
92
|
|
91
|
-
|
92
|
-
|
93
|
-
AccountLineItem.new(entity_data, options)
|
93
|
+
List.new(AccountLineItem, params) do
|
94
|
+
Api.send_request("/invoices", :get, params, options)
|
94
95
|
end
|
95
96
|
end
|
96
97
|
|
@@ -33,14 +33,15 @@ module Files
|
|
33
33
|
# page - int64 - Current page number.
|
34
34
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
35
35
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
36
|
+
# 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.
|
36
37
|
def self.list(params = {}, options = {})
|
37
38
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
38
39
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
39
40
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
41
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
40
42
|
|
41
|
-
|
42
|
-
|
43
|
-
IpAddress.new(entity_data, options)
|
43
|
+
List.new(IpAddress, params) do
|
44
|
+
Api.send_request("/ip_addresses", :get, params, options)
|
44
45
|
end
|
45
46
|
end
|
46
47
|
|
@@ -52,14 +53,15 @@ module Files
|
|
52
53
|
# page - int64 - Current page number.
|
53
54
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
54
55
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
56
|
+
# 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.
|
55
57
|
def self.get_reserved(params = {}, options = {})
|
56
58
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
57
59
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
58
60
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
61
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
59
62
|
|
60
|
-
|
61
|
-
|
62
|
-
PublicIpAddress.new(entity_data, options)
|
63
|
+
List.new(PublicIpAddress, params) do
|
64
|
+
Api.send_request("/ip_addresses/reserved", :get, params, options)
|
63
65
|
end
|
64
66
|
end
|
65
67
|
end
|
@@ -117,6 +117,7 @@ module Files
|
|
117
117
|
# page - int64 - Current page number.
|
118
118
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
119
119
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
120
|
+
# 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.
|
120
121
|
# path (required) - string - Path to operate on.
|
121
122
|
# include_children - boolean - Include locks from children objects?
|
122
123
|
def self.list_for(path, params = {}, options = {})
|
@@ -125,12 +126,12 @@ module Files
|
|
125
126
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
126
127
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
127
128
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
129
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
128
130
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
129
131
|
raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
|
130
132
|
|
131
|
-
|
132
|
-
|
133
|
-
Lock.new(entity_data, options)
|
133
|
+
List.new(Lock, params) do
|
134
|
+
Api.send_request("/locks/#{params[:path]}", :get, params, options)
|
134
135
|
end
|
135
136
|
end
|
136
137
|
|
@@ -111,18 +111,19 @@ module Files
|
|
111
111
|
# page - int64 - Current page number.
|
112
112
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
113
113
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
114
|
+
# 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.
|
114
115
|
# project_id (required) - int64 - Project for which to return messages.
|
115
116
|
def self.list(params = {}, options = {})
|
116
117
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
117
118
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
118
119
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
119
120
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
121
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
120
122
|
raise InvalidParameterError.new("Bad parameter: project_id must be an Integer") if params.dig(:project_id) and !params.dig(:project_id).is_a?(Integer)
|
121
123
|
raise MissingParameterError.new("Parameter missing: project_id") unless params.dig(:project_id)
|
122
124
|
|
123
|
-
|
124
|
-
|
125
|
-
Message.new(entity_data, options)
|
125
|
+
List.new(Message, params) do
|
126
|
+
Api.send_request("/messages", :get, params, options)
|
126
127
|
end
|
127
128
|
end
|
128
129
|
|
@@ -87,18 +87,19 @@ module Files
|
|
87
87
|
# page - int64 - Current page number.
|
88
88
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
89
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
90
|
+
# 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.
|
90
91
|
# message_id (required) - int64 - Message comment to return comments for.
|
91
92
|
def self.list(params = {}, options = {})
|
92
93
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
93
94
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
94
95
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
95
96
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
97
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
96
98
|
raise InvalidParameterError.new("Bad parameter: message_id must be an Integer") if params.dig(:message_id) and !params.dig(:message_id).is_a?(Integer)
|
97
99
|
raise MissingParameterError.new("Parameter missing: message_id") unless params.dig(:message_id)
|
98
100
|
|
99
|
-
|
100
|
-
|
101
|
-
MessageComment.new(entity_data, options)
|
101
|
+
List.new(MessageComment, params) do
|
102
|
+
Api.send_request("/message_comments", :get, params, options)
|
102
103
|
end
|
103
104
|
end
|
104
105
|
|
@@ -64,18 +64,19 @@ module Files
|
|
64
64
|
# page - int64 - Current page number.
|
65
65
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
66
66
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
67
|
+
# 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.
|
67
68
|
# message_comment_id (required) - int64 - Message comment to return reactions for.
|
68
69
|
def self.list(params = {}, options = {})
|
69
70
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
70
71
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
71
72
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
72
73
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
74
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
73
75
|
raise InvalidParameterError.new("Bad parameter: message_comment_id must be an Integer") if params.dig(:message_comment_id) and !params.dig(:message_comment_id).is_a?(Integer)
|
74
76
|
raise MissingParameterError.new("Parameter missing: message_comment_id") unless params.dig(:message_comment_id)
|
75
77
|
|
76
|
-
|
77
|
-
|
78
|
-
MessageCommentReaction.new(entity_data, options)
|
78
|
+
List.new(MessageCommentReaction, params) do
|
79
|
+
Api.send_request("/message_comment_reactions", :get, params, options)
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
@@ -64,18 +64,19 @@ module Files
|
|
64
64
|
# page - int64 - Current page number.
|
65
65
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
66
66
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
67
|
+
# 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.
|
67
68
|
# message_id (required) - int64 - Message to return reactions for.
|
68
69
|
def self.list(params = {}, options = {})
|
69
70
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
70
71
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
71
72
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
72
73
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
74
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
73
75
|
raise InvalidParameterError.new("Bad parameter: message_id must be an Integer") if params.dig(:message_id) and !params.dig(:message_id).is_a?(Integer)
|
74
76
|
raise MissingParameterError.new("Parameter missing: message_id") unless params.dig(:message_id)
|
75
77
|
|
76
|
-
|
77
|
-
|
78
|
-
MessageReaction.new(entity_data, options)
|
78
|
+
List.new(MessageReaction, params) do
|
79
|
+
Api.send_request("/message_reactions", :get, params, options)
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
@@ -83,14 +83,15 @@ module Files
|
|
83
83
|
# page - int64 - Current page number.
|
84
84
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
85
85
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
86
|
+
# 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.
|
86
87
|
def self.list(params = {}, options = {})
|
87
88
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
88
89
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
89
90
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
91
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
90
92
|
|
91
|
-
|
92
|
-
|
93
|
-
AccountLineItem.new(entity_data, options)
|
93
|
+
List.new(AccountLineItem, params) do
|
94
|
+
Api.send_request("/payments", :get, params, options)
|
94
95
|
end
|
95
96
|
end
|
96
97
|
|
@@ -68,14 +68,15 @@ module Files
|
|
68
68
|
# page - int64 - Current page number.
|
69
69
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
70
70
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
71
|
+
# 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.
|
71
72
|
def self.list(params = {}, options = {})
|
72
73
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
73
74
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
74
75
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
76
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
75
77
|
|
76
|
-
|
77
|
-
|
78
|
-
Project.new(entity_data, options)
|
78
|
+
List.new(Project, params) do
|
79
|
+
Api.send_request("/projects", :get, params, options)
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
@@ -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
|
|
@@ -9,6 +9,15 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
+
# int64 - ID
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
17
|
+
def id=(value)
|
18
|
+
@attributes[:id] = value
|
19
|
+
end
|
20
|
+
|
12
21
|
# string - User's full name
|
13
22
|
def name
|
14
23
|
@attributes[:name]
|
@@ -63,14 +72,15 @@ module Files
|
|
63
72
|
# page - int64 - Current page number.
|
64
73
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
65
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.
|
66
76
|
def self.list(params = {}, options = {})
|
67
77
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
68
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)
|
69
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)
|
70
81
|
|
71
|
-
|
72
|
-
|
73
|
-
UserRequest.new(entity_data, options)
|
82
|
+
List.new(UserRequest, params) do
|
83
|
+
Api.send_request("/user_requests", :get, params, options)
|
74
84
|
end
|
75
85
|
end
|
76
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.106
|
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-20 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
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- docs/group_user.md
|
112
113
|
- docs/history.md
|
113
114
|
- docs/history_export.md
|
115
|
+
- docs/history_export_result.md
|
114
116
|
- docs/image.md
|
115
117
|
- docs/invoice.md
|
116
118
|
- docs/invoice_line_item.md
|
@@ -163,6 +165,7 @@ files:
|
|
163
165
|
- lib/files.com/models/dir.rb
|
164
166
|
- lib/files.com/models/dns_record.rb
|
165
167
|
- lib/files.com/models/errors.rb
|
168
|
+
- lib/files.com/models/external_event.rb
|
166
169
|
- lib/files.com/models/file.rb
|
167
170
|
- lib/files.com/models/file_action.rb
|
168
171
|
- lib/files.com/models/file_comment.rb
|
@@ -174,6 +177,7 @@ files:
|
|
174
177
|
- lib/files.com/models/group_user.rb
|
175
178
|
- lib/files.com/models/history.rb
|
176
179
|
- lib/files.com/models/history_export.rb
|
180
|
+
- lib/files.com/models/history_export_result.rb
|
177
181
|
- lib/files.com/models/image.rb
|
178
182
|
- lib/files.com/models/invoice.rb
|
179
183
|
- lib/files.com/models/invoice_line_item.rb
|