files.com 1.1.145 → 1.1.146
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/permission.md +3 -3
- data/lib/files.com/models/permission.rb +4 -3
- 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: d9962a456febacc4404f95b369aee63c7a4dee7a2f832b092413b99665dc7428
|
4
|
+
data.tar.gz: f49b782f9f1c1448a2749514d77960d5d78064f7ada3bb75268b3553fdc4ad7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13d6fd66729774563e14559167c24e3250cdc86bb5e7d8742c6d1f8d3385790e4695acd587db035e4c2fb8bb6b0ad8a77ed0d1b9650baa5376d9df81aa6ef321
|
7
|
+
data.tar.gz: 878ffd35cd027836d9de453e684d9dbb1ee494e53aa06d5357d686ccf1e1864e0cdce320dc205118029af52ece1e05cab09eb27e3c5785a250e127766b4a5649
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.146
|
data/docs/permission.md
CHANGED
@@ -57,8 +57,8 @@ Files::Permission.list(
|
|
57
57
|
|
58
58
|
```
|
59
59
|
Files::Permission.create(
|
60
|
+
path: "path",
|
60
61
|
group_id: 1,
|
61
|
-
path: "example",
|
62
62
|
permission: "full",
|
63
63
|
recursive: true,
|
64
64
|
user_id: 1,
|
@@ -68,9 +68,9 @@ Files::Permission.create(
|
|
68
68
|
|
69
69
|
### Parameters
|
70
70
|
|
71
|
+
* `path` (string): Required - Folder path
|
71
72
|
* `group_id` (int64): Group ID
|
72
|
-
* `
|
73
|
-
* `permission` (string): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
|
73
|
+
* `permission` (string): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
|
74
74
|
* `recursive` (boolean): Apply to subfolders recursively?
|
75
75
|
* `user_id` (int64): User ID. Provide `username` or `user_id`
|
76
76
|
* `username` (string): User username. Provide `username` or `user_id`
|
@@ -137,18 +137,19 @@ module Files
|
|
137
137
|
end
|
138
138
|
|
139
139
|
# Parameters:
|
140
|
+
# path (required) - string - Folder path
|
140
141
|
# group_id - int64 - Group ID
|
141
|
-
#
|
142
|
-
# permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
|
142
|
+
# permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
|
143
143
|
# recursive - boolean - Apply to subfolders recursively?
|
144
144
|
# user_id - int64 - User ID. Provide `username` or `user_id`
|
145
145
|
# username - string - User username. Provide `username` or `user_id`
|
146
146
|
def self.create(params = {}, options = {})
|
147
|
-
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
|
148
147
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
148
|
+
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
|
149
149
|
raise InvalidParameterError.new("Bad parameter: permission must be an String") if params[:permission] and !params[:permission].is_a?(String)
|
150
150
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
151
151
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
152
|
+
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
152
153
|
|
153
154
|
response, options = Api.send_request("/permissions", :post, params, options)
|
154
155
|
Permission.new(response.data, options)
|
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.146
|
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-10-
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|