files.com 1.0.282 → 1.0.285

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: b6cd0be1af416ad775c6479753c16bce22ecd24b4a6e5f89b0ec0868f1e2a282
4
- data.tar.gz: 073edaa553a3e9a9a9f1ca4cb235073873913712b7a9700a909065b8734a3fe3
3
+ metadata.gz: 8d9c26f1575d9053004e4e965a3178c8c63ada90d159097ccd0087e1a81c079f
4
+ data.tar.gz: 488c20ff04287529d9a7b1fd1184263f4d1236bee7dbf533d464d8b71c8f01d4
5
5
  SHA512:
6
- metadata.gz: 8ffb1c6f47d8ff7aad81d41c98f446306e15fac7ae48f77baed664ded604fc9869e1ccd7831a2d6b53b12851436feed7b6be453348a44f3469cbaa9c1b574454
7
- data.tar.gz: 107989bb5c5d76a52d79b9a6041c1eee867e9008f4fa341c8541cd8b88dcfed1aee3b3697fcfdf52a8d22dc6a5c4e72c27c0505418f587e1f86bb89cedc48070
6
+ metadata.gz: d9dc26b0e0dfd812a65ad31c4b47d58a7978791dd2d35148a787c2cca425359d65adc8edb76890425a9b578807e2979c4340f7ccc4ad57a9265c0025eb863b07
7
+ data.tar.gz: 99483961fa8f1b0cbc8277d43ac90ba4ab6d0daab4b807587bfb82b9468b6e90e815120ac57c8d33b70daf9d6afff687daff1b5f13314386dab68654a1a285b0
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.282
1
+ 1.0.285
@@ -10,25 +10,29 @@
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
- "invoice_line_items": {
14
- "amount": 1.0,
15
- "created_at": "2000-01-01T01:00:00Z",
16
- "description": "Service from 2019-01-01 through 2019-12-31",
17
- "type": "invoice",
18
- "service_end_at": "2000-01-01T01:00:00Z",
19
- "service_start_at": "2000-01-01T01:00:00Z",
20
- "updated_at": "2000-01-01T01:00:00Z",
21
- "plan": "Enterprise",
22
- "site": "My site"
23
- },
13
+ "invoice_line_items": [
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
25
+ ],
24
26
  "method": "paypal",
25
- "payment_line_items": {
26
- "amount": 1.0,
27
- "created_at": "2000-01-01T01:00:00Z",
28
- "invoice_id": 1,
29
- "payment_id": 1,
30
- "updated_at": "2000-01-01T01:00:00Z"
31
- },
27
+ "payment_line_items": [
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1,
33
+ "updated_at": "2000-01-01T01:00:00Z"
34
+ }
35
+ ],
32
36
  "payment_reversed_at": "2000-01-01T01:00:00Z",
33
37
  "payment_type": "",
34
38
  "site_name": "My Site",
@@ -43,9 +47,9 @@
43
47
  * `created_at` (date-time): Line item created at
44
48
  * `currency` (string): Line item currency
45
49
  * `download_uri` (string): Line item download uri
46
- * `invoice_line_items` (InvoiceLineItem): Associated invoice line items
50
+ * `invoice_line_items` (array): Associated invoice line items
47
51
  * `method` (string): Line item payment method
48
- * `payment_line_items` (PaymentLineItem): Associated payment line items
52
+ * `payment_line_items` (array): Associated payment line items
49
53
  * `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
50
54
  * `payment_type` (string): Type of payment if applicable
51
55
  * `site_name` (string): Site name this line item is for
data/docs/app.md CHANGED
@@ -31,7 +31,7 @@
31
31
  * `documentation_links` (object): Collection of named links to documentation
32
32
  * `icon_url` (string): App icon
33
33
  * `logo_url` (string): Full size logo for the App
34
- * `screenshot_list_urls` (string): Screenshots of the App
34
+ * `screenshot_list_urls` (array): Screenshots of the App
35
35
  * `logo_thumbnail_url` (string): Logo thumbnail for the App
36
36
  * `sso_strategy_type` (string): Associated SSO Strategy type, if any
37
37
  * `remote_server_type` (string): Associated Remote Server type, if any
data/docs/automation.md CHANGED
@@ -42,8 +42,12 @@
42
42
  2
43
43
  ],
44
44
  "webhook_url": "https://app.files.com/api/webhooks/abc123",
45
- "trigger_actions": "[ \"create\" ]",
46
- "value": "{\"limit\": \"1\"}"
45
+ "trigger_actions": [
46
+ "create"
47
+ ],
48
+ "value": {
49
+ "limit": "1"
50
+ }
47
51
  }
48
52
  ```
49
53
 
@@ -57,7 +61,7 @@
57
61
  * `name` (string): Name for this automation.
58
62
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
59
63
  * `source` (string): Source Path
60
- * `destinations` (string): Destination Path
64
+ * `destinations` (array): Destination Path
61
65
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
62
66
  * `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
63
67
  * `description` (string): Description for the this Automation.
@@ -66,7 +70,7 @@
66
70
  * `user_ids` (array): IDs of Users for the Automation (i.e. who to Request File from)
67
71
  * `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
68
72
  * `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
69
- * `trigger_actions` (string): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
73
+ * `trigger_actions` (array): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
70
74
  * `value` (object): A Hash of attributes specific to the automation type.
71
75
  * `destination` (string): DEPRECATED: Destination Path. Use `destinations` instead.
72
76
 
@@ -125,8 +129,8 @@ Files::Automation.create(
125
129
  schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
126
130
  disabled: true,
127
131
  trigger: "realtime",
128
- trigger_actions: "[ \"create\" ]",
129
- value: "{\"limit\": \"1\"}",
132
+ trigger_actions: ["create"],
133
+ value: {"limit":"1"},
130
134
  automation: "create_folder"
131
135
  )
132
136
  ```
