files.com 1.1.40 → 1.1.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/behavior.md +9 -1
- data/lib/files.com/models/behavior.rb +12 -0
- 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: 023f29be9755d13152e24ad1454e39285d68fa325c2c0379489ad97b59bcdc8e
|
4
|
+
data.tar.gz: '0977dc7eb678c085047087a2cba78eebce2eba9385198a79534ba153a716bdd7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 746e34368c0677e744e1f8c18b694eafe9d973838ead5ef1afda43ddc8cd8018961681a1ec85a1d83a0bebd64131b9babb4837774e5a5b36513faae43b4785e8
|
7
|
+
data.tar.gz: a71dac4afbfb97b9c7d5d4a9ebf20243df2a06b64246bce1ac15e248b3dd2c2fe42243ec94376cf984079d7668683202016c197d178b081b031ffa606bb4f711
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.42
|
data/docs/behavior.md
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
"description": "example",
|
13
13
|
"value": {
|
14
14
|
"key": "example value"
|
15
|
-
}
|
15
|
+
},
|
16
|
+
"disable_parent_folder_behavior": true
|
16
17
|
}
|
17
18
|
```
|
18
19
|
|
@@ -23,6 +24,7 @@
|
|
23
24
|
* `name` (string): Name for this behavior.
|
24
25
|
* `description` (string): Description for this behavior.
|
25
26
|
* `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
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
26
28
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
27
29
|
* `attachment_delete` (boolean): If true, will delete the file stored in attachment
|
28
30
|
|
@@ -89,6 +91,7 @@ Files::Behavior.list_for(path,
|
|
89
91
|
```
|
90
92
|
Files::Behavior.create(
|
91
93
|
value: "{\"method\": \"GET\"}",
|
94
|
+
disable_parent_folder_behavior: true,
|
92
95
|
name: "example",
|
93
96
|
description: "example",
|
94
97
|
path: "path",
|
@@ -100,6 +103,7 @@ Files::Behavior.create(
|
|
100
103
|
|
101
104
|
* `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.
|
102
105
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
106
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
103
107
|
* `name` (string): Name for this behavior.
|
104
108
|
* `description` (string): Description for this behavior.
|
105
109
|
* `path` (string): Required - Folder behaviors path.
|
@@ -138,6 +142,7 @@ Files::Behavior.webhook_test(
|
|
138
142
|
```
|
139
143
|
Files::Behavior.update(id,
|
140
144
|
value: "{\"method\": \"GET\"}",
|
145
|
+
disable_parent_folder_behavior: true,
|
141
146
|
name: "example",
|
142
147
|
description: "example",
|
143
148
|
behavior: "webhook",
|
@@ -151,6 +156,7 @@ Files::Behavior.update(id,
|
|
151
156
|
* `id` (int64): Required - Behavior ID.
|
152
157
|
* `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.
|
153
158
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
159
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
154
160
|
* `name` (string): Name for this behavior.
|
155
161
|
* `description` (string): Description for this behavior.
|
156
162
|
* `behavior` (string): Behavior type.
|
@@ -180,6 +186,7 @@ behavior = Files::Behavior.list.first
|
|
180
186
|
|
181
187
|
behavior.update(
|
182
188
|
value: "{\"method\": \"GET\"}",
|
189
|
+
disable_parent_folder_behavior: true,
|
183
190
|
name: "example",
|
184
191
|
description: "example",
|
185
192
|
behavior: "webhook",
|
@@ -193,6 +200,7 @@ behavior.update(
|
|
193
200
|
* `id` (int64): Required - Behavior ID.
|
194
201
|
* `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.
|
195
202
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
203
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
196
204
|
* `name` (string): Name for this behavior.
|
197
205
|
* `description` (string): Description for this behavior.
|
198
206
|
* `behavior` (string): Behavior type.
|
@@ -72,6 +72,15 @@ module Files
|
|
72
72
|
@attributes[:value] = value
|
73
73
|
end
|
74
74
|
|
75
|
+
# boolean - If true, the parent folder's behavior will be disabled for this folder.
|
76
|
+
def disable_parent_folder_behavior
|
77
|
+
@attributes[:disable_parent_folder_behavior]
|
78
|
+
end
|
79
|
+
|
80
|
+
def disable_parent_folder_behavior=(value)
|
81
|
+
@attributes[:disable_parent_folder_behavior] = value
|
82
|
+
end
|
83
|
+
|
75
84
|
# file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
76
85
|
def attachment_file
|
77
86
|
@attributes[:attachment_file]
|
@@ -93,6 +102,7 @@ module Files
|
|
93
102
|
# Parameters:
|
94
103
|
# 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.
|
95
104
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
105
|
+
# disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
96
106
|
# name - string - Name for this behavior.
|
97
107
|
# description - string - Description for this behavior.
|
98
108
|
# behavior - string - Behavior type.
|
@@ -207,6 +217,7 @@ module Files
|
|
207
217
|
# Parameters:
|
208
218
|
# 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.
|
209
219
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
220
|
+
# disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
210
221
|
# name - string - Name for this behavior.
|
211
222
|
# description - string - Description for this behavior.
|
212
223
|
# path (required) - string - Folder behaviors path.
|
@@ -247,6 +258,7 @@ module Files
|
|
247
258
|
# Parameters:
|
248
259
|
# 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.
|
249
260
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
261
|
+
# disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
|
250
262
|
# name - string - Name for this behavior.
|
251
263
|
# description - string - Description for this behavior.
|
252
264
|
# behavior - string - Behavior type.
|
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.1.
|
4
|
+
version: 1.1.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|