files.com 1.0.391 → 1.0.392

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: 2df81af7c5a403c2e421247b3608aa8c8921bdbf63c9e28f0f254fa7cec6de84
4
- data.tar.gz: cf72d11458d4685e7ee30bb30edb0834f4f58be9fb8d2f80b3f56572d6a5d64f
3
+ metadata.gz: cca1206c12f58abe34654738f0965cc90a4b60ab869b7bb27d5c4a64ee084a2b
4
+ data.tar.gz: ded618491d572236f60fbc4f393cf4b21fc6e63c0bbb9cbdbfb997f2a5b95278
5
5
  SHA512:
6
- metadata.gz: 3567a59e8a3375add7cc3b537dc5b9f4d99304742776753eb2a13e05edd8ce33defa2615fe118f3655563da161d11eac64956880fb7170232287fb8614c76039
7
- data.tar.gz: b35f93ebd0c3b2dc736dcad7c95d1fa91466ac1f611935e98605722c7d3dfc73d095968c94de8d66108e1288ecf029c7089383d6bd98c051db03372e23d9bb37
6
+ metadata.gz: 3dd1b0185dfaa626c377a652487b9f4c009ec8652cf8aa448fb0f596ce701fbf70eb6292ca674bc092e63113e3e7b63bbdb6a7d8119824779056fc67f7ba3747
7
+ data.tar.gz: dae559c78bc656b0be84a933287a4915b19137890cd51f5aca7c26f671320ef4fe456cd102f6bd59c1d8c72c5fa2176442cf4e3caeec45a5abc823fb48340803
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.391
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 `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
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): DEPRECATED: Permission path. If provided, will scope permissions to this path. Use `filter[path]` instead.
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 `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
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 - DEPRECATED: Permission path. If provided, will scope permissions to this path. Use `filter[path]` instead.
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.0.391"
4
+ VERSION = "1.0.392"
5
5
  end
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.391
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-14 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable