files.com 1.1.22 → 1.1.23

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: 8c8e386894290e7a277a40f2c836e82d9a00b5f0d5496631326d70003e980567
4
- data.tar.gz: 5a04c639f0b6b163a71c50f2d546249b10b580e55b0bba20f18a4cf8b8bec318
3
+ metadata.gz: 81fa17098a2aa6a52bff8065332abb7d27db07decb3e1918f7e45ba343be6ec5
4
+ data.tar.gz: 1cb889b27b301f2a9c37f5908bb592a2e6923e8ccec8773c7d0a6b650636b5c6
5
5
  SHA512:
6
- metadata.gz: 46eadaac221fafe81e8b4c02cec7892caba261b45589152908f39410451e1ea3c910d27275f6e11675490c55ffb02fb84ea83ccd90d27a0327022c75d06bc1f0
7
- data.tar.gz: 3a0e9ac57fa16eee4b4259e541dc48fc0b603172966c9e2d3413ff6ce38eb6fa061cf5a9fbfc828c4d0455d1b6f44a7d26e315a0d2fff010f1b3e567629e69a4
6
+ metadata.gz: 8e9fa0ab3854ab9bc6a34bf7f7163a588a2bb442a565fa34d2cd6a2abf073c8b1b7d0704e6ca34cd8f2f83d0d8a8a9deab2d4085d6c9f604ef18ca93eba9cf63
7
+ data.tar.gz: 6fa7a6e197bc479759d60f1c632d093a4130d82bddb09c3b5f50f39908f5418889c6f388207308286a436c6012aa3d599e277ae04e0321ab51f8d84d89451fad
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.22
1
+ 1.1.23
@@ -11,11 +11,26 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
- null
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
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
- null
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1
33
+ }
19
34
  ],
20
35
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
36
  "payment_type": "example",
data/docs/automation.md CHANGED
@@ -24,7 +24,16 @@
24
24
  "name": "example",
25
25
  "path": "example",
26
26
  "recurring_day": 25,
27
- "schedule": "example",
27
+ "schedule_days_of_week": [
28
+ 0,
29
+ 2,
30
+ 4
31
+ ],
32
+ "schedule_times_of_day": [
33
+ "06:30",
34
+ "14:30"
35
+ ],
36
+ "schedule_time_zone": "Eastern Time (US & Canada)",
28
37
  "source": "example",
