files.com 1.0.390 → 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: 13f27824309e17a5af2e7c1b8c33b3478c34b623aed0565b6103c1e21724a636
4
- data.tar.gz: 7c7feb488a954bbc506c4ed883bd4ee14fc5b67efc7ee7715a2346fd3a2e77d9
3
+ metadata.gz: cca1206c12f58abe34654738f0965cc90a4b60ab869b7bb27d5c4a64ee084a2b
4
+ data.tar.gz: ded618491d572236f60fbc4f393cf4b21fc6e63c0bbb9cbdbfb997f2a5b95278
5
5
  SHA512:
6
- metadata.gz: ff3baca4ddad2907c11efafaa716fbb306632c2022e91a69f8bffa3159b7988814e1192ef6ca79341773cae197438cf2e130b64d2ce96c95d4522d0bbf3ef045
7
- data.tar.gz: e8f60abe4b277d0eb0a452ef5f8043070c7a565228b6153f09a5ea1e986c7f97abaf1c186db2db984d8d47f8bfec6df4335084fff56cdeb706cc4e7d91e4f2f2
6
+ metadata.gz: 3dd1b0185dfaa626c377a652487b9f4c009ec8652cf8aa448fb0f596ce701fbf70eb6292ca674bc092e63113e3e7b63bbdb6a7d8119824779056fc67f7ba3747
7
+ data.tar.gz: dae559c78bc656b0be84a933287a4915b19137890cd51f5aca7c26f671320ef4fe456cd102f6bd59c1d8c72c5fa2176442cf4e3caeec45a5abc823fb48340803
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.390
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.390"
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.390
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