files.com 1.1.32 → 1.1.33
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/group.md +8 -0
- data/docs/site.md +1 -1
- data/docs/user.md +4 -4
- data/lib/files.com/models/group.rb +15 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1013d85540f4e675b94061f769e2e6ec2edbae5742d89325672731c6001bc6e
|
|
4
|
+
data.tar.gz: 42beb0793becfbc48c380ca8ca0867897e59542bba61e7042b1e9b38d1563928
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c5d968b989e3f45daee5daaa97df4aa6762ab18623e6402cb883c0a73ef9332ea02b88b7751f5019d7c58643c786fe9dad9ef4085bbc187e3ac26a7158ed404
|
|
7
|
+
data.tar.gz: c4e82ebccca1a556f8c475ec09fd7c7987a9a583f0b12bfd63890f855e20390f2c7bf94728484309b8648671f68c4807cea178e9bfce062d712493bfbbce7fd1
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.33
|
data/docs/group.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"name": "owners",
|
|
9
|
+
"allowed_ips": "10.0.0.0/8\n127.0.0.1",
|
|
9
10
|
"admin_ids": "1",
|
|
10
11
|
"notes": "example",
|
|
11
12
|
"user_ids": "1",
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
|
|
20
21
|
* `id` (int64): Group ID
|
|
21
22
|
* `name` (string): Group name
|
|
23
|
+
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
|
|
22
24
|
* `admin_ids` (string): Comma-delimited list of user IDs who are group administrators (separated by commas)
|
|
23
25
|
* `notes` (string): Notes about this group
|
|
24
26
|
* `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
|
|
@@ -75,6 +77,7 @@ Files::Group.create(
|
|
|
75
77
|
sftp_permission: true,
|
|
76
78
|
dav_permission: true,
|
|
77
79
|
restapi_permission: true,
|
|
80
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
78
81
|
name: "name"
|
|
79
82
|
)
|
|
80
83
|
```
|
|
@@ -88,6 +91,7 @@ Files::Group.create(
|
|
|
88
91
|
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
|
89
92
|
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
|
90
93
|
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
|
94
|
+
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
|
|
91
95
|
* `name` (string): Required - Group name.
|
|
92
96
|
|
|
93
97
|
|
|
@@ -104,6 +108,7 @@ Files::Group.update(id,
|
|
|
104
108
|
sftp_permission: true,
|
|
105
109
|
dav_permission: true,
|
|
106
110
|
restapi_permission: true,
|
|
111
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
107
112
|
name: "owners"
|
|
108
113
|
)
|
|
109
114
|
```
|
|
@@ -118,6 +123,7 @@ Files::Group.update(id,
|
|
|
118
123
|
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
|
119
124
|
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
|
120
125
|
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
|
126
|
+
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
|
|
121
127
|
* `name` (string): Group name.
|
|
122
128
|
|
|
123
129
|
|
|
@@ -149,6 +155,7 @@ group.update(
|
|
|
149
155
|
sftp_permission: true,
|
|
150
156
|
dav_permission: true,
|
|
151
157
|
restapi_permission: true,
|
|
158
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
152
159
|
name: "owners"
|
|
153
160
|
)
|
|
154
161
|
```
|
|
@@ -163,6 +170,7 @@ group.update(
|
|
|
163
170
|
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
|
164
171
|
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
|
165
172
|
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
|
173
|
+
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
|
|
166
174
|
* `name` (string): Group name.
|
|
167
175
|
|
|
168
176
|
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"admin_group_ids": [
|
|
10
10
|
1
|
|
11
11
|
],
|
|
12
|
-
"allowed_ips": "
|
|
12
|
+
"allowed_ips": "10.0.0.0/8\n127.0.0.1",
|
|
13
13
|
"attachments_permission": true,
|
|
14
14
|
"api_keys_count": 1,
|
|
15
15
|
"authenticate_until": "2000-01-01T01:00:00Z",
|
|
@@ -190,7 +190,7 @@ Files::User.create(
|
|
|
190
190
|
group_id: 1,
|
|
191
191
|
group_ids: "example",
|
|
192
192
|
announcements_read: true,
|
|
193
|
-
allowed_ips: "
|
|
193
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
194
194
|
attachments_permission: true,
|
|
195
195
|
authenticate_until: "2000-01-01T01:00:00Z",
|
|
196
196
|
authentication_method: "password",
|
|
@@ -325,7 +325,7 @@ Files::User.update(id,
|
|
|
325
325
|
group_id: 1,
|
|
326
326
|
group_ids: "example",
|
|
327
327
|
announcements_read: true,
|
|
328
|
-
allowed_ips: "
|
|
328
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
329
329
|
attachments_permission: true,
|
|
330
330
|
authenticate_until: "2000-01-01T01:00:00Z",
|
|
331
331
|
authentication_method: "password",
|
|
@@ -482,7 +482,7 @@ user.update(
|
|
|
482
482
|
group_id: 1,
|
|
483
483
|
group_ids: "example",
|
|
484
484
|
announcements_read: true,
|
|
485
|
-
allowed_ips: "
|
|
485
|
+
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
486
486
|
attachments_permission: true,
|
|
487
487
|
authenticate_until: "2000-01-01T01:00:00Z",
|
|
488
488
|
authentication_method: "password",
|
|
@@ -27,6 +27,15 @@ module Files
|
|
|
27
27
|
@attributes[:name] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# string - A list of allowed IPs if applicable. Newline delimited
|
|
31
|
+
def allowed_ips
|
|
32
|
+
@attributes[:allowed_ips]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def allowed_ips=(value)
|
|
36
|
+
@attributes[:allowed_ips] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
30
39
|
# string - Comma-delimited list of user IDs who are group administrators (separated by commas)
|
|
31
40
|
def admin_ids
|
|
32
41
|
@attributes[:admin_ids]
|
|
@@ -107,6 +116,7 @@ module Files
|
|
|
107
116
|
# sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
|
108
117
|
# dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
|
109
118
|
# restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
|
119
|
+
# allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
|
|
110
120
|
# name - string - Group name.
|
|
111
121
|
def update(params = {})
|
|
112
122
|
params ||= {}
|
|
@@ -116,6 +126,7 @@ module Files
|
|
|
116
126
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
117
127
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
118
128
|
raise InvalidParameterError.new("Bad parameter: admin_ids must be an String") if params[:admin_ids] and !params[:admin_ids].is_a?(String)
|
|
129
|
+
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
119
130
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
120
131
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
121
132
|
|
|
@@ -196,11 +207,13 @@ module Files
|
|
|
196
207
|
# sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
|
197
208
|
# dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
|
198
209
|
# restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
|
210
|
+
# allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
|
|
199
211
|
# name (required) - string - Group name.
|
|
200
212
|
def self.create(params = {}, options = {})
|
|
201
213
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
202
214
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
203
215
|
raise InvalidParameterError.new("Bad parameter: admin_ids must be an String") if params[:admin_ids] and !params[:admin_ids].is_a?(String)
|
|
216
|
+
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
204
217
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
205
218
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
206
219
|
|
|
@@ -216,6 +229,7 @@ module Files
|
|
|
216
229
|
# sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
|
217
230
|
# dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
|
218
231
|
# restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
|
232
|
+
# allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
|
|
219
233
|
# name - string - Group name.
|
|
220
234
|
def self.update(id, params = {}, options = {})
|
|
221
235
|
params ||= {}
|
|
@@ -224,6 +238,7 @@ module Files
|
|
|
224
238
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
225
239
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
226
240
|
raise InvalidParameterError.new("Bad parameter: admin_ids must be an String") if params[:admin_ids] and !params[:admin_ids].is_a?(String)
|
|
241
|
+
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
227
242
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
228
243
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
229
244
|
|
data/lib/files.com/version.rb
CHANGED
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.33
|
|
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
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|