@@ -166,8 +170,8 @@ Files::Automation.update(id,
166
170
  schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
167
171
  disabled: true,
168
172
  trigger: "realtime",
169
- trigger_actions: "[ \"create\" ]",
170
- value: "{\"limit\": \"1\"}",
173
+ trigger_actions: ["create"],
174
+ value: {"limit":"1"},
171
175
  automation: "create_folder"
172
176
  )
173
177
  ```
@@ -223,8 +227,8 @@ automation.update(
223
227
  schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
224
228
  disabled: true,
225
229
  trigger: "realtime",
226
- trigger_actions: "[ \"create\" ]",
227
- value: "{\"limit\": \"1\"}",
230
+ trigger_actions: ["create"],
231
+ value: {"limit":"1"},
228
232
  automation: "create_folder"
229
233
  )
230
234
  ```
data/docs/bundle.md CHANGED
@@ -8,6 +8,7 @@
8
8
  "url": "https://subdomain.files.com/f/12345678",
9
9
  "description": "The public description of the bundle.",
10
10
  "password_protected": true,
11
+ "permissions": "read",
11
12
  "preview_only": true,
12
13
  "require_registration": true,
13
14
  "require_share_recipient": true,
@@ -21,20 +22,22 @@
21
22
  3,
22
23
  4
23
24
  ],
24
- "form_fields": {
25
- "id": 1,
26
- "label": "Sample Label",
27
- "required": true,
28
- "help_text": "Help Text",
29
- "field_type": "text",
30
- "options_for_select": [
31
- "red",
32
- "green",
33
- "blue"
34
- ],
35
- "default_option": "red",
36
- "form_field_set_id": 1
37
- },
25
+ "form_fields": [
26
+ {
27
+ "id": 1,
28
+ "label": "Sample Label",
29
+ "required": true,
30
+ "help_text": "Help Text",
31
+ "field_type": "text",
32
+ "options_for_select": [
33
+ "red",
34
+ "green",
35
+ "blue"
36
+ ],
37
+ "default_option": "red",
38
+ "form_field_set_id": 1
39
+ }
40
+ ],
38
41
  "skip_name": true,
39
42
  "skip_email": true,
40
43
  "skip_company": true
@@ -67,6 +70,7 @@
67
70
  * `url` (string): Public URL of Share Link
68
71
  * `description` (string): Public description
69
72
  * `password_protected` (boolean): Is this bundle password protected?
73
+ * `permissions` (string): Permissions that apply to Folders in this Share Link.
70
74
  * `preview_only` (boolean): Restrict users to previewing files only?
