files.com 1.0.391 → 1.0.393
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 +6 -6
- data/lib/files.com/models/permission.rb +4 -4
- 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: 137903667684c4c6761661016750a59aa86e362cb6be5e35e50335fe0c3d20af
|
4
|
+
data.tar.gz: b0780bd2b45cd59bf56415c79f13b4fde0d76b17b55ce00d7a757a02de0ebe32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a15798d7d8b9ab2746ea797383cd64f3553defba05e219568852a22c86df998a29fdc9bc0c5a28adf09b741ab0a44d09720bee1688f9ab403a5a9040e67963bc
|
7
|
+
data.tar.gz: a5b38300842f460cf857e1e581faafa235f2c73dcd5c97ae740f0c98ec56d4aabdb644acd5af5fb836c2f6f414a4b1e0a275f2296289c81e49742c74741f9e32
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.393
|
data/docs/permission.md
CHANGED
@@ -33,9 +33,9 @@
|
|
33
33
|
Files::Permission.list(
|
34
34
|
per_page: 1,
|
35
35
|
path: "example",
|
36
|
+
include_groups: true,
|
36
37
|
group_id: 1,
|
37
|
-
user_id: 1
|
38
|
-
include_groups: true
|
38
|
+
user_id: 1
|
39
39
|
)
|
40
40
|
```
|
41
41
|
|
@@ -44,12 +44,12 @@ Files::Permission.list(
|
|
44
44
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
45
45
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
46
46
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[group_id]=desc`). Valid fields are `group_id`, `path`, `user_id` or `permission`.
|
47
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `
|
47
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ user_id, path ]` or `[ user_id, group_id, path ]`.
|
48
48
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
49
|
-
* `path` (string):
|
50
|
-
* `group_id` (string): DEPRECATED: Group ID. If provided, will scope permissions to this group. Use `filter[group_id]` instead.`
|
51
|
-
* `user_id` (string): DEPRECATED: User ID. If provided, will scope permissions to this user. Use `filter[user_id]` instead.`
|
49
|
+
* `path` (string): Permission path. If provided, will scope all permissions(including upward) to this path.
|
52
50
|
* `include_groups` (boolean): If searching by user or group, also include user's permissions that are inherited from its groups?
|
51
|
+
* `group_id` (string):
|
52
|
+
* `user_id` (string):
|
53
53
|
|
54
54
|
|
55
55
|
---
|
@@ -108,12 +108,12 @@ module Files
|
|
108
108
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
109
109
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
110
110
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[group_id]=desc`). Valid fields are `group_id`, `path`, `user_id` or `permission`.
|
111
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `
|
111
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ user_id, path ]` or `[ user_id, group_id, path ]`.
|
112
112
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
113
|
-
# path - string -
|
114
|
-
# group_id - string - DEPRECATED: Group ID. If provided, will scope permissions to this group. Use `filter[group_id]` instead.`
|
115
|
-
# user_id - string - DEPRECATED: User ID. If provided, will scope permissions to this user. Use `filter[user_id]` instead.`
|
113
|
+
# path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
|
116
114
|
# include_groups - boolean - If searching by user or group, also include user's permissions that are inherited from its groups?
|
115
|
+
# group_id - string
|
116
|
+
# user_id - string
|
117
117
|
def self.list(params = {}, options = {})
|
118
118
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
119
119
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
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.0.
|
4
|
+
version: 1.0.393
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|