files.com 1.0.391 → 1.0.392
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 +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: cca1206c12f58abe34654738f0965cc90a4b60ab869b7bb27d5c4a64ee084a2b
|
4
|
+
data.tar.gz: ded618491d572236f60fbc4f393cf4b21fc6e63c0bbb9cbdbfb997f2a5b95278
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dd1b0185dfaa626c377a652487b9f4c009ec8652cf8aa448fb0f596ce701fbf70eb6292ca674bc092e63113e3e7b63bbdb6a7d8119824779056fc67f7ba3747
|
7
|
+
data.tar.gz: dae559c78bc656b0be84a933287a4915b19137890cd51f5aca7c26f671320ef4fe456cd102f6bd59c1d8c72c5fa2176442cf4e3caeec45a5abc823fb48340803
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.392
|
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.392
|
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-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|