29
38
  "sync_ids": [
30
39
  1,
@@ -61,7 +70,9 @@
61
70
  * `name` (string): Name for this automation.
62
71
  * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
63
72
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
64
- * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
73
+ * `schedule_days_of_week` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
74
+ * `schedule_times_of_day` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
75
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
65
76
  * `source` (string): Source Path
66
77
  * `sync_ids` (array): IDs of remote sync folder behaviors to run by this Automation
67
78
  * `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
@@ -125,7 +136,9 @@ Files::Automation.create(
125
136
  sync_ids: [1,2],
126
137
  user_ids: [1,2],
127
138
  group_ids: [1,2],
128
- schedule: {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
139
+ schedule_days_of_week: [0,1,3],
140
+ schedule_times_of_day: ["7:30","11:30"],
141
+ schedule_time_zone: "Eastern Time (US & Canada)",
129
142
  always_overwrite_size_matching_files: true,
130
143
  description: "example",
131
144
  disabled: true,
@@ -150,7 +163,9 @@ Files::Automation.create(
150
163
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
151
164
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
152
165
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
153
- * `schedule` (object): Custom schedule for running this automation.
166
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
167
+ * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
168
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
154
169
  * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
155
170
  * `description` (string): Description for the this Automation.
156
171
  * `disabled` (boolean): If true, this automation will not run.
@@ -190,7 +205,9 @@ Files::Automation.update(id,
190
205
  sync_ids: [1,2],
191
206
  user_ids: [1,2],
192
207
  group_ids: [1,2],
193
- schedule: {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
208
+ schedule_days_of_week: [0,1,3],
209
+ schedule_times_of_day: ["7:30","11:30"],
210
+ schedule_time_zone: "Eastern Time (US & Canada)",
194
211
  always_overwrite_size_matching_files: true,
195
212
  description: "example",
196
213
  disabled: true,
@@ -216,7 +233,9 @@ Files::Automation.update(id,
216
233
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
217
234
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
218
235
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
219
- * `schedule` (object): Custom schedule for running this automation.
236
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
237
+ * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
238
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
220
239
  * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
221
240
  * `description` (string): Description for the this Automation.
222
241
  * `disabled` (boolean): If true, this automation will not run.
@@ -273,7 +292,9 @@ automation.update(
273
292
  sync_ids: [1,2],
274
293
  user_ids: [1,2],
275
294
  group_ids: [1,2],
276
- schedule: {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
295
+ schedule_days_of_week: [0,1,3],
296
+ schedule_times_of_day: ["7:30","11:30"],
297
+ schedule_time_zone: "Eastern Time (US & Canada)",
277
298
  always_overwrite_size_matching_files: true,
278
299
  description: "example",
279
300
  disabled: true,
@@ -299,7 +320,9 @@ automation.update(
299
320
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
300
321
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
301
322
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
302
- * `schedule` (object): Custom schedule for running this automation.
323
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
324
+ * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
325
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
303
326
  * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
304
327
  * `description` (string): Description for the this Automation.
305
328
  * `disabled` (boolean): If true, this automation will not run.
data/docs/behavior.md CHANGED
@@ -98,7 +98,7 @@ Files::Behavior.create(
98
98
 
99
99
  ### Parameters
100
100
 
101
- * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
101
+ * `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
102
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
103
103
  * `name` (string): Name for this behavior.
104
104
  * `description` (string): Description for this behavior.
@@ -149,7 +149,7 @@ Files::Behavior.update(id,
149
149
  ### Parameters
150
150
 
151
151
  * `id` (int64): Required - Behavior ID.
152
- * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
152
+ * `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
153
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
154
154
  * `name` (string): Name for this behavior.
155
155
  * `description` (string): Description for this behavior.
@@ -191,7 +191,7 @@ behavior.update(
191
191
  ### Parameters
192
192
 
193
193
  * `id` (int64): Required - Behavior ID.
194
- * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
194
+ * `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
195
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
196
196
  * `name` (string): Name for this behavior.
197
197
  * `description` (string): Description for this behavior.
data/docs/bundle.md CHANGED
@@ -30,7 +30,20 @@
30
30
  4
31
31
  ],
32
32
  "form_fields": [
33
- null
33
+ {
34
+ "id": 1,
35
+ "label": "Sample Label",
36
+ "required": true,
37
+ "help_text": "Help Text",
38
+ "field_type": "text",
39
+ "options_for_select": [
40
+ "red",
41
+ "green",
42
+ "blue"
43
+ ],
44
+ "default_option": "red",
45
+ "form_field_set_id": 1
46
+ }
34
47
  ],
35
48
  "skip_name": true,
36
49
  "skip_email": true,
@@ -52,7 +65,10 @@
52
65
  "username": "user",
53
66
  "clickwrap_id": 1,
54
67
  "inbox_id": 1,
55
- "watermark_attachment": null,
68
+ "watermark_attachment": {
69
+ "name": "My logo",
70
+ "uri": "https://mysite.files.com/.../my_image.png"
71
+ },
56
72
  "watermark_value": {
57
73
  "key": "example value"
58
74
  },
data/docs/file_comment.md CHANGED
@@ -7,7 +7,10 @@
7
7
  "id": 1,
8
8
  "body": "What a great file!",
9
9
  "reactions": [
10
- null
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
11
14
  ]
12
15
  }
13
16
  ```
@@ -13,7 +13,20 @@
13
13
  4
14
14
  ],
15
15
  "form_fields": [
16
- null
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
+ }
17
30
  ],
18
31
  "skip_name": true,
19
32
  "skip_email": true,
@@ -73,7 +86,7 @@ Files::FormFieldSet.create(
73
86
  skip_email: true,
74
87
  skip_name: true,
75
88
  skip_company: true,
76
- form_fields: [null]
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}]
77
90
  )
78
91
  ```
79
92
 
@@ -97,7 +110,7 @@ Files::FormFieldSet.update(id,
97
110
  skip_email: true,
98
111
  skip_name: true,
99
112
  skip_company: true,
100
- form_fields: [null]
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}]
101
114
  )
102
115
  ```
103
116
 
@@ -136,7 +149,7 @@ form_field_set.update(
136
149
  skip_email: true,
137
150
  skip_name: true,
138
151
  skip_company: true,
139
- form_fields: [null]
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}]
140
153
  )
141
154
  ```
142
155
 
data/docs/invoice.md CHANGED
@@ -11,11 +11,26 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
- null
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
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
- null
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1
33
+ }
19
34
  ],
20
35
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
36
  "payment_type": "example",
data/docs/message.md CHANGED
@@ -8,7 +8,16 @@
8
8
  "subject": "Files.com Account Upgrade",
9
9
  "body": "We should upgrade our Files.com account!",
10
10
  "comments": [
11
- null
11
+ {
12
+ "id": 1,
13
+ "body": "What a great idea, thank you!",
14
+ "reactions": [
15
+ {
16
+ "id": 1,
17
+ "emoji": "👍"
18
+ }
19
+ ]
20
+ }
12
21
  ]
13
22
  }
14
23
  ```
@@ -7,7 +7,10 @@
7
7
  "id": 1,
8
8
  "body": "What a great idea, thank you!",
9
9
  "reactions": [
10
- null
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
11
14
  ]
12
15
  }
13
16
  ```
data/docs/payment.md CHANGED
@@ -11,11 +11,26 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
- null
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
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
- null
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1
33
+ }
19
34
  ],
20
35
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
36
  "payment_type": "example",
data/docs/site.md CHANGED
@@ -30,7 +30,10 @@
30
30
  "bundle_require_registration": true,
31
31
  "bundle_require_share_recipient": true,
32
32
  "bundle_upload_receipt_notifications": "never",
33
- "bundle_watermark_attachment": null,
33
+ "bundle_watermark_attachment": {
34
+ "name": "My logo",
35
+ "uri": "https://mysite.files.com/.../my_image.png"
36
+ },
34
37
  "bundle_watermark_value": {
35
38
  "key": "example value"
36
39
  },
@@ -68,10 +71,22 @@
68
71
  "non_sso_users_allowed": true,
69
72
  "folder_permissions_groups_only": true,
70
73
  "hipaa": true,
71
- "icon128": null,
72
- "icon16": null,
73
- "icon32": null,
74
- "icon48": null,
74
+ "icon128": {
75
+ "name": "My logo",
76
+ "uri": "https://mysite.files.com/.../my_image.png"
77
+ },
78
+ "icon16": {
79
+ "name": "My logo",
80
+ "uri": "https://mysite.files.com/.../my_image.png"
81
+ },
82
+ "icon32": {
83
+ "name": "My logo",
84
+ "uri": "https://mysite.files.com/.../my_image.png"
85
+ },
86
+ "icon48": {
87
+ "name": "My logo",
88
+ "uri": "https://mysite.files.com/.../my_image.png"
89
+ },
75
90
  "immutable_files_set_at": "2000-01-01T01:00:00Z",
76
91
  "include_password_in_welcome_email": true,
77
92
  "language": "en",
@@ -92,8 +107,14 @@
92
107
  "ldap_username": "[ldap username]",
93
108
  "ldap_username_field": "sAMAccountName",
94
109
  "login_help_text": "Login page help text.",
95
- "logo": null,
96
- "login_page_background_image": null,
110
+ "logo": {
111
+ "name": "My logo",
112
+ "uri": "https://mysite.files.com/.../my_image.png"
113
+ },
114
+ "login_page_background_image": {
115
+ "name": "My logo",
116
+ "uri": "https://mysite.files.com/.../my_image.png"
117
+ },
97
118
  "max_prior_passwords": 1,
98
119
  "motd_text": "example",
