files.com 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2636ecaa2394e568331cd8d6c91aa260dda9cf8db7cc3caa9dca307c7a9da69a
4
- data.tar.gz: 99482fbf2eec263919653c2dc6f9c58964a9e0ca68846936b8a2edb95f77bda9
3
+ metadata.gz: b07ec4b973debbf46e8dc043ae9b6b02615eef937b9fe54cf9b044b0ef62b517
4
+ data.tar.gz: 4e005659c1e11e12df9c1b1268a08fe880e29ad900fa8b7d021aa62572ac1820
5
5
  SHA512:
6
- metadata.gz: 64f0cc610a6aa59afe74cd8103c1879dafee4e93cd73a596dda09f58aca63a68a70cbbf0d7547400e6cadd993b8f6fa542e6ba97a3e436ae545b557caf8c8a54
7
- data.tar.gz: 5792a0e7240830c4efd2d42366974fb3ff6e39f0541766c5a49154915c4fe91eadf28788c560b9252f3e085bb0eff3113b731be4d91ae843c08973ad78d115c7
6
+ metadata.gz: 4043ea2df1f37f0ea582d37387d8557c78826ca12176ff50ed06fcba187424d6e4245a24b6a8088f5eb50fd6baad1edd528466954f3c5d4c312eb87a48bc9166
7
+ data.tar.gz: b8c03c581111b4ba081f276db0889b98142e96dd82e8e5cc8a2c60c162375b31c1d55ba2c5601c479f10ac00d24ea89931c18eca41dd01fada95e710ea72c03b
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
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` (object): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
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` (object): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
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 - object - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
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 - object - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `previewonly`, or `history`
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.10
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-09 00:00:00.000000000 Z
11
+ date: 2020-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday