files.com 1.0.245 → 1.0.263
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/account_line_item.md +2 -2
- data/docs/as2_incoming_message.md +49 -2
- data/docs/as2_outgoing_message.md +46 -3
- data/docs/as2_partner.md +24 -4
- data/docs/as2_station.md +22 -15
- data/docs/automation.md +8 -0
- data/docs/bundle.md +27 -3
- data/docs/bundle_download.md +1 -1
- data/docs/file.md +1 -1
- data/docs/file_comment.md +1 -1
- data/docs/folder.md +6 -2
- data/docs/form_field_set.md +1 -1
- data/docs/inbox_upload.md +1 -1
- data/docs/invoice.md +2 -2
- data/docs/message.md +1 -1
- data/docs/message_comment.md +1 -1
- data/docs/payment.md +2 -2
- data/docs/session.md +1 -33
- data/docs/site.md +11 -8
- data/docs/sso_strategy.md +28 -0
- data/docs/status.md +2 -2
- data/docs/style.md +2 -2
- data/docs/user.md +1 -1
- data/docs/webhook_test.md +1 -1
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/account_line_item.rb +2 -2
- data/lib/files.com/models/as2_incoming_message.rb +115 -1
- data/lib/files.com/models/as2_outgoing_message.rb +106 -2
- data/lib/files.com/models/as2_partner.rb +69 -0
- data/lib/files.com/models/as2_station.rb +83 -19
- data/lib/files.com/models/automation.rb +12 -0
- data/lib/files.com/models/bundle.rb +38 -2
- data/lib/files.com/models/bundle_download.rb +1 -0
- data/lib/files.com/models/file.rb +1 -1
- data/lib/files.com/models/file_comment.rb +1 -1
- data/lib/files.com/models/folder.rb +11 -1
- data/lib/files.com/models/form_field_set.rb +1 -1
- data/lib/files.com/models/inbox_upload.rb +1 -0
- data/lib/files.com/models/invoice.rb +2 -2
- data/lib/files.com/models/message.rb +1 -1
- data/lib/files.com/models/message_comment.rb +1 -1
- data/lib/files.com/models/payment.rb +2 -2
- data/lib/files.com/models/session.rb +0 -144
- data/lib/files.com/models/site.rb +15 -8
- data/lib/files.com/models/sso_strategy.rb +22 -0
- data/lib/files.com/models/status.rb +2 -2
- data/lib/files.com/models/style.rb +2 -2
- data/lib/files.com/models/user.rb +1 -1
- data/lib/files.com/models/webhook_test.rb +1 -1
- metadata +2 -2
@@ -224,6 +224,17 @@ module Files
|
|
224
224
|
@attributes[:ldap_username_field]
|
225
225
|
end
|
226
226
|
|
227
|
+
# Synchronize provisioning data with the SSO remote server
|
228
|
+
def sync(params = {})
|
229
|
+
params ||= {}
|
230
|
+
params[:id] = @attributes[:id]
|
231
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
232
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
233
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
234
|
+
|
235
|
+
Api.send_request("/sso_strategies/#{@attributes[:id]}/sync", :post, params, @options)
|
236
|
+
end
|
237
|
+
|
227
238
|
# Parameters:
|
228
239
|
# 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
229
240
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -255,5 +266,16 @@ module Files
|
|
255
266
|
def self.get(id, params = {}, options = {})
|
256
267
|
find(id, params, options)
|
257
268
|
end
|
269
|
+
|
270
|
+
# Synchronize provisioning data with the SSO remote server
|
271
|
+
def self.sync(id, params = {}, options = {})
|
272
|
+
params ||= {}
|
273
|
+
params[:id] = id
|
274
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
275
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
276
|
+
|
277
|
+
response, _options = Api.send_request("/sso_strategies/#{params[:id]}/sync", :post, params, options)
|
278
|
+
response.data
|
279
|
+
end
|
258
280
|
end
|
259
281
|
end
|
@@ -24,12 +24,12 @@ module Files
|
|
24
24
|
@attributes[:status]
|
25
25
|
end
|
26
26
|
|
27
|
-
# Additional data
|
27
|
+
# Auto - Additional data
|
28
28
|
def data
|
29
29
|
@attributes[:data]
|
30
30
|
end
|
31
31
|
|
32
|
-
# A list of api errors
|
32
|
+
# Errors - A list of api errors
|
33
33
|
def errors
|
34
34
|
@attributes[:errors]
|
35
35
|
end
|
@@ -27,7 +27,7 @@ module Files
|
|
27
27
|
@attributes[:path] = value
|
28
28
|
end
|
29
29
|
|
30
|
-
# Logo
|
30
|
+
# Image - Logo
|
31
31
|
def logo
|
32
32
|
@attributes[:logo]
|
33
33
|
end
|
@@ -36,7 +36,7 @@ module Files
|
|
36
36
|
@attributes[:logo] = value
|
37
37
|
end
|
38
38
|
|
39
|
-
# Logo thumbnail
|
39
|
+
# Image - Logo thumbnail
|
40
40
|
def thumbnail
|
41
41
|
@attributes[:thumbnail]
|
42
42
|
end
|
@@ -666,7 +666,7 @@ module Files
|
|
666
666
|
# Parameters:
|
667
667
|
# 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
668
668
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
669
|
-
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
669
|
+
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `authenticate_until`, `active`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
670
670
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
671
671
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
672
672
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
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.263
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|