files.com 1.1.59 → 1.1.60

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: b93e054062c463b3f1920f346a74bf1a42758fe5e64841062b92392bb1a86b20
4
- data.tar.gz: 8f49e2e788e2296385d12f5ff01d94b485b11fea0d1c8178fca02a5fa2f7819a
3
+ metadata.gz: fa067300739233694bf0dac0061b367f3e65ad6efc0b4ec6261c206c410d22f0
4
+ data.tar.gz: b3be973b3f2e73d32494cc8908da36c95a5cd9f4e26aada993b0128635687e1e
5
5
  SHA512:
6
- metadata.gz: dd706da8b3c3dea00f5929d932955a31d07f56edb6afb79de0ad16e115980558468f9068f3f6f7639aace7d7fcdd4df2a66044b5bf403db8a2bef7ec5e9cf657
7
- data.tar.gz: 58eed1043e493ece5dd65c27cf5de7e717d83271a6e364335bbecae1749dd0954828c200c43575d04c09d68ac1d512b4fbf8d5e7e6e4b1ad1c3f4ed057e75ad5
6
+ metadata.gz: b9e10fb760b852c97122cfb49962b5a21473f03af8533ddc3f594abdd8ff4b7a4eb4479b0367d92373a92b3ec669dbd694a398fc3403be38a696178183718a23
7
+ data.tar.gz: f33e2e45041ba265595acc7d8f63fc4c43db76a17baa71274abf073a79e762b719d00821ef9cab902a0badcc03cd38e8e909cbab14d73365364e6ae6e6aef62c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.59
1
+ 1.1.60
data/docs/behavior.md CHANGED
@@ -13,7 +13,8 @@
13
13
  "value": {
14
14
  "key": "example value"
15
15
  },
16
- "disable_parent_folder_behavior": true
16
+ "disable_parent_folder_behavior": true,
17
+ "recursive": true
17
18
  }
18
19
  ```
19
20
 
@@ -25,6 +26,7 @@
25
26
  * `description` (string): Description for this behavior.
26
27
  * `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
27
28
  * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
29
+ * `recursive` (boolean): Is behavior recursive?
28
30
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
29
31
  * `attachment_delete` (boolean): If true, will delete the file stored in attachment
30
32
 
@@ -80,7 +82,7 @@ Files::Behavior.list_for(path,
80
82
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
81
83
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
82
84
  * `path` (string): Required - Path to operate on.
83
- * `recursive` (string): Show behaviors above this path?
85
+ * `ancestor_behaviors` (string): Show behaviors above this path?
84
86
  * `behavior` (string): DEPRECATED: If set only shows folder behaviors matching this behavior type. Use `filter[behavior]` instead.
85
87
 
86
88
 
@@ -92,6 +94,7 @@ Files::Behavior.list_for(path,
92
94
  Files::Behavior.create(
93
95
  value: "{\"method\": \"GET\"}",
94
96
  disable_parent_folder_behavior: true,
97
+ recursive: true,
95
98
  name: "example",
96
99
  description: "example",
97
100
  path: "path",
@@ -104,6 +107,7 @@ Files::Behavior.create(
104
107
  * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
105
108
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
106
109
  * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
110
+ * `recursive` (boolean): Is behavior recursive?
107
111
  * `name` (string): Name for this behavior.
108
112
  * `description` (string): Description for this behavior.
109
113
  * `path` (string): Required - Folder behaviors path.
@@ -143,6 +147,7 @@ Files::Behavior.webhook_test(
143
147
  Files::Behavior.update(id,
144
148
  value: "{\"method\": \"GET\"}",
145
149
  disable_parent_folder_behavior: true,
150
+ recursive: true,
146
151
  name: "example",
147
152
  description: "example",
148
153
  behavior: "webhook",
@@ -157,6 +162,7 @@ Files::Behavior.update(id,
157
162
  * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
158
163
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
159
164
  * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
165
+ * `recursive` (boolean): Is behavior recursive?
160
166
  * `name` (string): Name for this behavior.
161
167
  * `description` (string): Description for this behavior.
162
168
  * `behavior` (string): Behavior type.
@@ -187,6 +193,7 @@ behavior = Files::Behavior.list.first
187
193
  behavior.update(
188
194
  value: "{\"method\": \"GET\"}",
189
195
  disable_parent_folder_behavior: true,
196
+ recursive: true,
190
197
  name: "example",
191
198
  description: "example",
192
199
  behavior: "webhook",
@@ -201,6 +208,7 @@ behavior.update(
201
208
  * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
202
209
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
203
210
  * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
211
+ * `recursive` (boolean): Is behavior recursive?
204
212
  * `name` (string): Name for this behavior.
205
213
  * `description` (string): Description for this behavior.
206
214
  * `behavior` (string): Behavior type.
@@ -81,6 +81,15 @@ module Files
81
81
  @attributes[:disable_parent_folder_behavior] = value
82
82
  end
83
83
 
84
+ # boolean - Is behavior recursive?
85
+ def recursive
86
+ @attributes[:recursive]
87
+ end
88
+
89
+ def recursive=(value)
90
+ @attributes[:recursive] = value
91
+ end
92
+
84
93
  # file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
85
94
  def attachment_file
86
95
  @attributes[:attachment_file]
@@ -103,6 +112,7 @@ module Files
103
112
  # value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
104
113
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
105
114
  # disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
115
+ # recursive - boolean - Is behavior recursive?
106
116
  # name - string - Name for this behavior.
107
117
  # description - string - Description for this behavior.
108
118
  # behavior - string - Behavior type.
@@ -194,7 +204,7 @@ module Files
194
204
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
195
205
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
196
206
  # path (required) - string - Path to operate on.
197
- # recursive - string - Show behaviors above this path?
207
+ # ancestor_behaviors - string - Show behaviors above this path?
198
208
  # behavior - string - DEPRECATED: If set only shows folder behaviors matching this behavior type. Use `filter[behavior]` instead.
199
209
  def self.list_for(path, params = {}, options = {})
200
210
  params ||= {}
@@ -205,7 +215,7 @@ module Files
205
215
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
206
216
  raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
207
217
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
208
- raise InvalidParameterError.new("Bad parameter: recursive must be an String") if params[:recursive] and !params[:recursive].is_a?(String)
218
+ raise InvalidParameterError.new("Bad parameter: ancestor_behaviors must be an String") if params[:ancestor_behaviors] and !params[:ancestor_behaviors].is_a?(String)
209
219
  raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params[:behavior] and !params[:behavior].is_a?(String)
210
220
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
211
221
 
@@ -218,6 +228,7 @@ module Files
218
228
  # value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
219
229
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
220
230
  # disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
231
+ # recursive - boolean - Is behavior recursive?
221
232
  # name - string - Name for this behavior.
222
233
  # description - string - Description for this behavior.
223
234
  # path (required) - string - Folder behaviors path.
@@ -259,6 +270,7 @@ module Files
259
270
  # value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
260
271
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
261
272
  # disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
273
+ # recursive - boolean - Is behavior recursive?
262
274
  # name - string - Name for this behavior.
263
275
  # description - string - Description for this behavior.
264
276
  # behavior - string - Behavior type.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.59"
4
+ VERSION = "1.1.60"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.59
4
+ version: 1.1.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com