files.com 1.1.715 → 1.1.717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/behavior.md +11 -7
- data/docs/partner_channel.md +8 -0
- data/docs/partner_channel_template.md +8 -0
- data/lib/files.com/models/behavior.rb +3 -3
- data/lib/files.com/models/partner_channel.rb +15 -0
- data/lib/files.com/models/partner_channel_template.rb +15 -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: e37c3544323a72647c37e95fe9e35bbe6ccfe6a3f6332488de57166bbdfff33a
|
|
4
|
+
data.tar.gz: 65a935ff85893faa2b8fee83b5659cdb87329da867aae793177ab3157ab07209
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0900d72a977aebe60d6e6815e7323ca736f72b9bc328c215d7789e78a924ed2b7cfd861aac55bd78db40bb4d3e5d8e312133eec0901272b0de2d5e6c35e35285'
|
|
7
|
+
data.tar.gz: e6b6f1ba8035701a1e15dcb7df88a7db3d16a81a04f53e11b9d423bb4aa50cda402a4b85bca884bbb0b800126231a76fa4d86e9d7c0d138598cf4b08d186599f
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.717
|
data/docs/behavior.md
CHANGED
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
"name": "example",
|
|
12
12
|
"description": "example",
|
|
13
13
|
"value": {
|
|
14
|
-
"
|
|
14
|
+
"urls": [
|
|
15
|
+
"https://example.com/webhook"
|
|
16
|
+
],
|
|
17
|
+
"method": "POST",
|
|
18
|
+
"encoding": "JSON"
|
|
15
19
|
},
|
|
16
20
|
"public_hosting_url": "example",
|
|
17
21
|
"disable_parent_folder_behavior": true,
|
|
@@ -94,7 +98,7 @@ Files::Behavior.list_for(path,
|
|
|
94
98
|
|
|
95
99
|
```
|
|
96
100
|
Files::Behavior.create(
|
|
97
|
-
value:
|
|
101
|
+
value: {"urls":["https://example.com/webhook"],"method":"POST","encoding":"JSON"},
|
|
98
102
|
disable_parent_folder_behavior: false,
|
|
99
103
|
recursive: false,
|
|
100
104
|
name: "example",
|
|
@@ -106,7 +110,7 @@ Files::Behavior.create(
|
|
|
106
110
|
|
|
107
111
|
### Parameters
|
|
108
112
|
|
|
109
|
-
* `value` (object): This field stores
|
|
113
|
+
* `value` (object): This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior.
|
|
110
114
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
111
115
|
* `disable_parent_folder_behavior` (boolean): If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
112
116
|
* `recursive` (boolean): Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is `sometimes`; `always` behaviors stay recursive and `never` behaviors stay non-recursive.
|
|
@@ -146,7 +150,7 @@ Files::Behavior.webhook_test(
|
|
|
146
150
|
|
|
147
151
|
```
|
|
148
152
|
Files::Behavior.update(id,
|
|
149
|
-
value:
|
|
153
|
+
value: {"urls":["https://example.com/webhook"],"method":"POST","encoding":"JSON"},
|
|
150
154
|
disable_parent_folder_behavior: false,
|
|
151
155
|
recursive: false,
|
|
152
156
|
name: "example",
|
|
@@ -158,7 +162,7 @@ Files::Behavior.update(id,
|
|
|
158
162
|
### Parameters
|
|
159
163
|
|
|
160
164
|
* `id` (int64): Required - Behavior ID.
|
|
161
|
-
* `value` (object): This field stores
|
|
165
|
+
* `value` (object): This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior.
|
|
162
166
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
163
167
|
* `disable_parent_folder_behavior` (boolean): If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
164
168
|
* `recursive` (boolean): Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is `sometimes`; `always` behaviors stay recursive and `never` behaviors stay non-recursive.
|
|
@@ -188,7 +192,7 @@ Files::Behavior.delete(id)
|
|
|
188
192
|
behavior = Files::Behavior.find(id)
|
|
189
193
|
|
|
190
194
|
behavior.update(
|
|
191
|
-
value:
|
|
195
|
+
value: {"urls":["https://example.com/webhook"],"method":"POST","encoding":"JSON"},
|
|
192
196
|
disable_parent_folder_behavior: false,
|
|
193
197
|
recursive: false,
|
|
194
198
|
name: "example",
|
|
@@ -200,7 +204,7 @@ behavior.update(
|
|
|
200
204
|
### Parameters
|
|
201
205
|
|
|
202
206
|
* `id` (int64): Required - Behavior ID.
|
|
203
|
-
* `value` (object): This field stores
|
|
207
|
+
* `value` (object): This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior.
|
|
204
208
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
205
209
|
* `disable_parent_folder_behavior` (boolean): If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
206
210
|
* `recursive` (boolean): Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is `sometimes`; `always` behaviors stay recursive and `never` behaviors stay non-recursive.
|
data/docs/partner_channel.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"workspace_id": 1,
|
|
9
|
+
"direction": "two_way",
|
|
9
10
|
"partner_id": 1,
|
|
10
11
|
"partner_channel_template_id": 1,
|
|
11
12
|
"path": "claims/medical",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
|
|
30
31
|
* `id` (int64): The unique ID of the Partner Channel.
|
|
31
32
|
* `workspace_id` (int64): ID of the Workspace associated with this Partner Channel.
|
|
33
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
32
34
|
* `partner_id` (int64): ID of the Partner this Channel belongs to.
|
|
33
35
|
* `partner_channel_template_id` (int64): ID of the Partner Channel Template that manages this Channel, if any.
|
|
34
36
|
* `path` (string): Channel path relative to the Partner root folder. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
@@ -80,6 +82,7 @@ Files::PartnerChannel.find(id)
|
|
|
80
82
|
|
|
81
83
|
```
|
|
82
84
|
Files::PartnerChannel.create(
|
|
85
|
+
direction: "two_way",
|
|
83
86
|
from_partner_folder_name: "incoming",
|
|
84
87
|
from_partner_managed_folder_paths: ["claims/received"],
|
|
85
88
|
from_partner_route_path: "processing/from-partner",
|
|
@@ -94,6 +97,7 @@ Files::PartnerChannel.create(
|
|
|
94
97
|
|
|
95
98
|
### Parameters
|
|
96
99
|
|
|
100
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
97
101
|
* `from_partner_folder_name` (string): Optional Channel-level from-Partner folder name override.
|
|
98
102
|
* `from_partner_managed_folder_paths` (array(string)): Managed folder paths inside the from-Partner folder.
|
|
99
103
|
* `from_partner_route_path` (string): Optional route path for files uploaded by the Partner.
|
|
@@ -111,6 +115,7 @@ Files::PartnerChannel.create(
|
|
|
111
115
|
|
|
112
116
|
```
|
|
113
117
|
Files::PartnerChannel.update(id,
|
|
118
|
+
direction: "two_way",
|
|
114
119
|
from_partner_folder_name: "incoming",
|
|
115
120
|
from_partner_managed_folder_paths: ["claims/received"],
|
|
116
121
|
from_partner_route_path: "processing/from-partner",
|
|
@@ -124,6 +129,7 @@ Files::PartnerChannel.update(id,
|
|
|
124
129
|
### Parameters
|
|
125
130
|
|
|
126
131
|
* `id` (int64): Required - Partner Channel ID.
|
|
132
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
127
133
|
* `from_partner_folder_name` (string): Optional Channel-level from-Partner folder name override.
|
|
128
134
|
* `from_partner_managed_folder_paths` (array(string)): Managed folder paths inside the from-Partner folder.
|
|
129
135
|
* `from_partner_route_path` (string): Optional route path for files uploaded by the Partner.
|
|
@@ -154,6 +160,7 @@ Files::PartnerChannel.delete(id)
|
|
|
154
160
|
partner_channel = Files::PartnerChannel.find(id)
|
|
155
161
|
|
|
156
162
|
partner_channel.update(
|
|
163
|
+
direction: "two_way",
|
|
157
164
|
from_partner_folder_name: "incoming",
|
|
158
165
|
from_partner_managed_folder_paths: ["claims/received"],
|
|
159
166
|
from_partner_route_path: "processing/from-partner",
|
|
@@ -167,6 +174,7 @@ partner_channel.update(
|
|
|
167
174
|
### Parameters
|
|
168
175
|
|
|
169
176
|
* `id` (int64): Required - Partner Channel ID.
|
|
177
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
170
178
|
* `from_partner_folder_name` (string): Optional Channel-level from-Partner folder name override.
|
|
171
179
|
* `from_partner_managed_folder_paths` (array(string)): Managed folder paths inside the from-Partner folder.
|
|
172
180
|
* `from_partner_route_path` (string): Optional route path for files uploaded by the Partner.
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"workspace_id": 1,
|
|
9
|
+
"direction": "two_way",
|
|
9
10
|
"name": "Claims Template",
|
|
10
11
|
"path": "claims/medical",
|
|
11
12
|
"to_partner_folder_name": "outgoing",
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
|
|
26
27
|
* `id` (int64): The unique ID of the Partner Channel Template.
|
|
27
28
|
* `workspace_id` (int64): ID of the Workspace associated with this Partner Channel Template.
|
|
29
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
28
30
|
* `name` (string): The name of the Partner Channel Template.
|
|
29
31
|
* `path` (string): Channel path relative to the Partner root folder. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
30
32
|
* `to_partner_folder_name` (string): Optional Channel-level to-Partner folder name override.
|
|
@@ -72,6 +74,7 @@ Files::PartnerChannelTemplate.find(id)
|
|
|
72
74
|
|
|
73
75
|
```
|
|
74
76
|
Files::PartnerChannelTemplate.create(
|
|
77
|
+
direction: "two_way",
|
|
75
78
|
from_partner_folder_name: "incoming",
|
|
76
79
|
from_partner_managed_folder_paths: ["claims/received"],
|
|
77
80
|
from_partner_route_path_pattern: "processing/{{partner_name}}/from-partner",
|
|
@@ -86,6 +89,7 @@ Files::PartnerChannelTemplate.create(
|
|
|
86
89
|
|
|
87
90
|
### Parameters
|
|
88
91
|
|
|
92
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
89
93
|
* `from_partner_folder_name` (string): Optional Channel-level from-Partner folder name override.
|
|
90
94
|
* `from_partner_managed_folder_paths` (array(string)): Managed folder paths inside the from-Partner folder.
|
|
91
95
|
* `from_partner_route_path_pattern` (string): Optional route path pattern for files uploaded by the Partner. Supports {{partner_name}}.
|
|
@@ -103,6 +107,7 @@ Files::PartnerChannelTemplate.create(
|
|
|
103
107
|
|
|
104
108
|
```
|
|
105
109
|
Files::PartnerChannelTemplate.update(id,
|
|
110
|
+
direction: "two_way",
|
|
106
111
|
from_partner_folder_name: "incoming",
|
|
107
112
|
from_partner_managed_folder_paths: ["claims/received"],
|
|
108
113
|
from_partner_route_path_pattern: "processing/{{partner_name}}/from-partner",
|
|
@@ -117,6 +122,7 @@ Files::PartnerChannelTemplate.update(id,
|
|
|
117
122
|
### Parameters
|
|
118
123
|
|
|
119
124
|
* `id` (int64): Required - Partner Channel Template ID.
|
|
125
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
120
126
|
* `from_partner_folder_name` (string): Optional Channel-level from-Partner folder name override.
|
|
121
127
|
* `from_partner_managed_folder_paths` (array(string)): Managed folder paths inside the from-Partner folder.
|
|
122
128
|
* `from_partner_route_path_pattern` (string): Optional route path pattern for files uploaded by the Partner. Supports {{partner_name}}.
|
|
@@ -148,6 +154,7 @@ Files::PartnerChannelTemplate.delete(id)
|
|
|
148
154
|
partner_channel_template = Files::PartnerChannelTemplate.find(id)
|
|
149
155
|
|
|
150
156
|
partner_channel_template.update(
|
|
157
|
+
direction: "two_way",
|
|
151
158
|
from_partner_folder_name: "incoming",
|
|
152
159
|
from_partner_managed_folder_paths: ["claims/received"],
|
|
153
160
|
from_partner_route_path_pattern: "processing/{{partner_name}}/from-partner",
|
|
@@ -162,6 +169,7 @@ partner_channel_template.update(
|
|
|
162
169
|
### Parameters
|
|
163
170
|
|
|
164
171
|
* `id` (int64): Required - Partner Channel Template ID.
|
|
172
|
+
* `direction` (string): Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
165
173
|
* `from_partner_folder_name` (string): Optional Channel-level from-Partner folder name override.
|
|
166
174
|
* `from_partner_managed_folder_paths` (array(string)): Managed folder paths inside the from-Partner folder.
|
|
167
175
|
* `from_partner_route_path_pattern` (string): Optional route path pattern for files uploaded by the Partner. Supports {{partner_name}}.
|
|
@@ -145,7 +145,7 @@ module Files
|
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
# Parameters:
|
|
148
|
-
# value - object - This field stores
|
|
148
|
+
# value - object - This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior.
|
|
149
149
|
# attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
150
150
|
# disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
151
151
|
# recursive - boolean - Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is `sometimes`; `always` behaviors stay recursive and `never` behaviors stay non-recursive.
|
|
@@ -249,7 +249,7 @@ module Files
|
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Parameters:
|
|
252
|
-
# value - object - This field stores
|
|
252
|
+
# value - object - This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior.
|
|
253
253
|
# attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
254
254
|
# disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
255
255
|
# recursive - boolean - Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is `sometimes`; `always` behaviors stay recursive and `never` behaviors stay non-recursive.
|
|
@@ -291,7 +291,7 @@ module Files
|
|
|
291
291
|
end
|
|
292
292
|
|
|
293
293
|
# Parameters:
|
|
294
|
-
# value - object - This field stores
|
|
294
|
+
# value - object - This field stores data specific to the type of behavior. See The Behavior Types section for the accepted value for each type of behavior.
|
|
295
295
|
# attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
|
|
296
296
|
# disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
|
|
297
297
|
# recursive - boolean - Whether the behavior should apply to child folders. This is only configurable for behavior types whose recursion mode is `sometimes`; `always` behaviors stay recursive and `never` behaviors stay non-recursive.
|
|
@@ -27,6 +27,15 @@ module Files
|
|
|
27
27
|
@attributes[:workspace_id] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
31
|
+
def direction
|
|
32
|
+
@attributes[:direction]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def direction=(value)
|
|
36
|
+
@attributes[:direction] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
30
39
|
# int64 - ID of the Partner this Channel belongs to.
|
|
31
40
|
def partner_id
|
|
32
41
|
@attributes[:partner_id]
|
|
@@ -154,6 +163,7 @@ module Files
|
|
|
154
163
|
end
|
|
155
164
|
|
|
156
165
|
# Parameters:
|
|
166
|
+
# direction - string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
157
167
|
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
158
168
|
# from_partner_managed_folder_paths - array(string) - Managed folder paths inside the from-Partner folder.
|
|
159
169
|
# from_partner_route_path - string - Optional route path for files uploaded by the Partner.
|
|
@@ -166,6 +176,7 @@ module Files
|
|
|
166
176
|
params[:id] = @attributes[:id]
|
|
167
177
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
168
178
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
179
|
+
raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
|
|
169
180
|
raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
|
|
170
181
|
raise InvalidParameterError.new("Bad parameter: from_partner_managed_folder_paths must be an Array") if params[:from_partner_managed_folder_paths] and !params[:from_partner_managed_folder_paths].is_a?(Array)
|
|
171
182
|
raise InvalidParameterError.new("Bad parameter: from_partner_route_path must be an String") if params[:from_partner_route_path] and !params[:from_partner_route_path].is_a?(String)
|
|
@@ -241,6 +252,7 @@ module Files
|
|
|
241
252
|
end
|
|
242
253
|
|
|
243
254
|
# Parameters:
|
|
255
|
+
# direction - string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
244
256
|
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
245
257
|
# from_partner_managed_folder_paths - array(string) - Managed folder paths inside the from-Partner folder.
|
|
246
258
|
# from_partner_route_path - string - Optional route path for files uploaded by the Partner.
|
|
@@ -251,6 +263,7 @@ module Files
|
|
|
251
263
|
# path (required) - string - Channel path relative to the Partner root folder.
|
|
252
264
|
# workspace_id - int64 - ID of the Workspace associated with this Partner Channel.
|
|
253
265
|
def self.create(params = {}, options = {})
|
|
266
|
+
raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
|
|
254
267
|
raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
|
|
255
268
|
raise InvalidParameterError.new("Bad parameter: from_partner_managed_folder_paths must be an Array") if params[:from_partner_managed_folder_paths] and !params[:from_partner_managed_folder_paths].is_a?(Array)
|
|
256
269
|
raise InvalidParameterError.new("Bad parameter: from_partner_route_path must be an String") if params[:from_partner_route_path] and !params[:from_partner_route_path].is_a?(String)
|
|
@@ -268,6 +281,7 @@ module Files
|
|
|
268
281
|
end
|
|
269
282
|
|
|
270
283
|
# Parameters:
|
|
284
|
+
# direction - string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
271
285
|
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
272
286
|
# from_partner_managed_folder_paths - array(string) - Managed folder paths inside the from-Partner folder.
|
|
273
287
|
# from_partner_route_path - string - Optional route path for files uploaded by the Partner.
|
|
@@ -279,6 +293,7 @@ module Files
|
|
|
279
293
|
params ||= {}
|
|
280
294
|
params[:id] = id
|
|
281
295
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
296
|
+
raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
|
|
282
297
|
raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
|
|
283
298
|
raise InvalidParameterError.new("Bad parameter: from_partner_managed_folder_paths must be an Array") if params[:from_partner_managed_folder_paths] and !params[:from_partner_managed_folder_paths].is_a?(Array)
|
|
284
299
|
raise InvalidParameterError.new("Bad parameter: from_partner_route_path must be an String") if params[:from_partner_route_path] and !params[:from_partner_route_path].is_a?(String)
|
|
@@ -27,6 +27,15 @@ module Files
|
|
|
27
27
|
@attributes[:workspace_id] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
31
|
+
def direction
|
|
32
|
+
@attributes[:direction]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def direction=(value)
|
|
36
|
+
@attributes[:direction] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
30
39
|
# string - The name of the Partner Channel Template.
|
|
31
40
|
def name
|
|
32
41
|
@attributes[:name]
|
|
@@ -118,6 +127,7 @@ module Files
|
|
|
118
127
|
end
|
|
119
128
|
|
|
120
129
|
# Parameters:
|
|
130
|
+
# direction - string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
121
131
|
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
122
132
|
# from_partner_managed_folder_paths - array(string) - Managed folder paths inside the from-Partner folder.
|
|
123
133
|
# from_partner_route_path_pattern - string - Optional route path pattern for files uploaded by the Partner. Supports {{partner_name}}.
|
|
@@ -131,6 +141,7 @@ module Files
|
|
|
131
141
|
params[:id] = @attributes[:id]
|
|
132
142
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
133
143
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
144
|
+
raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
|
|
134
145
|
raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
|
|
135
146
|
raise InvalidParameterError.new("Bad parameter: from_partner_managed_folder_paths must be an Array") if params[:from_partner_managed_folder_paths] and !params[:from_partner_managed_folder_paths].is_a?(Array)
|
|
136
147
|
raise InvalidParameterError.new("Bad parameter: from_partner_route_path_pattern must be an String") if params[:from_partner_route_path_pattern] and !params[:from_partner_route_path_pattern].is_a?(String)
|
|
@@ -207,6 +218,7 @@ module Files
|
|
|
207
218
|
end
|
|
208
219
|
|
|
209
220
|
# Parameters:
|
|
221
|
+
# direction - string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
210
222
|
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
211
223
|
# from_partner_managed_folder_paths - array(string) - Managed folder paths inside the from-Partner folder.
|
|
212
224
|
# from_partner_route_path_pattern - string - Optional route path pattern for files uploaded by the Partner. Supports {{partner_name}}.
|
|
@@ -217,6 +229,7 @@ module Files
|
|
|
217
229
|
# path (required) - string - Channel path relative to the Partner root folder.
|
|
218
230
|
# workspace_id - int64 - ID of the Workspace associated with this Partner Channel Template.
|
|
219
231
|
def self.create(params = {}, options = {})
|
|
232
|
+
raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
|
|
220
233
|
raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
|
|
221
234
|
raise InvalidParameterError.new("Bad parameter: from_partner_managed_folder_paths must be an Array") if params[:from_partner_managed_folder_paths] and !params[:from_partner_managed_folder_paths].is_a?(Array)
|
|
222
235
|
raise InvalidParameterError.new("Bad parameter: from_partner_route_path_pattern must be an String") if params[:from_partner_route_path_pattern] and !params[:from_partner_route_path_pattern].is_a?(String)
|
|
@@ -234,6 +247,7 @@ module Files
|
|
|
234
247
|
end
|
|
235
248
|
|
|
236
249
|
# Parameters:
|
|
250
|
+
# direction - string - Channel directions. `two_way` enables both directions, `to_partner` enables outgoing downloads, and `from_partner` enables incoming uploads.
|
|
237
251
|
# from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
|
|
238
252
|
# from_partner_managed_folder_paths - array(string) - Managed folder paths inside the from-Partner folder.
|
|
239
253
|
# from_partner_route_path_pattern - string - Optional route path pattern for files uploaded by the Partner. Supports {{partner_name}}.
|
|
@@ -246,6 +260,7 @@ module Files
|
|
|
246
260
|
params ||= {}
|
|
247
261
|
params[:id] = id
|
|
248
262
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
263
|
+
raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
|
|
249
264
|
raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
|
|
250
265
|
raise InvalidParameterError.new("Bad parameter: from_partner_managed_folder_paths must be an Array") if params[:from_partner_managed_folder_paths] and !params[:from_partner_managed_folder_paths].is_a?(Array)
|
|
251
266
|
raise InvalidParameterError.new("Bad parameter: from_partner_route_path_pattern must be an String") if params[:from_partner_route_path_pattern] and !params[:from_partner_route_path_pattern].is_a?(String)
|
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.717
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|