files.com 1.1.581 → 1.1.582

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c48201f3193bbdcf48190fededfeb7f24a33c88721998f538e96eeeace9c8aa1
4
- data.tar.gz: 5270b772c58f7f9593427e9989044831c27cf79b5d8766ea8cf6c151c7efdcb4
3
+ metadata.gz: 3a549dddfbda1d0a57320e4a032ef6f6de5813b370341d6d89819b6fa699f74e
4
+ data.tar.gz: 8f6f9b4fa5630b4a3e6a4d30f15d3b54069e7278bc646d3807f063a3fb5e6307
5
5
  SHA512:
6
- metadata.gz: 5a5dc7f29e68c49c19df6efe9d77df85e7dd89f32bca2925602df776f1a80a7dd3daa7ac27ccfa95c1cd67a37d5e96bb8e055d0a8d409b3e91e5ad5f02dda668
7
- data.tar.gz: 43b5843c26e5bfa76da66b54af1d20aaaa199d37dd247acb19a101b92eceaddf34b30a684dcfb3fe966e0064ad01125ae060232fcde47e76d6d37c60dbda4f48
6
+ metadata.gz: 61a41ec94811c953466ce6f3301bc69bea411696db394f77ff599269b901809ee0f37f36bb14a5a20810dc68c4f069c75b4f9a5d5785e73232663139ddf392f2
7
+ data.tar.gz: a24663d88ede1e0812acbd0cc1333e29e522eeb4112d1527a2f20c4d50396f5b51a267a215861662bf73391b5e0642bbf0d811788ca7406771e58a01a876a00c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.581
1
+ 1.1.582
data/docs/permission.md CHANGED
@@ -10,6 +10,12 @@
10
10
  "username": "user",
11
11
  "group_id": 1,
12
12
  "group_name": "example",
13
+ "group_ids": [
14
+ 1
15
+ ],
16
+ "group_names": [
17
+ "example"
18
+ ],
13
19
  "partner_id": 1,
14
20
  "partner_name": "Acme Corp.",
15
21
  "permission": "full",
@@ -24,6 +30,8 @@
24
30
  * `username` (string): Username (if applicable)
25
31
  * `group_id` (int64): Group ID
26
32
  * `group_name` (string): Group name (if applicable)
33
+ * `group_ids` (array(int64)): Group IDs when this permission requires multiple groups
34
+ * `group_names` (array(string)): Group names when this permission requires multiple groups
27
35
  * `partner_id` (int64): Partner ID (if applicable)
28
36
  * `partner_name` (string): Partner name (if applicable)
29
37
  * `permission` (string): Permission type. See the table referenced in the documentation for an explanation of each permission.
@@ -67,6 +75,7 @@ Files::Permission.list(
67
75
  Files::Permission.create(
68
76
  path: "path",
69
77
  group_id: 1,
78
+ group_ids: [1],
70
79
  permission: "full",
71
80
  recursive: false,
72
81
  partner_id: 1,
@@ -81,6 +90,7 @@ Files::Permission.create(
81
90
 
82
91
  * `path` (string): Required - Folder path
83
92
  * `group_id` (int64): Group ID. Provide `group_name` or `group_id`
93
+ * `group_ids` (string): Group IDs when the permission requires multiple groups. If sent as a string, it should be comma-delimited.
84
94
  * `permission` (string): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
85
95
  * `recursive` (boolean): Apply to subfolders recursively?
86
96
  * `partner_id` (int64): Partner ID if this Permission belongs to a partner.
@@ -63,6 +63,24 @@ module Files
63
63
  @attributes[:group_name] = value
64
64
  end
65
65
 
66
+ # array(int64) - Group IDs when this permission requires multiple groups
67
+ def group_ids
68
+ @attributes[:group_ids]
69
+ end
70
+
71
+ def group_ids=(value)
72
+ @attributes[:group_ids] = value
73
+ end
74
+
75
+ # array(string) - Group names when this permission requires multiple groups
76
+ def group_names
77
+ @attributes[:group_names]
78
+ end
79
+
80
+ def group_names=(value)
81
+ @attributes[:group_names] = value
82
+ end
83
+
66
84
  # int64 - Partner ID (if applicable)
67
85
  def partner_id
68
86
  @attributes[:partner_id]
@@ -168,6 +186,7 @@ module Files
168
186
  # Parameters:
169
187
  # path (required) - string - Folder path
170
188
  # group_id - int64 - Group ID. Provide `group_name` or `group_id`
189
+ # group_ids - string - Group IDs when the permission requires multiple groups. If sent as a string, it should be comma-delimited.
171
190
  # permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
172
191
  # recursive - boolean - Apply to subfolders recursively?
173
192
  # partner_id - int64 - Partner ID if this Permission belongs to a partner.
@@ -178,6 +197,7 @@ module Files
178
197
  def self.create(params = {}, options = {})
179
198
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
180
199
  raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
200
+ raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
181
201
  raise InvalidParameterError.new("Bad parameter: permission must be an String") if params[:permission] and !params[:permission].is_a?(String)
182
202
  raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
183
203
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.581"
4
+ VERSION = "1.1.582"
5
5
  end
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.581
4
+ version: 1.1.582
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-03-22 00:00:00.000000000 Z
11
+ date: 2026-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable