files.com 1.0.356 → 1.0.357

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: 61319db349ecd31f703bd5f214d3da99860a527606c1a1e6add8c0eb1a0b0932
4
- data.tar.gz: 6849cbc371d5c4fcf7716c709273840524387282b6c9eba435c5932302a97911
3
+ metadata.gz: 8bc54d4ebc1672332ba1b40814969198ecfe4bd5c38e94cd5af5cc4e97885978
4
+ data.tar.gz: 7ae014892e4f84c31c2c1215f378328a3475f0a48815db0e2958d44240d81e3b
5
5
  SHA512:
6
- metadata.gz: baa9c85b88f8eeb5907b7dc90a344d8be57f3510f4c5147f0ad08d6708b8bbb036a79f8b885f0ba122dcf3cefbbd864528899bd50308683061c8c5ba312f3210
7
- data.tar.gz: 48d6b8b9f4869aa29459681a5ac402367183958888b75f5d706c6ca8eac438ff0f512d18c766dc5b61d85426e7d57e33dacdf932b4a6688c86e888d0c3cad603
6
+ metadata.gz: 52d53f9420103189c93e24d9c3b3b0f88cfea9a995c56ec1d135fa2fc2e4bbbd8196241bc7ed846d8ca6b7b573bf3b7949506af92637413268895f86952f4e2b
7
+ data.tar.gz: 00d16c98aa41727bbbfc92a019cf93587b653bf14d8f7abc474d03a13e092464b91f7ff96da2ef2fa4c30b48ab3cba398ca09763a119b3bb39ace2d429ae6fc3
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.356
1
+ 1.0.357
data/docs/automation.md CHANGED
@@ -78,7 +78,6 @@
78
78
  ```
79
79
  Files::Automation.list(
80
80
  per_page: 1,
81
- automation: "create_folder",
82
81
  with_deleted: true
83
82
  )
84
83
  ```
@@ -88,7 +87,6 @@ Files::Automation.list(
88
87
  * `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.
89
88
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
90
89
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
91
- * `automation` (string): If set, return records where the specified field is equal to the supplied value.
92
90
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
93
91
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
94
92
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
@@ -39,8 +39,8 @@ Files::AutomationRun.list(
39
39
  * `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.
40
40
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
41
41
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
42
- * `automation_id` (int64): Required - ID of the associated Automation.
43
42
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
43
+ * `automation_id` (int64): Required - ID of the associated Automation.
44
44
 
45
45
 
46
46
  ---
data/docs/behavior.md CHANGED
@@ -33,8 +33,7 @@
33
33
 
34
34
  ```
35
35
  Files::Behavior.list(
36
- per_page: 1,
37
- behavior: "webhook"
36
+ per_page: 1
38
37
  )
39
38
  ```
40
39
 
@@ -43,7 +42,6 @@ Files::Behavior.list(
43
42
  * `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.
44
43
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
44
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
46
- * `behavior` (string): If set, return records where the specified field is equal to the supplied value.
47
45
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
48
46
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
49
47
 
@@ -26,8 +26,7 @@
26
26
  ```
27
27
  Files::BundleNotification.list(
28
28
  user_id: 1,
29
- per_page: 1,
30
- bundle_id: 1
29
+ per_page: 1
31
30
  )
32
31
  ```
33
32
 
@@ -37,7 +36,6 @@ Files::BundleNotification.list(
37
36
  * `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.
38
37
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
39
38
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
40
- * `bundle_id` (string): If set, return records where the specified field is equal to the supplied value.
41
39
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
42
40
 
43
41
 
data/docs/notification.md CHANGED
@@ -68,8 +68,8 @@
68
68
  Files::Notification.list(
69
69
  user_id: 1,
70
70
  per_page: 1,
71
- group_id: 1,
72
- include_ancestors: true
71
+ include_ancestors: true,
72
+ group_id: 1
73
73
  )
74
74
  ```
75
75
 
@@ -79,11 +79,11 @@ Files::Notification.list(
79
79
  * `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.
80
80
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
81
81
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
82
- * `group_id` (string): If set, return records where the specified field is equal to the supplied value.
83
82
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
84
83
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
85
84
  * `path` (string): Show notifications for this Path.
86
85
  * `include_ancestors` (boolean): If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
86
+ * `group_id` (string):
87
87
 
88
88
 
89
89
  ---
@@ -9,6 +9,7 @@
9
9
  ],
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "user_id": 1,
12
+ "api_key_id": 1,
12
13
  "user_is_files_support": true,
13
14
  "username": "some_user"
14
15
  }
@@ -17,6 +18,7 @@
17
18
  * `changes` (array): Markdown-formatted change messages.
18
19
  * `created_at` (date-time): The time this change was made
19
20
  * `user_id` (int64): The user id responsible for this change
21
+ * `api_key_id` (int64): The api key id responsible for this change
20
22
  * `user_is_files_support` (boolean): true if this change was performed by Files.com support.
21
23
  * `username` (string): The username of the user responsible for this change
22
24
 
@@ -27,8 +29,7 @@
27
29
 
28
30
  ```
29
31
  Files::SettingsChange.list(
30
- per_page: 1,
31
- user_id: 1
32
+ per_page: 1
32
33
  )
33
34
  ```
34
35
 
@@ -37,6 +38,4 @@ Files::SettingsChange.list(
37
38
  * `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.
38
39
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
39
40
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
40
- * `api_key_id` (string): If set, return records where the specified field is equal to the supplied value.
41
- * `user_id` (string): If set, return records where the specified field is equal to the supplied value.
42
41
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
@@ -298,7 +298,6 @@ module Files
298
298
  # 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.
299
299
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
300
300
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
301
- # automation - string - If set, return records where the specified field is equal to the supplied value.
302
301
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
303
302
  # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
304
303
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
@@ -309,7 +308,6 @@ module Files
309
308
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
310
309
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
311
310
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
312
- raise InvalidParameterError.new("Bad parameter: automation must be an String") if params[:automation] and !params[:automation].is_a?(String)
313
311
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
314
312
  raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
315
313
  raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
@@ -44,15 +44,15 @@ module Files
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[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
47
- # automation_id (required) - int64 - ID of the associated Automation.
48
47
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
48
+ # automation_id (required) - int64 - ID of the associated Automation.
49
49
  def self.list(params = {}, options = {})
50
50
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
51
51
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
52
52
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
53
53
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
54
- raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params[:automation_id] and !params[:automation_id].is_a?(Integer)
55
54
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
55
+ raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params[:automation_id] and !params[:automation_id].is_a?(Integer)
56
56
  raise MissingParameterError.new("Parameter missing: automation_id") unless params[:automation_id]
57
57
 
58
58
  List.new(AutomationRun, params) do
@@ -140,14 +140,12 @@ module Files
140
140
  # 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.
141
141
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
142
142
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
143
- # behavior - string - If set, return records where the specified field is equal to the supplied value.
144
143
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
145
144
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
146
145
  def self.list(params = {}, options = {})
147
146
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
148
147
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
149
148
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
150
- raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params[:behavior] and !params[:behavior].is_a?(String)
151
149
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
152
150
  raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
153
151
 
@@ -95,14 +95,12 @@ module Files
95
95
  # 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.
96
96
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
97
97
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
98
- # bundle_id - string - If set, return records where the specified field is equal to the supplied value.
99
98
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
100
99
  def self.list(params = {}, options = {})
101
100
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
102
101
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
103
102
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
104
103
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
105
- raise InvalidParameterError.new("Bad parameter: bundle_id must be an String") if params[:bundle_id] and !params[:bundle_id].is_a?(String)
106
104
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
107
105
 
108
106
  List.new(BundleNotification, params) do
@@ -264,20 +264,20 @@ module Files
264
264
  # 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.
265
265
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
266
266
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
267
- # group_id - string - If set, return records where the specified field is equal to the supplied value.
268
267
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
269
268
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
270
269
  # path - string - Show notifications for this Path.
271
270
  # include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
271
+ # group_id - string
272
272
  def self.list(params = {}, options = {})
273
273
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
274
274
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
275
275
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
276
276
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
277
- raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
278
277
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
279
278
  raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
280
279
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
280
+ raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
281
281
 
282
282
  List.new(Notification, params) do
283
283
  Api.send_request("/notifications", :get, params, options)
@@ -24,6 +24,11 @@ module Files
24
24
  @attributes[:user_id]
25
25
  end
26
26
 
27
+ # int64 - The api key id responsible for this change
28
+ def api_key_id
29
+ @attributes[:api_key_id]
30
+ end
31
+
27
32
  # boolean - true if this change was performed by Files.com support.
28
33
  def user_is_files_support
29
34
  @attributes[:user_is_files_support]
@@ -38,15 +43,11 @@ module Files
38
43
  # 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.
39
44
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
40
45
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
41
- # api_key_id - string - If set, return records where the specified field is equal to the supplied value.
42
- # user_id - string - If set, return records where the specified field is equal to the supplied value.
43
46
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
44
47
  def self.list(params = {}, options = {})
45
48
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
46
49
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
47
50
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
48
- raise InvalidParameterError.new("Bad parameter: api_key_id must be an String") if params[:api_key_id] and !params[:api_key_id].is_a?(String)
49
- raise InvalidParameterError.new("Bad parameter: user_id must be an String") if params[:user_id] and !params[:user_id].is_a?(String)
50
51
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
51
52
 
52
53
  List.new(SettingsChange, params) do
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.356
4
+ version: 1.0.357
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-06-06 00:00:00.000000000 Z
11
+ date: 2023-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable