files.com 1.1.31 → 1.1.32
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 +0 -8
- data/docs/site.md +1 -1
- data/docs/user.md +4 -4
- data/lib/files.com/models/group.rb +0 -15
- 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: 0aea90fee598705eaac3f042b62efe1acde02e67e69cb399478b530ea656fa30
|
|
4
|
+
data.tar.gz: edeb6a39da39a8629ca1749197d989b47e7ad8910cf439b7872f3e6251ee37c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5ea51c641b97fac6813fdcad28b0407445c6119df3ea6536e39201756178a1fb1ec9fee2932fe48608d455fccee9de250d5cace4a2ca459b198fba056cb05d1
|
|
7
|
+
data.tar.gz: 06ca7d7b7a42deb56f80a1447e8cd3555b814b7fb65ca44dee62bc7af1863df56b7466a00a6aca8bda550ee5cd81436e25832e37fcdaa9031bd24b85d71f2c65
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.32
|
data/docs/group.md
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"name": "owners",
|
|
9
|
-
"allowed_ips": "10.0.0.0/8\n127.0.0.1",
|
|
10
9
|
"admin_ids": "1",
|
|
11
10
|
"notes": "example",
|
|
12
11
|
"user_ids": "1",
|
|
@@ -20,7 +19,6 @@
|
|
|
20
19
|
|
|
21
20
|
* `id` (int64): Group ID
|
|
22
21
|
* `name` (string): Group name
|
|
23
|
-
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
|
|
24
22
|
* `admin_ids` (string): Comma-delimited list of user IDs who are group administrators (separated by commas)
|
|
25
23
|
* `notes` (string): Notes about this group
|
|
26
24
|
* `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
|
|
@@ -77,7 +75,6 @@ Files::Group.create(
|
|
|
77
75
|
sftp_permission: true,
|
|
78
76
|
dav_permission: true,
|
|
79
77
|
restapi_permission: true,
|
|
80
|
-
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
81
78
|
name: "name"
|
|
82
79
|
)
|
|
83
80
|
```
|
|
@@ -91,7 +88,6 @@ Files::Group.create(
|
|
|
91
88
|
* `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.
|
|
92
89
|
* `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.
|
|
93
90
|
* `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
|
|
95
91
|
* `name` (string): Required - Group name.
|
|
96
92
|
|
|
97
93
|
|
|
@@ -108,7 +104,6 @@ Files::Group.update(id,
|
|
|
108
104
|
sftp_permission: true,
|
|
109
105
|
dav_permission: true,
|
|
110
106
|
restapi_permission: true,
|
|
111
|
-
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
112
107
|
name: "owners"
|
|
113
108
|
)
|
|
114
109
|
```
|
|
@@ -123,7 +118,6 @@ Files::Group.update(id,
|
|
|
123
118
|
* `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.
|
|
124
119
|
* `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.
|
|
125
120
|
* `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
|
|
127
121
|
* `name` (string): Group name.
|
|
128
122
|
|
|
129
123
|
|
|
@@ -155,7 +149,6 @@ group.update(
|
|
|
155
149
|
sftp_permission: true,
|
|
156
150
|
dav_permission: true,
|
|
157
151
|
restapi_permission: true,
|
|
158
|
-
allowed_ips: "10.0.0.0/8\n127.0.0.1",
|
|
159
152
|
name: "owners"
|
|
160
153
|
)
|
|
161
154
|
```
|
|
@@ -170,7 +163,6 @@ group.update(
|
|
|
170
163
|
* `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.
|
|
171
164
|
* `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.
|
|
172
165
|
* `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
|
|
174
166
|
* `name` (string): Group name.
|
|
175
167
|
|
|
176
168
|
|
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": "127.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: "127.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: "127.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: "127.0.0.1",
|
|
486
486
|
attachments_permission: true,
|
|
487
487
|
authenticate_until: "2000-01-01T01:00:00Z",
|
|
488
488
|
authentication_method: "password",
|
|
@@ -27,15 +27,6 @@ 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
|
-
|
|
39
30
|
# string - Comma-delimited list of user IDs who are group administrators (separated by commas)
|
|
40
31
|
def admin_ids
|
|
41
32
|
@attributes[:admin_ids]
|
|
@@ -116,7 +107,6 @@ module Files
|
|
|
116
107
|
# 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.
|
|
117
108
|
# 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.
|
|
118
109
|
# 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
|
|
120
110
|
# name - string - Group name.
|
|
121
111
|
def update(params = {})
|
|
122
112
|
params ||= {}
|
|
@@ -126,7 +116,6 @@ module Files
|
|
|
126
116
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
127
117
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
128
118
|
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)
|
|
130
119
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
131
120
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
132
121
|
|
|
@@ -207,13 +196,11 @@ module Files
|
|
|
207
196
|
# 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.
|
|
208
197
|
# 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.
|
|
209
198
|
# 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
|
|
211
199
|
# name (required) - string - Group name.
|
|
212
200
|
def self.create(params = {}, options = {})
|
|
213
201
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
214
202
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
215
203
|
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)
|
|
217
204
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
218
205
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
219
206
|
|
|
@@ -229,7 +216,6 @@ module Files
|
|
|
229
216
|
# 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.
|
|
230
217
|
# 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.
|
|
231
218
|
# 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
|
|
233
219
|
# name - string - Group name.
|
|
234
220
|
def self.update(id, params = {}, options = {})
|
|
235
221
|
params ||= {}
|
|
@@ -238,7 +224,6 @@ module Files
|
|
|
238
224
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
239
225
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
|
240
226
|
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)
|
|
242
227
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
243
228
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
244
229
|
|
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.32
|
|
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-03-
|
|
11
|
+
date: 2024-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|