files.com 1.0.10 → 1.0.11
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/permission.md +2 -2
- data/lib/files.com/models/permission.rb +4 -2
- 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: b07ec4b973debbf46e8dc043ae9b6b02615eef937b9fe54cf9b044b0ef62b517
|
|
4
|
+
data.tar.gz: 4e005659c1e11e12df9c1b1268a08fe880e29ad900fa8b7d021aa62572ac1820
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4043ea2df1f37f0ea582d37387d8557c78826ca12176ff50ed06fcba187424d6e4245a24b6a8088f5eb50fd6baad1edd528466954f3c5d4c312eb87a48bc9166
|
|
7
|
+
data.tar.gz: b8c03c581111b4ba081f276db0889b98142e96dd82e8e5cc8a2c60c162375b31c1d55ba2c5601c479f10ac00d24ea89931c18eca41dd01fada95e710ea72c03b
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.11
|
data/docs/permission.md
CHANGED
|
@@ -68,7 +68,7 @@ Files::Permission.create(path,
|
|
|
68
68
|
|
|
69
69
|
* `group_id` (int64): Group ID
|
|
70
70
|
* `path` (string): Folder path
|
|
71
|
-
* `permission` (
|
|
71
|
+
* `permission` (string): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
|
|
72
72
|
* `recursive` (boolean): Apply to subfolders recursively?
|
|
73
73
|
* `user_id` (int64): User ID. Provide `username` or `user_id`
|
|
74
74
|
* `username` (string): User username. Provide `username` or `user_id`
|
|
@@ -106,7 +106,7 @@ permission.create(
|
|
|
106
106
|
|
|
107
107
|
* `group_id` (int64): Group ID
|
|
108
108
|
* `path` (string): Folder path
|
|
109
|
-
* `permission` (
|
|
109
|
+
* `permission` (string): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
|
|
110
110
|
* `recursive` (boolean): Apply to subfolders recursively?
|
|
111
111
|
* `user_id` (int64): User ID. Provide `username` or `user_id`
|
|
112
112
|
* `username` (string): User username. Provide `username` or `user_id`
|
|
@@ -85,7 +85,7 @@ module Files
|
|
|
85
85
|
#
|
|
86
86
|
# Parameters:
|
|
87
87
|
# group_id - integer - Group ID
|
|
88
|
-
# permission -
|
|
88
|
+
# permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
|
|
89
89
|
# recursive - boolean - Apply to subfolders recursively?
|
|
90
90
|
# user_id - integer - User ID. Provide `username` or `user_id`
|
|
91
91
|
# username - string - User username. Provide `username` or `user_id`
|
|
@@ -95,6 +95,7 @@ module Files
|
|
|
95
95
|
raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
|
|
96
96
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
|
|
97
97
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
|
98
|
+
raise InvalidParameterError.new("Bad parameter: permission must be an String") if params.dig(:permission) and !params.dig(:permission).is_a?(String)
|
|
98
99
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
|
99
100
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
|
100
101
|
|
|
@@ -140,7 +141,7 @@ module Files
|
|
|
140
141
|
#
|
|
141
142
|
# Parameters:
|
|
142
143
|
# group_id - integer - Group ID
|
|
143
|
-
# permission -
|
|
144
|
+
# permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
|
|
144
145
|
# recursive - boolean - Apply to subfolders recursively?
|
|
145
146
|
# user_id - integer - User ID. Provide `username` or `user_id`
|
|
146
147
|
# username - string - User username. Provide `username` or `user_id`
|
|
@@ -149,6 +150,7 @@ module Files
|
|
|
149
150
|
params[:path] = path
|
|
150
151
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
|
|
151
152
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
|
153
|
+
raise InvalidParameterError.new("Bad parameter: permission must be an String") if params.dig(:permission) and !params.dig(:permission).is_a?(String)
|
|
152
154
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
|
153
155
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
|
154
156
|
|
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.0.
|
|
4
|
+
version: 1.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|