99
120
  "motd_use_for_ftp": true,
@@ -123,8 +144,24 @@
123
144
  "session": {
124
145
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
125
146
  "language": "en",
147
+ "login_token": "@tok-randomcode",
148
+ "login_token_domain": "https://mysite.files.com",
149
+ "max_dir_listing_size": 1,
150
+ "multiple_regions": true,
126
151
  "read_only": true,
127
- "sftp_insecure_ciphers": true
152
+ "root_path": "example",
153
+ "sftp_insecure_ciphers": false,
154
+ "site_id": 1,
155
+ "ssl_required": true,
156
+ "tls_disabled": false,
157
+ "two_factor_setup_needed": false,
158
+ "allowed_2fa_method_sms": true,
159
+ "allowed_2fa_method_totp": true,
160
+ "allowed_2fa_method_u2f": true,
161
+ "allowed_2fa_method_webauthn": true,
162
+ "allowed_2fa_method_yubi": true,
163
+ "use_provided_modified_at": true,
164
+ "windows_mode_ftp": false
128
165
  },
129
166
  "session_pinned_by_ip": true,
130
167
  "sftp_enabled": true,
@@ -163,9 +200,9 @@
163
200
  "authenticate_until": "2000-01-01T01:00:00Z",
164
201
  "authentication_method": "password",
165
202
  "avatar_url": "example",
166
- "billing_permission": true,
167
- "bypass_site_allowed_ips": true,
168
- "bypass_inactive_disable": true,
203
+ "billing_permission": false,
204
+ "bypass_site_allowed_ips": false,
205
+ "bypass_inactive_disable": false,
169
206
  "created_at": "2000-01-01T01:00:00Z",
170
207
  "dav_permission": true,
171
208
  "disabled": true,
@@ -211,6 +248,7 @@
211
248
  "externally_managed": true,
212
249
  "time_zone": "Pacific Time (US & Canada)",
213
250
  "type_of_2fa": "yubi",
251
+ "updated_at": "2000-01-01T01:00:00Z",
214
252
  "user_root": "example",
215
253
  "days_remaining_until_password_expire": 1,
216
254
  "password_expire_at": "2000-01-01T01:00:00Z"
