files.com 1.1.737 → 1.1.739
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/automation.md +1 -12
- data/docs/group_user.md +1 -1
- data/docs/partner.md +10 -0
- data/docs/partner_connection.md +19 -0
- data/docs/user.md +2 -2
- data/lib/files.com/models/automation.rb +1 -16
- data/lib/files.com/models/group_user.rb +1 -1
- data/lib/files.com/models/partner.rb +9 -0
- data/lib/files.com/models/partner_connection.rb +37 -0
- data/lib/files.com/models/user.rb +2 -2
- 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: fb068d7f5ccf84dd4eaeb364c3a75a47ebd4376c5db274aff41be1566f9277f5
|
|
4
|
+
data.tar.gz: 9cf430859c53101d653932aaebae2d2eabf9a8c58371904577f95a65fc9e340c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62be9c2f3cc6b99124f1453a5905fa2c74496eb22c483518f2a777a9d2562a6de234238e4daa697c981dfe1ecad2c08756acd6e957a32d33330192e383d60808
|
|
7
|
+
data.tar.gz: 6734128ab21d20c4b9ee7610b9521741af530cabd3ddb7fb3f27072bac8b1914510152d5227b19597920d4caade047e51e78a0a4467ee781415049fff455353c
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.739
|
data/docs/automation.md
CHANGED
|
@@ -102,10 +102,6 @@
|
|
|
102
102
|
],
|
|
103
103
|
"schedule_time_zone": "Eastern Time (US & Canada)",
|
|
104
104
|
"source": "example",
|
|
105
|
-
"legacy_sync_ids": [
|
|
106
|
-
1,
|
|
107
|
-
2
|
|
108
|
-
],
|
|
109
105
|
"sync_ids": [
|
|
110
106
|
1,
|
|
111
107
|
2
|
|
@@ -164,8 +160,7 @@
|
|
|
164
160
|
* `schedule_times_of_day` (array(string)): Times of day to run in HH:MM format (24-hour). For `custom_schedule`, run at these times on specified days of week. For `daily`, run at these times on the scheduled interval date.
|
|
165
161
|
* `schedule_time_zone` (string): Time zone for the schedule. If not set, times are interpreted as UTC.
|
|
166
162
|
* `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
167
|
-
* `
|
|
168
|
-
* `sync_ids` (array(int64)): IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
|
|
163
|
+
* `sync_ids` (array(int64)): IDs of Syncs to run by this Automation.
|
|
169
164
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, copy, move, archived_delete, update, read, destroy
|
|
170
165
|
* `trigger` (string): How this automation is triggered to run.
|
|
171
166
|
* `user_id` (int64): User ID of the Automation's creator.
|
|
@@ -229,7 +224,6 @@ Files::Automation.create(
|
|
|
229
224
|
destination_replace_to: "example",
|
|
230
225
|
interval: "year",
|
|
231
226
|
path: "example",
|
|
232
|
-
legacy_sync_ids: [1,2],
|
|
233
227
|
sync_ids: [1,2],
|
|
234
228
|
user_ids: [1,2],
|
|
235
229
|
group_ids: [1,2],
|
|
@@ -271,7 +265,6 @@ Files::Automation.create(
|
|
|
271
265
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
272
266
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
273
267
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
274
|
-
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
275
268
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
276
269
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
277
270
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -345,7 +338,6 @@ Files::Automation.update(id,
|
|
|
345
338
|
destination_replace_to: "example",
|
|
346
339
|
interval: "year",
|
|
347
340
|
path: "example",
|
|
348
|
-
legacy_sync_ids: [1,2],
|
|
349
341
|
sync_ids: [1,2],
|
|
350
342
|
user_ids: [1,2],
|
|
351
343
|
group_ids: [1,2],
|
|
@@ -387,7 +379,6 @@ Files::Automation.update(id,
|
|
|
387
379
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
388
380
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
389
381
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
390
|
-
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
391
382
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
392
383
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
393
384
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -479,7 +470,6 @@ automation.update(
|
|
|
479
470
|
destination_replace_to: "example",
|
|
480
471
|
interval: "year",
|
|
481
472
|
path: "example",
|
|
482
|
-
legacy_sync_ids: [1,2],
|
|
483
473
|
sync_ids: [1,2],
|
|
484
474
|
user_ids: [1,2],
|
|
485
475
|
group_ids: [1,2],
|
|
@@ -521,7 +511,6 @@ automation.update(
|
|
|
521
511
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
522
512
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
523
513
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
524
|
-
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
525
514
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
526
515
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
527
516
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
data/docs/group_user.md
CHANGED
|
@@ -35,7 +35,7 @@ Files::GroupUser.list(
|
|
|
35
35
|
|
|
36
36
|
* `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.
|
|
37
37
|
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
38
|
-
* `group_id` (int64): Group ID.
|
|
38
|
+
* `group_id` (int64): Group ID. If provided, returns memberships of this group. Requires a Site Administrator, a Read-only Administrator, a Workspace Administrator for the group's workspace, or a Group Administrator of this group.
|
|
39
39
|
* `user_id` (int64): User ID. If provided, will return group_users of this user.
|
|
40
40
|
|
|
41
41
|
|
data/docs/partner.md
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
"allow_providing_gpg_keys": false,
|
|
11
11
|
"allow_user_creation": false,
|
|
12
12
|
"cc_emails_to_responsible_party": false,
|
|
13
|
+
"connections": [
|
|
14
|
+
{
|
|
15
|
+
"id": 1,
|
|
16
|
+
"role": "guest",
|
|
17
|
+
"site_id": 2,
|
|
18
|
+
"site_name": "Acme Site",
|
|
19
|
+
"mount_path": "_/Sites/2"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
13
22
|
"id": 1,
|
|
14
23
|
"ai_assistant_personality_id": 1,
|
|
15
24
|
"workspace_id": 1,
|
|
@@ -41,6 +50,7 @@
|
|
|
41
50
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
42
51
|
* `allow_user_creation` (boolean): Allow Partner Admins to create users.
|
|
43
52
|
* `cc_emails_to_responsible_party` (boolean): When `true`, emails sent to Partner users are copied to the responsible User or Group.
|
|
53
|
+
* `connections` (array(object)): Approved Connected Sites relationships for this Partner, in both directions. Empty when this Partner has no connections. Read-only.
|
|
44
54
|
* `id` (int64): The unique ID of the Partner.
|
|
45
55
|
* `ai_assistant_personality_id` (int64): AI Assistant Personality ID assigned to this Partner, if any. Users in the Partner inherit it unless a direct per-user assignment overrides it.
|
|
46
56
|
* `workspace_id` (int64): ID of the Workspace associated with this Partner.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PartnerConnection
|
|
2
|
+
|
|
3
|
+
## Example PartnerConnection Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"role": "guest",
|
|
9
|
+
"site_id": 2,
|
|
10
|
+
"site_name": "Acme Site",
|
|
11
|
+
"mount_path": "_/Sites/2"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
* `id` (int64): Relationship ID used with DELETE /partner_sites/:id to disconnect.
|
|
16
|
+
* `role` (string): This Partner's role in this connection. A host shares local files with the connected site; a guest accesses files shared by the connected site.
|
|
17
|
+
* `site_id` (int64): ID of the connected site.
|
|
18
|
+
* `site_name` (string): Name of the connected site.
|
|
19
|
+
* `mount_path` (string): File API path to the connected Host's mount on this site when role is guest. Null when role is host. File access remains subject to the caller's permissions and the Host Partner's grants.
|
data/docs/user.md
CHANGED
|
@@ -567,7 +567,7 @@ Files::User.update(id,
|
|
|
567
567
|
* `user_home` (string): Home folder for FTP/SFTP. For users with the partner_root filesystem layout, this path is relative to the Partner root folder. In all other cases, it is an absolute path. Only applies to FTP and SFTP, and not any other interface.
|
|
568
568
|
* `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
|
|
569
569
|
* `username` (string): User's username
|
|
570
|
-
* `workspace_id` (int64): Workspace ID
|
|
570
|
+
* `workspace_id` (int64): Workspace ID. Only Site Administrators can change this field. Values supplied by Workspace Administrators, Group Administrators, or other non-Site Administrators using `/user` are ignored.
|
|
571
571
|
* `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
572
572
|
* `convert_to_partner_user` (boolean): Required when assigning a Partner to an existing non-Partner user. If true, convert the user by assigning the partner_id provided.
|
|
573
573
|
|
|
@@ -779,7 +779,7 @@ user.update(
|
|
|
779
779
|
* `user_home` (string): Home folder for FTP/SFTP. For users with the partner_root filesystem layout, this path is relative to the Partner root folder. In all other cases, it is an absolute path. Only applies to FTP and SFTP, and not any other interface.
|
|
780
780
|
* `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
|
|
781
781
|
* `username` (string): User's username
|
|
782
|
-
* `workspace_id` (int64): Workspace ID
|
|
782
|
+
* `workspace_id` (int64): Workspace ID. Only Site Administrators can change this field. Values supplied by Workspace Administrators, Group Administrators, or other non-Site Administrators using `/user` are ignored.
|
|
783
783
|
* `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
784
784
|
* `convert_to_partner_user` (boolean): Required when assigning a Partner to an existing non-Partner user. If true, convert the user by assigning the partner_id provided.
|
|
785
785
|
|
|
@@ -342,16 +342,7 @@ module Files
|
|
|
342
342
|
@attributes[:source] = value
|
|
343
343
|
end
|
|
344
344
|
|
|
345
|
-
# array(int64) - IDs of
|
|
346
|
-
def legacy_sync_ids
|
|
347
|
-
@attributes[:legacy_sync_ids]
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
def legacy_sync_ids=(value)
|
|
351
|
-
@attributes[:legacy_sync_ids] = value
|
|
352
|
-
end
|
|
353
|
-
|
|
354
|
-
# array(int64) - IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
|
|
345
|
+
# array(int64) - IDs of Syncs to run by this Automation.
|
|
355
346
|
def sync_ids
|
|
356
347
|
@attributes[:sync_ids]
|
|
357
348
|
end
|
|
@@ -456,7 +447,6 @@ module Files
|
|
|
456
447
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
457
448
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
458
449
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
459
|
-
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
460
450
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
461
451
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
462
452
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -497,7 +487,6 @@ module Files
|
|
|
497
487
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params[:destination_replace_to] and !params[:destination_replace_to].is_a?(String)
|
|
498
488
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
|
499
489
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
500
|
-
raise InvalidParameterError.new("Bad parameter: legacy_sync_ids must be an String") if params[:legacy_sync_ids] and !params[:legacy_sync_ids].is_a?(String)
|
|
501
490
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
|
502
491
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
503
492
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
|
@@ -605,7 +594,6 @@ module Files
|
|
|
605
594
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
606
595
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
607
596
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
608
|
-
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
609
597
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
610
598
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
611
599
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -643,7 +631,6 @@ module Files
|
|
|
643
631
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params[:destination_replace_to] and !params[:destination_replace_to].is_a?(String)
|
|
644
632
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
|
645
633
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
646
|
-
raise InvalidParameterError.new("Bad parameter: legacy_sync_ids must be an String") if params[:legacy_sync_ids] and !params[:legacy_sync_ids].is_a?(String)
|
|
647
634
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
|
648
635
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
649
636
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
|
@@ -706,7 +693,6 @@ module Files
|
|
|
706
693
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
707
694
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
708
695
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
709
|
-
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
710
696
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
711
697
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
712
698
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -746,7 +732,6 @@ module Files
|
|
|
746
732
|
raise InvalidParameterError.new("Bad parameter: destination_replace_to must be an String") if params[:destination_replace_to] and !params[:destination_replace_to].is_a?(String)
|
|
747
733
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
|
748
734
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
749
|
-
raise InvalidParameterError.new("Bad parameter: legacy_sync_ids must be an String") if params[:legacy_sync_ids] and !params[:legacy_sync_ids].is_a?(String)
|
|
750
735
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
|
751
736
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
752
737
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
|
@@ -117,7 +117,7 @@ module Files
|
|
|
117
117
|
# Parameters:
|
|
118
118
|
# 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.
|
|
119
119
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
120
|
-
# group_id - int64 - Group ID.
|
|
120
|
+
# group_id - int64 - Group ID. If provided, returns memberships of this group. Requires a Site Administrator, a Read-only Administrator, a Workspace Administrator for the group's workspace, or a Group Administrator of this group.
|
|
121
121
|
# user_id - int64 - User ID. If provided, will return group_users of this user.
|
|
122
122
|
def self.list(params = {}, options = {})
|
|
123
123
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
@@ -63,6 +63,15 @@ module Files
|
|
|
63
63
|
@attributes[:cc_emails_to_responsible_party] = value
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
# array(object) - Approved Connected Sites relationships for this Partner, in both directions. Empty when this Partner has no connections. Read-only.
|
|
67
|
+
def connections
|
|
68
|
+
@attributes[:connections]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def connections=(value)
|
|
72
|
+
@attributes[:connections] = value
|
|
73
|
+
end
|
|
74
|
+
|
|
66
75
|
# int64 - The unique ID of the Partner.
|
|
67
76
|
def id
|
|
68
77
|
@attributes[:id]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class PartnerConnection
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Relationship ID used with DELETE /partner_sites/:id to disconnect.
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - This Partner's role in this connection. A host shares local files with the connected site; a guest accesses files shared by the connected site.
|
|
18
|
+
def role
|
|
19
|
+
@attributes[:role]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# int64 - ID of the connected site.
|
|
23
|
+
def site_id
|
|
24
|
+
@attributes[:site_id]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# string - Name of the connected site.
|
|
28
|
+
def site_name
|
|
29
|
+
@attributes[:site_name]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# string - File API path to the connected Host's mount on this site when role is guest. Null when role is host. File access remains subject to the caller's permissions and the Host Partner's grants.
|
|
33
|
+
def mount_path
|
|
34
|
+
@attributes[:mount_path]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -1016,7 +1016,7 @@ module Files
|
|
|
1016
1016
|
# user_home - string - Home folder for FTP/SFTP. For users with the partner_root filesystem layout, this path is relative to the Partner root folder. In all other cases, it is an absolute path. Only applies to FTP and SFTP, and not any other interface.
|
|
1017
1017
|
# workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
|
|
1018
1018
|
# username - string - User's username
|
|
1019
|
-
# workspace_id - int64 - Workspace ID
|
|
1019
|
+
# workspace_id - int64 - Workspace ID. Only Site Administrators can change this field. Values supplied by Workspace Administrators, Group Administrators, or other non-Site Administrators using `/user` are ignored.
|
|
1020
1020
|
# clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
1021
1021
|
# convert_to_partner_user - boolean - Required when assigning a Partner to an existing non-Partner user. If true, convert the user by assigning the partner_id provided.
|
|
1022
1022
|
def update(params = {})
|
|
@@ -1364,7 +1364,7 @@ module Files
|
|
|
1364
1364
|
# user_home - string - Home folder for FTP/SFTP. For users with the partner_root filesystem layout, this path is relative to the Partner root folder. In all other cases, it is an absolute path. Only applies to FTP and SFTP, and not any other interface.
|
|
1365
1365
|
# workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
|
|
1366
1366
|
# username - string - User's username
|
|
1367
|
-
# workspace_id - int64 - Workspace ID
|
|
1367
|
+
# workspace_id - int64 - Workspace ID. Only Site Administrators can change this field. Values supplied by Workspace Administrators, Group Administrators, or other non-Site Administrators using `/user` are ignored.
|
|
1368
1368
|
# clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
1369
1369
|
# convert_to_partner_user - boolean - Required when assigning a Partner to an existing non-Partner user. If true, convert the user by assigning the partner_id provided.
|
|
1370
1370
|
def self.update(id, params = {}, options = {})
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -122,6 +122,7 @@ require "files.com/models/outbound_connection_log"
|
|
|
122
122
|
require "files.com/models/partner"
|
|
123
123
|
require "files.com/models/partner_channel"
|
|
124
124
|
require "files.com/models/partner_channel_template"
|
|
125
|
+
require "files.com/models/partner_connection"
|
|
125
126
|
require "files.com/models/partner_site"
|
|
126
127
|
require "files.com/models/partner_site_request"
|
|
127
128
|
require "files.com/models/payment"
|
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.739
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -261,6 +261,7 @@ files:
|
|
|
261
261
|
- docs/partner.md
|
|
262
262
|
- docs/partner_channel.md
|
|
263
263
|
- docs/partner_channel_template.md
|
|
264
|
+
- docs/partner_connection.md
|
|
264
265
|
- docs/partner_site.md
|
|
265
266
|
- docs/partner_site_request.md
|
|
266
267
|
- docs/payment.md
|
|
@@ -413,6 +414,7 @@ files:
|
|
|
413
414
|
- lib/files.com/models/partner.rb
|
|
414
415
|
- lib/files.com/models/partner_channel.rb
|
|
415
416
|
- lib/files.com/models/partner_channel_template.rb
|
|
417
|
+
- lib/files.com/models/partner_connection.rb
|
|
416
418
|
- lib/files.com/models/partner_site.rb
|
|
417
419
|
- lib/files.com/models/partner_site_request.rb
|
|
418
420
|
- lib/files.com/models/payment.rb
|