files.com 1.1.171 → 1.1.173
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/bundle_action.md +1 -1
- data/docs/export.md +50 -0
- data/docs/site.md +4 -4
- data/lib/files.com/models/bundle_action.rb +1 -1
- data/lib/files.com/models/export.rb +72 -0
- data/lib/files.com/models/site.rb +2 -3
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c4a2e877be12c7f43fb6330174363be7e753cea739d8ea4939176ed620d9248
|
4
|
+
data.tar.gz: 9336e3cde8025506b74a34c2ca4df1aea3131f2ed77362c6d066d1f1b356a494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26e6ab7e1e869626b11199e672bccb526d0e9f6b245ac3b152149d0e266d4beb71c2914a1dda360cca6b8f97e08549b5aa64247ed90f0ae6452d16ed07543fdd
|
7
|
+
data.tar.gz: fa0a3374c0971d9c9920395c75f7703eed027df66450d39ec1b510e3f97ea7d5d25a8c5f04ed759a476e4f55fd1893e39136a730cc534dbbbccaf227e09f0460
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.173
|
data/docs/bundle_action.md
CHANGED
@@ -49,7 +49,7 @@ Files::BundleAction.list
|
|
49
49
|
|
50
50
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
51
51
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
52
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
52
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
53
53
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
|
54
54
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
55
55
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
data/docs/export.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Export
|
2
|
+
|
3
|
+
## Example Export Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"export_status": "example",
|
9
|
+
"export_type": "example",
|
10
|
+
"download_uri": "example"
|
11
|
+
}
|
12
|
+
```
|
13
|
+
|
14
|
+
* `id` (int64): ID for this Export
|
15
|
+
* `export_status` (string): Status of the Export
|
16
|
+
* `export_type` (string): Type of data being exported
|
17
|
+
* `download_uri` (string): Link to download Export file.
|
18
|
+
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
## List Exports
|
23
|
+
|
24
|
+
```
|
25
|
+
Files::Export.list(
|
26
|
+
user_id: 1
|
27
|
+
)
|
28
|
+
```
|
29
|
+
|
30
|
+
### Parameters
|
31
|
+
|
32
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
33
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
34
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
35
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `export_status` and `export_type`.
|
36
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `export_status` and `export_type`.
|
37
|
+
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
38
|
+
|
39
|
+
|
40
|
+
---
|
41
|
+
|
42
|
+
## Show Export
|
43
|
+
|
44
|
+
```
|
45
|
+
Files::Export.find(id)
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
* `id` (int64): Required - Export ID.
|
data/docs/site.md
CHANGED
@@ -61,7 +61,7 @@
|
|
61
61
|
"dav_enabled": true,
|
62
62
|
"dav_user_root_enabled": true,
|
63
63
|
"days_to_retain_backups": 30,
|
64
|
-
"document_edits_in_bundle_allowed":
|
64
|
+
"document_edits_in_bundle_allowed": true,
|
65
65
|
"default_time_zone": "Pacific Time (US & Canada)",
|
66
66
|
"desktop_app": true,
|
67
67
|
"desktop_app_session_ip_pinning": true,
|
@@ -348,7 +348,7 @@
|
|
348
348
|
* `dav_enabled` (boolean): Is WebDAV enabled?
|
349
349
|
* `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
|
350
350
|
* `days_to_retain_backups` (int64): Number of days to keep deleted files
|
351
|
-
* `document_edits_in_bundle_allowed` (
|
351
|
+
* `document_edits_in_bundle_allowed` (boolean): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
352
352
|
* `default_time_zone` (string): Site default time zone
|
353
353
|
* `desktop_app` (boolean): Is the desktop app enabled?
|
354
354
|
* `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
|
@@ -572,7 +572,7 @@ Files::Site.update(
|
|
572
572
|
bundle_registration_notifications: "never",
|
573
573
|
bundle_activity_notifications: "never",
|
574
574
|
bundle_upload_receipt_notifications: "never",
|
575
|
-
document_edits_in_bundle_allowed:
|
575
|
+
document_edits_in_bundle_allowed: true,
|
576
576
|
password_requirements_apply_to_bundles: true,
|
577
577
|
prevent_root_permissions_for_non_site_admins: true,
|
578
578
|
opt_out_global: true,
|
@@ -730,7 +730,7 @@ Files::Site.update(
|
|
730
730
|
* `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
|
731
731
|
* `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
|
732
732
|
* `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
|
733
|
-
* `document_edits_in_bundle_allowed` (
|
733
|
+
* `document_edits_in_bundle_allowed` (boolean): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
734
734
|
* `password_requirements_apply_to_bundles` (boolean): Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
|
735
735
|
* `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
736
736
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
@@ -42,7 +42,7 @@ module Files
|
|
42
42
|
# Parameters:
|
43
43
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
44
44
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
45
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
46
46
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
|
47
47
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
48
48
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class Export
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# int64 - ID for this Export
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
17
|
+
# string - Status of the Export
|
18
|
+
def export_status
|
19
|
+
@attributes[:export_status]
|
20
|
+
end
|
21
|
+
|
22
|
+
# string - Type of data being exported
|
23
|
+
def export_type
|
24
|
+
@attributes[:export_type]
|
25
|
+
end
|
26
|
+
|
27
|
+
# string - Link to download Export file.
|
28
|
+
def download_uri
|
29
|
+
@attributes[:download_uri]
|
30
|
+
end
|
31
|
+
|
32
|
+
# Parameters:
|
33
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
34
|
+
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
35
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
36
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `export_status` and `export_type`.
|
37
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `export_status` and `export_type`.
|
38
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
39
|
+
def self.list(params = {}, options = {})
|
40
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
41
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
42
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
43
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
44
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
45
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
46
|
+
|
47
|
+
List.new(Export, params) do
|
48
|
+
Api.send_request("/exports", :get, params, options)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.all(params = {}, options = {})
|
53
|
+
list(params, options)
|
54
|
+
end
|
55
|
+
|
56
|
+
# Parameters:
|
57
|
+
# id (required) - int64 - Export ID.
|
58
|
+
def self.find(id, params = {}, options = {})
|
59
|
+
params ||= {}
|
60
|
+
params[:id] = id
|
61
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
62
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
63
|
+
|
64
|
+
response, options = Api.send_request("/exports/#{params[:id]}", :get, params, options)
|
65
|
+
Export.new(response.data, options)
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.get(id, params = {}, options = {})
|
69
|
+
find(id, params, options)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -249,7 +249,7 @@ module Files
|
|
249
249
|
@attributes[:days_to_retain_backups]
|
250
250
|
end
|
251
251
|
|
252
|
-
#
|
252
|
+
# boolean - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
253
253
|
def document_edits_in_bundle_allowed
|
254
254
|
@attributes[:document_edits_in_bundle_allowed]
|
255
255
|
end
|
@@ -943,7 +943,7 @@ module Files
|
|
943
943
|
# bundle_registration_notifications - string - Do Bundle owners receive registration notification?
|
944
944
|
# bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
|
945
945
|
# bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
|
946
|
-
# document_edits_in_bundle_allowed -
|
946
|
+
# document_edits_in_bundle_allowed - boolean - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
947
947
|
# password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
|
948
948
|
# prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
949
949
|
# opt_out_global - boolean - Use servers in the USA only?
|
@@ -1063,7 +1063,6 @@ module Files
|
|
1063
1063
|
raise InvalidParameterError.new("Bad parameter: bundle_registration_notifications must be an String") if params[:bundle_registration_notifications] and !params[:bundle_registration_notifications].is_a?(String)
|
1064
1064
|
raise InvalidParameterError.new("Bad parameter: bundle_activity_notifications must be an String") if params[:bundle_activity_notifications] and !params[:bundle_activity_notifications].is_a?(String)
|
1065
1065
|
raise InvalidParameterError.new("Bad parameter: bundle_upload_receipt_notifications must be an String") if params[:bundle_upload_receipt_notifications] and !params[:bundle_upload_receipt_notifications].is_a?(String)
|
1066
|
-
raise InvalidParameterError.new("Bad parameter: document_edits_in_bundle_allowed must be an String") if params[:document_edits_in_bundle_allowed] and !params[:document_edits_in_bundle_allowed].is_a?(String)
|
1067
1066
|
raise InvalidParameterError.new("Bad parameter: disable_users_from_inactivity_period_days must be an Integer") if params[:disable_users_from_inactivity_period_days] and !params[:disable_users_from_inactivity_period_days].is_a?(Integer)
|
1068
1067
|
raise InvalidParameterError.new("Bad parameter: sftp_host_key_type must be an String") if params[:sftp_host_key_type] and !params[:sftp_host_key_type].is_a?(String)
|
1069
1068
|
raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_id must be an Integer") if params[:active_sftp_host_key_id] and !params[:active_sftp_host_key_id].is_a?(Integer)
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
@@ -62,6 +62,7 @@ require "files.com/models/email_incoming_message"
|
|
62
62
|
require "files.com/models/email_log"
|
63
63
|
require "files.com/models/errors"
|
64
64
|
require "files.com/models/exavault_api_request_log"
|
65
|
+
require "files.com/models/export"
|
65
66
|
require "files.com/models/external_event"
|
66
67
|
require "files.com/models/file"
|
67
68
|
require "files.com/models/file_action"
|
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.
|
4
|
+
version: 1.1.173
|
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-11-
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- docs/email_log.md
|
145
145
|
- docs/errors.md
|
146
146
|
- docs/exavault_api_request_log.md
|
147
|
+
- docs/export.md
|
147
148
|
- docs/external_event.md
|
148
149
|
- docs/file.md
|
149
150
|
- docs/file_action.md
|
@@ -248,6 +249,7 @@ files:
|
|
248
249
|
- lib/files.com/models/email_log.rb
|
249
250
|
- lib/files.com/models/errors.rb
|
250
251
|
- lib/files.com/models/exavault_api_request_log.rb
|
252
|
+
- lib/files.com/models/export.rb
|
251
253
|
- lib/files.com/models/external_event.rb
|
252
254
|
- lib/files.com/models/file.rb
|
253
255
|
- lib/files.com/models/file_action.rb
|