@@ -585,6 +623,7 @@ Files::Site.update(
585
623
  * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
586
624
  * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
587
625
  * `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
626
+ * `left_navigation_visibility` (object): Visibility settings for account navigation
588
627
  * `session_expiry` (double): Session expiry in hours
589
628
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
590
629
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
data/docs/status.md CHANGED
@@ -9,7 +9,14 @@
9
9
  "status": "",
10
10
  "data": "example",
11
11
  "errors": [
12
- null
12
+ {
13
+ "fields": [
14
+
15
+ ],
16
+ "messages": [
17
+
18
+ ]
19
+ }
13
20
  ],
14
21
  "clickwrap_id": 1,
15
22
  "clickwrap_body": "example"
@@ -144,13 +144,31 @@ module Files
144
144
  @attributes[:recurring_day] = value
145
145
  end
146
146
 
147
- # object - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
148
- def schedule
149
- @attributes[:schedule]
147
+ # array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
148
+ def schedule_days_of_week
149
+ @attributes[:schedule_days_of_week]
150
150
  end
151
151
 
152
- def schedule=(value)
153
- @attributes[:schedule] = value
152
+ def schedule_days_of_week=(value)
153
+ @attributes[:schedule_days_of_week] = value
154
+ end
155
+
156
+ # array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
157
+ def schedule_times_of_day
158
+ @attributes[:schedule_times_of_day]
159
+ end
160
+
161
+ def schedule_times_of_day=(value)
162
+ @attributes[:schedule_times_of_day] = value
163
+ end
164
+
165
+ # string - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
166
+ def schedule_time_zone
167
+ @attributes[:schedule_time_zone]
168
+ end
169
+
170
+ def schedule_time_zone=(value)
171
+ @attributes[:schedule_time_zone] = value
154
172
  end
155
173
 
156
174
  # string - Source Path
@@ -256,7 +274,9 @@ module Files
256
274
  # sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
257
275
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
258
276
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
259
- # schedule - object - Custom schedule for running this automation.
277
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
278
+ # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
279
+ # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
260
280
  # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
261
281
  # description - string - Description for the this Automation.
262
282
  # disabled - boolean - If true, this automation will not run.
@@ -281,6 +301,9 @@ module Files
281
301
  raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
282
302
  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
283
303
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
304
+ raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
305
+ raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
306
+ raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
284
307
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
285
308
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
286
309
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
@@ -374,7 +397,9 @@ module Files
374
397
  # sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
375
398
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
376
399
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
377
- # schedule - object - Custom schedule for running this automation.
400
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
401
+ # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
402
+ # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
378
403
  # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
379
404
  # description - string - Description for the this Automation.
380
405
  # disabled - boolean - If true, this automation will not run.
@@ -395,7 +420,9 @@ module Files
395
420
  raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
396
421
  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
397
422
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
398
- raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params[:schedule] and !params[:schedule].is_a?(Hash)
423
+ raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
424
+ raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
425
+ raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
399
426
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
400
427
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
401
428
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
@@ -431,7 +458,9 @@ module Files
431
458
  # sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
432
459
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
433
460
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
434
- # schedule - object - Custom schedule for running this automation.
461
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
462
+ # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
463
+ # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
435
464
  # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
436
465
  # description - string - Description for the this Automation.
437
466
  # disabled - boolean - If true, this automation will not run.
@@ -455,7 +484,9 @@ module Files
455
484
  raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
456
485
  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
457
486
  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
458
- raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params[:schedule] and !params[:schedule].is_a?(Hash)
487
+ raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
488
+ raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
489
+ raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
459
490
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
460
491
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
461
492
  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
@@ -91,7 +91,7 @@ module Files
91
91
  end
92
92
 
93
93
  # Parameters:
94
- # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
94
+ # 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
95
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
96
96
  # name - string - Name for this behavior.
97
97
  # description - string - Description for this behavior.
@@ -205,7 +205,7 @@ module Files
205
205
  end
206
206
 
207
207
  # Parameters:
208
- # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
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.
209
209
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
210
210
  # name - string - Name for this behavior.
211
211
  # description - string - Description for this behavior.
@@ -245,7 +245,7 @@ module Files
245
245
  end
246
246
 
247
247
  # Parameters:
248
- # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
248
+ # 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
249
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
250
250
  # name - string - Name for this behavior.
251
251
  # description - string - Description for this behavior.
@@ -817,6 +817,7 @@ module Files
817
817
  # motd_text - string - A message to show users when they connect via FTP or SFTP.
818
818
  # motd_use_for_ftp - boolean - Show message to users connecting via FTP
819
819
  # motd_use_for_sftp - boolean - Show message to users connecting via SFTP
820
+ # left_navigation_visibility - object - Visibility settings for account navigation
820
821
  # session_expiry - double - Session expiry in hours
821
822
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
822
823
  # tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -950,6 +951,7 @@ module Files
950
951
  raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params[:welcome_screen] and !params[:welcome_screen].is_a?(String)
951
952
  raise InvalidParameterError.new("Bad parameter: office_integration_type must be an String") if params[:office_integration_type] and !params[:office_integration_type].is_a?(String)
952
953
  raise InvalidParameterError.new("Bad parameter: motd_text must be an String") if params[:motd_text] and !params[:motd_text].is_a?(String)
954
+ raise InvalidParameterError.new("Bad parameter: left_navigation_visibility must be an Hash") if params[:left_navigation_visibility] and !params[:left_navigation_visibility].is_a?(Hash)
953
955
  raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params[:session_expiry] and !params[:session_expiry].is_a?(Float)
954
956
  raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params[:user_lockout_tries] and !params[:user_lockout_tries].is_a?(Integer)
955
957
  raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params[:user_lockout_within] and !params[:user_lockout_within].is_a?(Integer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.22"
4
+ VERSION = "1.1.23"
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.22
4
+ version: 1.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com