71
75
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
72
76
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
@@ -147,6 +151,7 @@ Files::Bundle.create(
147
151
  description: "The public description of the bundle.",
148
152
  note: "The internal note on the bundle.",
149
153
  code: "abc123",
154
+ permissions: "read",
150
155
  preview_only: true,
151
156
  require_registration: true,
152
157
  clickwrap_id: 1,
@@ -169,6 +174,7 @@ Files::Bundle.create(
169
174
  * `description` (string): Public description
170
175
  * `note` (string): Bundle internal note
171
176
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
177
+ * `permissions` (string): Permissions that apply to Folders in this Share Link.
172
178
  * `preview_only` (boolean): Restrict users to previewing files only?
173
179
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
174
180
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
@@ -216,6 +222,7 @@ Files::Bundle.update(id,
216
222
  inbox_id: 1,
217
223
  max_uses: 1,
218
224
  note: "The internal note on the bundle.",
225
+ permissions: "read",
219
226
  preview_only: true,
220
227
  require_registration: true,
221
228
  require_share_recipient: true,
@@ -239,6 +246,7 @@ Files::Bundle.update(id,
239
246
  * `inbox_id` (int64): ID of the associated inbox, if available.
240
247
  * `max_uses` (int64): Maximum number of times bundle can be accessed
241
248
  * `note` (string): Bundle internal note
249
+ * `permissions` (string): Permissions that apply to Folders in this Share Link.
242
250
  * `preview_only` (boolean): Restrict users to previewing files only?
243
251
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
244
252
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
@@ -302,6 +310,7 @@ bundle.update(
302
310
  inbox_id: 1,
303
311
  max_uses: 1,
304
312
  note: "The internal note on the bundle.",
313
+ permissions: "read",
305
314
  preview_only: true,
306
315
  require_registration: true,
307
316
  require_share_recipient: true,
@@ -325,6 +334,7 @@ bundle.update(
325
334
  * `inbox_id` (int64): ID of the associated inbox, if available.
326
335
  * `max_uses` (int64): Maximum number of times bundle can be accessed
327
336
  * `note` (string): Bundle internal note
337
+ * `permissions` (string): Permissions that apply to Folders in this Share Link.
328
338
  * `preview_only` (boolean): Restrict users to previewing files only?
329
339
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
330
340
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
data/docs/file_comment.md CHANGED
@@ -6,16 +6,18 @@
6
6
  {
7
7
  "id": 1,
8
8
  "body": "What a great file!",
9
- "reactions": {
10
- "id": 1,
11
- "emoji": "👍"
12
- }
9
+ "reactions": [
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
14
+ ]
13
15
  }
14
16
  ```
15
17
 
16
18
  * `id` (int64): File Comment ID
17
19
  * `body` (string): Comment body.
18
- * `reactions` (FileCommentReaction): Reactions to this comment.
20
+ * `reactions` (array): Reactions to this comment.
19
21
  * `path` (string): File path.
20
22
 
21
23
 
data/docs/form_field.md CHANGED
@@ -24,6 +24,6 @@
24
24
  * `required` (boolean): Is this a required field?
25
25
  * `help_text` (string): Help text to be displayed
26
26
  * `field_type` (string): Type of Field
27
- * `options_for_select` (string): Options to display for radio and dropdown
27
+ * `options_for_select` (array): Options to display for radio and dropdown
28
28
  * `default_option` (string): Default option for radio and dropdown
29
29
  * `form_field_set_id` (int64): Form field set id
@@ -12,20 +12,22 @@
12
12
  3,
13
13
  4
14
14
  ],
15
- "form_fields": {
16
- "id": 1,
17
- "label": "Sample Label",
18
- "required": true,
19
- "help_text": "Help Text",
20
- "field_type": "text",
21
- "options_for_select": [
22
- "red",
23
- "green",
24
- "blue"
25
- ],
26
- "default_option": "red",
27
- "form_field_set_id": 1
28
- },
15
+ "form_fields": [
16
+ {
17
+ "id": 1,
18
+ "label": "Sample Label",
19
+ "required": true,
20
+ "help_text": "Help Text",
21
+ "field_type": "text",
22
+ "options_for_select": [
23
+ "red",
24
+ "green",
25
+ "blue"
26
+ ],
27
+ "default_option": "red",
28
+ "form_field_set_id": 1
29
+ }
30
+ ],
29
31
  "skip_name": true,
30
32
  "skip_email": true,
31
33
  "skip_company": true
@@ -34,8 +36,8 @@
34
36
 
35
37
  * `id` (int64): Form field set id
36
38
  * `title` (string): Title to be displayed
37
- * `form_layout` (int64): Layout of the form
38
- * `form_fields` (FormField): Associated form fields
39
+ * `form_layout` (array): Layout of the form
40
+ * `form_fields` (array): Associated form fields
39
41
  * `skip_name` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing name
40
42
  * `skip_email` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing email
41
43
  * `skip_company` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing company
@@ -84,7 +86,7 @@ Files::FormFieldSet.create(
84
86
  skip_email: true,
85
87
  skip_name: true,
86
88
  skip_company: true,
87
- form_fields: {"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}
89
+ form_fields: [{"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
88
90
  )
89
91
  ```
90
92
 
@@ -108,7 +110,7 @@ Files::FormFieldSet.update(id,
108
110
  skip_email: true,
109
111
  skip_name: true,
110
112
  skip_company: true,
111
- form_fields: {"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}
113
+ form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
112
114
  )
113
115
  ```
114
116
 
@@ -147,7 +149,7 @@ form_field_set.update(
147
149
  skip_email: true,
148
150
  skip_name: true,
149
151
  skip_company: true,
150
- form_fields: {"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}
152
+ form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
151
153
  )
152
154
  ```
153
155
 
data/docs/group.md CHANGED
@@ -6,25 +6,19 @@
6
6
  {
7
7
  "id": 1,
8
8
  "name": "owners",
9
- "admin_ids": [
10
- 1
11
- ],
9
+ "admin_ids": "1",
12
10
  "notes": "",
13
- "user_ids": [
14
- 1
15
- ],
16
- "usernames": [
17
- "user"
18
- ]
11
+ "user_ids": "1",
12
+ "usernames": "user"
19
13
  }
20
14
  ```
21
15
 
22
16
  * `id` (int64): Group ID
23
17
  * `name` (string): Group name
24
- * `admin_ids` (string): List of user IDs who are group administrators (separated by commas)
18
+ * `admin_ids` (string): Comma-delimited list of user IDs who are group administrators (separated by commas)
25
19
  * `notes` (string): Notes about this group
26
- * `user_ids` (array): List of user IDs who belong to this group (separated by commas)
27
- * `usernames` (array): List of usernames who belong to this group (separated by commas)
20
+ * `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
21
+ * `usernames` (string): Comma-delimited list of usernames who belong to this group (separated by commas)
28
22
 
29
23
 
30
24
  ---
@@ -71,8 +65,8 @@ Files::Group.find(id)
71
65
  ```
72
66
  Files::Group.create(
73
67
  name: "owners",
74
- user_ids: [1],
75
- admin_ids: [1]
68
+ user_ids: "1",
69
+ admin_ids: "1"
76
70
  )
77
71
  ```
78
72
 
@@ -91,8 +85,8 @@ Files::Group.create(
91
85
  ```
92
86
  Files::Group.update(id,
93
87
  name: "owners",
94
- user_ids: [1],
95
- admin_ids: [1]
88
+ user_ids: "1",
89
+ admin_ids: "1"
96
90
  )
97
91
  ```
98
92
 
@@ -127,8 +121,8 @@ group = Files::Group.list.first
127
121
 
128
122
  group.update(
129
123
  name: "owners",
130
- user_ids: [1],
131
- admin_ids: [1]
124
+ user_ids: "1",
125
+ admin_ids: "1"
132
126
  )
133
127
  ```
134
128
 
data/docs/invoice.md CHANGED
@@ -10,25 +10,29 @@
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
- "invoice_line_items": {
14
- "amount": 1.0,
15
- "created_at": "2000-01-01T01:00:00Z",
16
- "description": "Service from 2019-01-01 through 2019-12-31",
17
- "type": "invoice",
18
- "service_end_at": "2000-01-01T01:00:00Z",
19
- "service_start_at": "2000-01-01T01:00:00Z",
20
- "updated_at": "2000-01-01T01:00:00Z",
21
- "plan": "Enterprise",
22
- "site": "My site"
23
- },
13
+ "invoice_line_items": [
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
25
+ ],
24
26
  "method": "paypal",
25
- "payment_line_items": {
26
- "amount": 1.0,
27
- "created_at": "2000-01-01T01:00:00Z",
28
- "invoice_id": 1,
29
- "payment_id": 1,
30
- "updated_at": "2000-01-01T01:00:00Z"
31
- },
27
+ "payment_line_items": [
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1,
33
+ "updated_at": "2000-01-01T01:00:00Z"
34
+ }
35
+ ],
32
36
  "payment_reversed_at": "2000-01-01T01:00:00Z",
33
37
  "payment_type": "",
34
38
  "site_name": "My Site",
@@ -43,9 +47,9 @@
43
47
  * `created_at` (date-time): Line item created at
44
48
  * `currency` (string): Line item currency
45
49
  * `download_uri` (string): Line item download uri
46
- * `invoice_line_items` (InvoiceLineItem): Associated invoice line items
50
+ * `invoice_line_items` (array): Associated invoice line items
47
51
  * `method` (string): Line item payment method
48
- * `payment_line_items` (PaymentLineItem): Associated payment line items
52
+ * `payment_line_items` (array): Associated payment line items
49
53
  * `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
50
54
  * `payment_type` (string): Type of payment if applicable
51
55
  * `site_name` (string): Site name this line item is for
@@ -11,7 +11,7 @@
11
11
  "service_end_at": "2000-01-01T01:00:00Z",
12
12
  "service_start_at": "2000-01-01T01:00:00Z",
13
13
  "updated_at": "2000-01-01T01:00:00Z",
14
- "plan": "Enterprise",
14
+ "plan": "Premier",
15
15
  "site": "My site"
16
16
  }
17
17
  ```
data/docs/message.md CHANGED
@@ -7,21 +7,25 @@
7
7
  "id": 1,
8
8
  "subject": "Files.com Account Upgrade",
9
9
  "body": "We should upgrade our Files.com account!",
10
- "comments": {
11
- "id": 1,
12
- "body": "What a great idea, thank you!",
13
- "reactions": {
10
+ "comments": [
11
+ {
14
12
  "id": 1,
15
- "emoji": "👍"
13
+ "body": "What a great idea, thank you!",
14
+ "reactions": [
15
+ {
16
+ "id": 1,
17
+ "emoji": "👍"
18
+ }
19
+ ]
16
20
  }
17
- }
21
+ ]
18
22
  }
19
23
  ```
20
24
 
21
25
  * `id` (int64): Message ID
22
26
  * `subject` (string): Message subject.
23
27
  * `body` (string): Message body.
24
- * `comments` (MessageComment): Comments.
28
+ * `comments` (array): Comments.
25
29
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
26
30
  * `project_id` (int64): Project to which the message should be attached.
27
31
 
@@ -6,16 +6,18 @@
6
6
  {
7
7
  "id": 1,
8
8
  "body": "What a great idea, thank you!",
9
- "reactions": {
10
- "id": 1,
11
- "emoji": "👍"
12
- }
9
+ "reactions": [
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
14
+ ]
13
15
  }
14
16
  ```
15
17
 
16
18
  * `id` (int64): Message Comment ID
17
19
  * `body` (string): Comment body.
18
- * `reactions` (MessageCommentReaction): Reactions to this comment.
20
+ * `reactions` (array): Reactions to this comment.
19
21
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
20
22
 
21
23
 
data/docs/notification.md CHANGED
@@ -40,8 +40,8 @@
40
40
  * `path` (string): Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
41
  * `group_id` (int64): Notification group id
42
42
  * `group_name` (string): Group name if applicable
43
- * `triggering_group_ids` (int64): Only notify on actions made by a member of one of the specified groups
44
- * `triggering_user_ids` (int64): Only notify on actions made one of the specified users
43
+ * `triggering_group_ids` (array): Only notify on actions made by a member of one of the specified groups
44
+ * `triggering_user_ids` (array): Only notify on actions made one of the specified users
45
45
  * `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
46
46
  * `notify_user_actions` (boolean): Trigger notification on notification user actions?
47
47
  * `notify_on_copy` (boolean): Triggers notification when copying files to this path
data/docs/payment.md CHANGED
@@ -10,25 +10,29 @@
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
- "invoice_line_items": {
14
- "amount": 1.0,
15
- "created_at": "2000-01-01T01:00:00Z",
16
- "description": "Service from 2019-01-01 through 2019-12-31",
17
- "type": "invoice",
18
- "service_end_at": "2000-01-01T01:00:00Z",
19
- "service_start_at": "2000-01-01T01:00:00Z",
20
- "updated_at": "2000-01-01T01:00:00Z",
21
- "plan": "Enterprise",
22
- "site": "My site"
23
- },
13
+ "invoice_line_items": [
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
25
+ ],
24
26
  "method": "paypal",
25
- "payment_line_items": {
26
- "amount": 1.0,
27
- "created_at": "2000-01-01T01:00:00Z",
28
- "invoice_id": 1,
29
- "payment_id": 1,
30
- "updated_at": "2000-01-01T01:00:00Z"
31
- },
27
+ "payment_line_items": [
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1,
33
+ "updated_at": "2000-01-01T01:00:00Z"
34
+ }
35
+ ],
32
36
  "payment_reversed_at": "2000-01-01T01:00:00Z",
33
37
  "payment_type": "",
34
38
  "site_name": "My Site",
@@ -43,9 +47,9 @@
43
47
  * `created_at` (date-time): Line item created at
44
48
  * `currency` (string): Line item currency
45
49
  * `download_uri` (string): Line item download uri
46
- * `invoice_line_items` (InvoiceLineItem): Associated invoice line items
50
+ * `invoice_line_items` (array): Associated invoice line items
47
51
  * `method` (string): Line item payment method
48
- * `payment_line_items` (PaymentLineItem): Associated payment line items
52
+ * `payment_line_items` (array): Associated payment line items
49
53
  * `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
50
54
  * `payment_type` (string): Type of payment if applicable
51
55
  * `site_name` (string): Site name this line item is for
@@ -12,6 +12,8 @@
12
12
  "name": "My Remote server",
13
13
  "port": 1,
14
14
  "max_connections": 1,
15
+ "pin_to_site_region": true,
16
+ "pinned_region": "us-east-1",
15
17
  "s3_bucket": "my-bucket",
16
18
  "s3_region": "us-east-1",
17
19
  "aws_access_key": "",
@@ -56,6 +58,8 @@
56
58
  * `name` (string): Internal name for your reference
57
59
  * `port` (int64): Port for remote server. Not needed for S3.
58
60
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
61
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
62
+ * `pinned_region` (string): If set, all communciations with this remote server are made through the provided region.
59
63
  * `s3_bucket` (string): S3 bucket name
60
64
  * `s3_region` (string): S3 region
61
65
  * `aws_access_key` (string): AWS Access Key.
@@ -144,6 +148,7 @@ Files::RemoteServer.create(
144
148
  hostname: "remote-server.com",
145
149
  name: "My Remote server",
146
150
  max_connections: 1,
151
+ pin_to_site_region: true,
147
152
  port: 1,
148
153
  s3_bucket: "my-bucket",
149
154
  s3_region: "us-east-1",
@@ -195,6 +200,7 @@ Files::RemoteServer.create(
195
200
  * `hostname` (string): Hostname or IP address
196
201
  * `name` (string): Internal name for your reference
197
202
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
203
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
198
204
  * `port` (int64): Port for remote server. Not needed for S3.
199
205
  * `s3_bucket` (string): S3 bucket name
200
206
  * `s3_region` (string): S3 region
@@ -237,6 +243,7 @@ Files::RemoteServer.update(id,
237
243
  hostname: "remote-server.com",
238
244
  name: "My Remote server",
239
245
  max_connections: 1,
246
+ pin_to_site_region: true,
240
247
  port: 1,
241
248
  s3_bucket: "my-bucket",
242
249
  s3_region: "us-east-1",
@@ -289,6 +296,7 @@ Files::RemoteServer.update(id,
289
296
  * `hostname` (string): Hostname or IP address
290
297
  * `name` (string): Internal name for your reference
291
298
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
299
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
292
300
  * `port` (int64): Port for remote server. Not needed for S3.
293
301
  * `s3_bucket` (string): S3 bucket name
294
302
  * `s3_region` (string): S3 region
@@ -346,6 +354,7 @@ remote_server.update(
346
354
  hostname: "remote-server.com",
347
355
  name: "My Remote server",
348
356
  max_connections: 1,
357
+ pin_to_site_region: true,
349
358
  port: 1,
350
359
  s3_bucket: "my-bucket",
351
360
  s3_region: "us-east-1",
@@ -398,6 +407,7 @@ remote_server.update(
398
407
  * `hostname` (string): Hostname or IP address
399
408
  * `name` (string): Internal name for your reference
400
409
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
410
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
401
411
  * `port` (int64): Port for remote server. Not needed for S3.
402
412
  * `s3_bucket` (string): S3 bucket name
403
413
  * `s3_region` (string): S3 region
@@ -14,7 +14,7 @@
14
14
  }
15
15
  ```
16
16
 
17
- * `changes` (string): Markdown-formatted change messages.
17
+ * `changes` (array): Markdown-formatted change messages.
18
18
  * `created_at` (date-time): The time this change was made
19
19
  * `user_id` (int64): The user id responsible for this change
20
20
  * `user_is_files_support` (boolean): true if this change was performed by Files.com support.
data/docs/site.md CHANGED
@@ -112,6 +112,7 @@
112
112
  "password_requirements_apply_to_bundles": true,
113
113
  "password_validity_days": 1,
114
114
  "phone": "555-555-5555",
115
+ "pin_all_remote_servers_to_site_region": true,
115
116
  "require_2fa": true,
116
117
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
117
118
  "require_2fa_user_type": "`site_admins`",
@@ -218,6 +219,7 @@
218
219
  "user_lockout_tries": 1,
219
220
  "user_lockout_within": 6,
220
221
  "user_requests_enabled": true,
222
+ "user_requests_notify_admins": true,
221
223
  "welcome_custom_text": "Welcome to my site!",
222
224
  "welcome_email_cc": "",
223
225
  "welcome_email_subject": "",
@@ -318,6 +320,7 @@
318
320
  * `password_requirements_apply_to_bundles` (boolean): Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
319
321
  * `password_validity_days` (int64): Number of days password is valid
320
322
  * `phone` (string): Site phone number
323
+ * `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
321
324
  * `require_2fa` (boolean): Require two-factor authentication for all users?
322
325
  * `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
323
326
  * `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -350,6 +353,7 @@
350
353
  * `user_lockout_tries` (int64): Number of login tries within `user_lockout_within` hours before users are locked out
351
354
  * `user_lockout_within` (int64): Number of hours for user lockout window
352
355
  * `user_requests_enabled` (boolean): Enable User Requests feature
356
+ * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
353
357
  * `welcome_custom_text` (string): Custom text send in user welcome email
354
358
  * `welcome_email_cc` (email): Include this email in welcome emails if enabled
355
359
  * `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
@@ -408,6 +412,7 @@ Files::Site.update(
408
412
  folder_permissions_groups_only: true,
409
413
  welcome_screen: "user_controlled",
410
414
  office_integration_available: true,
415
+ pin_all_remote_servers_to_site_region: true,
411
416
  session_expiry: 1.0,
412
417
  ssl_required: true,
413
418
  tls_disabled: true,
@@ -443,6 +448,7 @@ Files::Site.update(
443
448
  non_sso_users_allowed: true,
444
449
  sharing_enabled: true,
445
450
  user_requests_enabled: true,
451
+ user_requests_notify_admins: true,
446
452
  ftp_enabled: true,
447
453
  sftp_enabled: true,
448
454
  allowed_2fa_method_sms: true,
@@ -516,6 +522,7 @@ Files::Site.update(
516
522
  * `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
517
523
  * `welcome_screen` (string): Does the welcome screen appear?
518
524
  * `office_integration_available` (boolean): Allow users to use Office for the web?
525
+ * `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
519
526
  * `session_expiry` (double): Session expiry in hours
520
527
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
521
528
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -552,6 +559,7 @@ Files::Site.update(
552
559
  * `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
553
560
  * `sharing_enabled` (boolean): Allow bundle creation
554
561
  * `user_requests_enabled` (boolean): Enable User Requests feature
562
+ * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
555
563
  * `ftp_enabled` (boolean): Is FTP enabled?
556
564
  * `sftp_enabled` (boolean): Is SFTP enabled?
557
565
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
data/docs/status.md CHANGED
@@ -8,14 +8,16 @@
8
8
  "message": "",
9
9
  "status": "",
10
10
  "data": "",
11
- "errors": {
12
- "fields": [
11
+ "errors": [
12
+ {
13
+ "fields": [
13
14
 
14
- ],
15
- "messages": [
15
+ ],
16
+ "messages": [
16
17
 
17
- ]
18
- },
18
+ ]
19
+ }
20
+ ],
19
21
  "clickwrap_id": 1,
20
22
  "clickwrap_body": ""
21
23
  }
@@ -25,6 +27,6 @@
25
27
  * `message` (string): Error message
26
28
  * `status` (string): Status message
27
29
  * `data` (Auto): Additional data
28
- * `errors` (Errors): A list of api errors
30
+ * `errors` (array): A list of api errors
29
31
  * `clickwrap_id` (int64): Required Clickwrap id
30
32
  * `clickwrap_body` (string): Required Clickwrap body
@@ -15,7 +15,7 @@
15
15
  "deleted_files_counted_in_minimum": "65536",
16
16
  "root_storage": "65536",
17
17
  "usage_by_top_level_dir": [
18
-
18
+ ""
19
19
  ]
20
20
  }
21
21
  ```
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:download_uri]
40
40
  end
41
41
 
42
- # InvoiceLineItem - Associated invoice line items
42
+ # array - Associated invoice line items
43
43
  def invoice_line_items
44
44
  @attributes[:invoice_line_items]
45
45
  end
@@ -49,7 +49,7 @@ module Files
49
49
  @attributes[:method]
50
50
  end
51
51
 
52
- # PaymentLineItem - Associated payment line items
52
+ # array - Associated payment line items
53
53
  def payment_line_items
54
54
  @attributes[:payment_line_items]
55
55
  end
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:logo_url]
40
40
  end
41
41
 
42
- # string - Screenshots of the App
42
+ # array - Screenshots of the App
43
43
  def screenshot_list_urls
44
44
  @attributes[:screenshot_list_urls]
45
45
  end
@@ -99,7 +99,7 @@ module Files
99
99
  @attributes[:source] = value
100
100
  end
101
101
 
102
- # string - Destination Path
102
+ # array - Destination Path
103
103
  def destinations
104
104
  @attributes[:destinations]
105
105
  end
@@ -180,7 +180,7 @@ module Files
180
180
  @attributes[:webhook_url] = value
181
181
  end
182
182
 
183
- # string - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
183
+ # array - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
184
184
  def trigger_actions
185
185
  @attributes[:trigger_actions]
186
186
  end
@@ -45,6 +45,15 @@ module Files
45
45
  @attributes[:password_protected] = value
46
46
  end
47
47
 
48
+ # string - Permissions that apply to Folders in this Share Link.
49
+ def permissions
50
+ @attributes[:permissions]
51
+ end
52
+
53
+ def permissions=(value)
54
+ @attributes[:permissions] = value
55
+ end
56
+
48
57
  # boolean - Restrict users to previewing files only?
49
58
  def preview_only
50
59
  @attributes[:preview_only]
@@ -296,6 +305,7 @@ module Files
296
305
  # inbox_id - int64 - ID of the associated inbox, if available.
297
306
  # max_uses - int64 - Maximum number of times bundle can be accessed
298
307
  # note - string - Bundle internal note
308
+ # permissions - string - Permissions that apply to Folders in this Share Link.
299
309
  # preview_only - boolean - Restrict users to previewing files only?
300
310
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
301
311
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
@@ -319,6 +329,7 @@ module Files
319
329
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
320
330
  raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params.dig(:max_uses) and !params.dig(:max_uses).is_a?(Integer)
321
331
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
332
+ raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params.dig(:permissions) and !params.dig(:permissions).is_a?(String)
322
333
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
323
334
 
324
335
  Api.send_request("/bundles/#{@attributes[:id]}", :patch, params, @options)
@@ -405,6 +416,7 @@ module Files
405
416
  # description - string - Public description
406
417
  # note - string - Bundle internal note
407
418
  # code - string - Bundle code. This code forms the end part of the Public URL.
419
+ # permissions - string - Permissions that apply to Folders in this Share Link.
408
420
  # preview_only - boolean - Restrict users to previewing files only?
409
421
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
410
422
  # clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
@@ -424,6 +436,7 @@ module Files
424
436
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
425
437
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
426
438
  raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
439
+ raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params.dig(:permissions) and !params.dig(:permissions).is_a?(String)
427
440
  raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
428
441
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
429
442
  raise MissingParameterError.new("Parameter missing: paths") unless params.dig(:paths)
@@ -462,6 +475,7 @@ module Files
462
475
  # inbox_id - int64 - ID of the associated inbox, if available.
463
476
  # max_uses - int64 - Maximum number of times bundle can be accessed
464
477
  # note - string - Bundle internal note
478
+ # permissions - string - Permissions that apply to Folders in this Share Link.
465
479
  # preview_only - boolean - Restrict users to previewing files only?
466
480
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
467
481
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
@@ -484,6 +498,7 @@ module Files
484
498
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
485
499
  raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params.dig(:max_uses) and !params.dig(:max_uses).is_a?(Integer)
486
500
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
501
+ raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params.dig(:permissions) and !params.dig(:permissions).is_a?(String)
487
502
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
488
503
 
489
504
  response, options = Api.send_request("/bundles/#{params[:id]}", :patch, params, options)
@@ -160,7 +160,7 @@ module Files
160
160
  buf = io.read(upload.partsize) || ""
161
161
  bytes_written += buf.length
162
162
  method = upload.http_method.downcase.to_sym
163
- response = client(options).remote_request(method, upload.upload_uri, { "Content-Length": buf.length.to_s }, buf)
163
+ response = client(options).remote_request(method, upload.upload_uri, { "Content-Length": buf.length.to_s, "Content-Type": "application/octet-stream" }, buf)
164
164
  etags << { etag: response.headers["ETag"], part: upload.part_number }
165
165
  return upload, etags, bytes_written if io.eof?
166
166
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:body] = value
28
28
  end
29
29
 
30
- # FileCommentReaction - Reactions to this comment.
30
+ # array - Reactions to this comment.
31
31
  def reactions
32
32
  @attributes[:reactions]
33
33
  end
@@ -34,7 +34,7 @@ module Files
34
34
  @attributes[:field_type]
35
35
  end
36
36
 
37
- # string - Options to display for radio and dropdown
37
+ # array - Options to display for radio and dropdown
38
38
  def options_for_select
39
39
  @attributes[:options_for_select]
40
40
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:title] = value
28
28
  end
29
29
 
30
- # int64 - Layout of the form
30
+ # array - Layout of the form
31
31
  def form_layout
32
32
  @attributes[:form_layout]
33
33
  end
@@ -36,7 +36,7 @@ module Files
36
36
  @attributes[:form_layout] = value
37
37
  end
38
38
 
39
- # FormField - Associated form fields
39
+ # array - Associated form fields
40
40
  def form_fields
41
41
  @attributes[:form_fields]
42
42
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:name] = value
28
28
  end
29
29
 
30
- # string - List of user IDs who are group administrators (separated by commas)
30
+ # string - Comma-delimited list of user IDs who are group administrators (separated by commas)
31
31
  def admin_ids
32
32
  @attributes[:admin_ids]
33
33
  end
@@ -45,7 +45,7 @@ module Files
45
45
  @attributes[:notes] = value
46
46
  end
47
47
 
48
- # array - List of user IDs who belong to this group (separated by commas)
48
+ # string - Comma-delimited list of user IDs who belong to this group (separated by commas)
49
49
  def user_ids
50
50
  @attributes[:user_ids]
51
51
  end
@@ -54,7 +54,7 @@ module Files
54
54
  @attributes[:user_ids] = value
55
55
  end
56
56
 
57
- # array - List of usernames who belong to this group (separated by commas)
57
+ # string - Comma-delimited list of usernames who belong to this group (separated by commas)
58
58
  def usernames
59
59
  @attributes[:usernames]
60
60
  end
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:download_uri]
40
40
  end
41
41
 
42
- # InvoiceLineItem - Associated invoice line items
42
+ # array - Associated invoice line items
43
43
  def invoice_line_items
44
44
  @attributes[:invoice_line_items]
45
45
  end
@@ -49,7 +49,7 @@ module Files
49
49
  @attributes[:method]
50
50
  end
51
51
 
52
- # PaymentLineItem - Associated payment line items
52
+ # array - Associated payment line items
53
53
  def payment_line_items
54
54
  @attributes[:payment_line_items]
55
55
  end
@@ -36,7 +36,7 @@ module Files
36
36
  @attributes[:body] = value
37
37
  end
38
38
 
39
- # MessageComment - Comments.
39
+ # array - Comments.
40
40
  def comments
41
41
  @attributes[:comments]
42
42
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:body] = value
28
28
  end
29
29
 
30
- # MessageCommentReaction - Reactions to this comment.
30
+ # array - Reactions to this comment.
31
31
  def reactions
32
32
  @attributes[:reactions]
33
33
  end
@@ -45,7 +45,7 @@ module Files
45
45
  @attributes[:group_name] = value
46
46
  end
47
47
 
48
- # int64 - Only notify on actions made by a member of one of the specified groups
48
+ # array - Only notify on actions made by a member of one of the specified groups
49
49
  def triggering_group_ids
50
50
  @attributes[:triggering_group_ids]
51
51
  end
@@ -54,7 +54,7 @@ module Files
54
54
  @attributes[:triggering_group_ids] = value
55
55
  end
56
56
 
57
- # int64 - Only notify on actions made one of the specified users
57
+ # array - Only notify on actions made one of the specified users
58
58
  def triggering_user_ids
59
59
  @attributes[:triggering_user_ids]
60
60
  end
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:download_uri]
40
40
  end
41
41
 
42
- # InvoiceLineItem - Associated invoice line items
42
+ # array - Associated invoice line items
43
43
  def invoice_line_items
44
44
  @attributes[:invoice_line_items]
45
45
  end
@@ -49,7 +49,7 @@ module Files
49
49
  @attributes[:method]
50
50
  end
51
51
 
52
- # PaymentLineItem - Associated payment line items
52
+ # array - Associated payment line items
53
53
  def payment_line_items
54
54
  @attributes[:payment_line_items]
55
55
  end
@@ -81,6 +81,24 @@ module Files
81
81
  @attributes[:max_connections] = value
82
82
  end
83
83
 
84
+ # boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
85
+ def pin_to_site_region
86
+ @attributes[:pin_to_site_region]
87
+ end
88
+
89
+ def pin_to_site_region=(value)
90
+ @attributes[:pin_to_site_region] = value
91
+ end
92
+
93
+ # string - If set, all communciations with this remote server are made through the provided region.
94
+ def pinned_region
95
+ @attributes[:pinned_region]
96
+ end
97
+
98
+ def pinned_region=(value)
99
+ @attributes[:pinned_region] = value
100
+ end
101
+
84
102
  # string - S3 bucket name
85
103
  def s3_bucket
86
104
  @attributes[:s3_bucket]
@@ -523,6 +541,7 @@ module Files
523
541
  # hostname - string - Hostname or IP address
524
542
  # name - string - Internal name for your reference
525
543
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
544
+ # pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
526
545
  # port - int64 - Port for remote server. Not needed for S3.
527
546
  # s3_bucket - string - S3 bucket name
528
547
  # s3_region - string - S3 region
@@ -683,6 +702,7 @@ module Files
683
702
  # hostname - string - Hostname or IP address
684
703
  # name - string - Internal name for your reference
685
704
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
705
+ # pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
686
706
  # port - int64 - Port for remote server. Not needed for S3.
687
707
  # s3_bucket - string - S3 bucket name
688
708
  # s3_region - string - S3 region
@@ -784,6 +804,7 @@ module Files
784
804
  # hostname - string - Hostname or IP address
785
805
  # name - string - Internal name for your reference
786
806
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
807
+ # pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
787
808
  # port - int64 - Port for remote server. Not needed for S3.
788
809
  # s3_bucket - string - S3 bucket name
789
810
  # s3_region - string - S3 region
@@ -9,7 +9,7 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
- # string - Markdown-formatted change messages.
12
+ # array - Markdown-formatted change messages.
13
13
  def changes
14
14
  @attributes[:changes]
15
15
  end
@@ -459,6 +459,11 @@ module Files
459
459
  @attributes[:phone]
460
460
  end
461
461
 
462
+ # boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
463
+ def pin_all_remote_servers_to_site_region
464
+ @attributes[:pin_all_remote_servers_to_site_region]
465
+ end
466
+
462
467
  # boolean - Require two-factor authentication for all users?
463
468
  def require_2fa
464
469
  @attributes[:require_2fa]
@@ -619,6 +624,11 @@ module Files
619
624
  @attributes[:user_requests_enabled]
620
625
  end
621
626
 
627
+ # boolean - Send email to site admins when a user request is received?
628
+ def user_requests_notify_admins
629
+ @attributes[:user_requests_notify_admins]
630
+ end
631
+
622
632
  # string - Custom text send in user welcome email
623
633
  def welcome_custom_text
624
634
  @attributes[:welcome_custom_text]
@@ -693,6 +703,7 @@ module Files
693
703
  # folder_permissions_groups_only - boolean - If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
694
704
  # welcome_screen - string - Does the welcome screen appear?
695
705
  # office_integration_available - boolean - Allow users to use Office for the web?
706
+ # pin_all_remote_servers_to_site_region - boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
696
707
  # session_expiry - double - Session expiry in hours
697
708
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
698
709
  # tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -729,6 +740,7 @@ module Files
729
740
  # non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
730
741
  # sharing_enabled - boolean - Allow bundle creation
731
742
  # user_requests_enabled - boolean - Enable User Requests feature
743
+ # user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
732
744
  # ftp_enabled - boolean - Is FTP enabled?
733
745
  # sftp_enabled - boolean - Is SFTP enabled?
734
746
  # allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
@@ -29,7 +29,7 @@ module Files
29
29
  @attributes[:data]
30
30
  end
31
31
 
32
- # Errors - A list of api errors
32
+ # array - A list of api errors
33
33
  def errors
34
34
  @attributes[:errors]
35
35
  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.282
4
+ version: 1.0.285
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable