files.com 1.0.82 → 1.0.87

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 291ed1937c452b1f0b2949b0188f3eee3083fba6a49ea3ce42e664b89bcc49c3
4
- data.tar.gz: e8af65f7aad9a09e547184bac4caa3e53ac506dbf1462ae13a91bb461302072b
3
+ metadata.gz: f01b53ca0c7c7b36823f3491b734b34c49c0f73d162cd26ecf889c2ffe56f51f
4
+ data.tar.gz: 52257583ef8bd456c4c13050fb158ecb5960c7e93df232cd15935818dc2832c0
5
5
  SHA512:
6
- metadata.gz: 0e884b02521b63b92fae0107df8d9853dee8518eedab399c3c055c5737851bdb7211a77c74524a447072aed6c27df29a76423817696ea04b218380a1647e74f5
7
- data.tar.gz: f6f41719640ef692004aec3035c51366430d6a3ea1108c4ca383488c640a688f5bad37c127280e119807e3e5c91aca97484cc0cb37db5cb530207f7040c173e7
6
+ metadata.gz: 1da075cbed34fec1c0e377605e8819b18596d7fcc24bd71e0804644a0acab078c23d9f5a8508c95d0b654f1d8089c9408a08a7f04a69089d29fa2dd09d9c83ce
7
+ data.tar.gz: '0700287ed8c2d7820dd9991bd9bd26d90462f7c3f75fc212d6f35acf57ca07d2f3a85332200ddd45bf252e6cc7136b89eced49e570fb1286f12cfeb22751d910'
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.82
1
+ 1.0.87
@@ -0,0 +1,45 @@
1
+ # App
2
+
3
+ ## Example App Object
4
+
5
+ ```
6
+ {
7
+ "name": "",
8
+ "extended_description": "",
9
+ "documentation_links": "Important Info => http://files.test/learn-more",
10
+ "sso_strategy_type": "",
11
+ "remote_server_type": "",
12
+ "folder_behavior_type": "",
13
+ "external_homepage_url": "",
14
+ "app_type": "",
15
+ "featured": true
16
+ }
17
+ ```
18
+
19
+ * `name` (string): Name of the App
20
+ * `extended_description` (string): Long form description of the App
21
+ * `documentation_links` (string): Collection of named links to documentation
22
+ * `sso_strategy_type` (string): Associated SSO Strategy type, if any
23
+ * `remote_server_type` (string): Associated Remote Server type, if any
24
+ * `folder_behavior_type` (string): Associated Folder Behavior type, if any
25
+ * `external_homepage_url` (string): Link to external homepage
26
+ * `app_type` (string): The type of the App
27
+ * `featured` (boolean): Is featured on the App listing?
28
+
29
+
30
+ ---
31
+
32
+ ## List Apps
33
+
34
+ ```
35
+ Files::App.list(
36
+ page: 1,
37
+ per_page: 1
38
+ )
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ * `page` (int64): Current page number.
44
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
+ * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
@@ -107,7 +107,8 @@ Files::Behavior.webhook_test(
107
107
  method: "GET",
108
108
  encoding: "RAW",
109
109
  headers: "x-test-header => testvalue",
110
- body: "test-param => testvalue"
110
+ body: "test-param => testvalue",
111
+ action: "test"
111
112
  )
112
113
  ```
113
114
 
@@ -118,6 +119,7 @@ Files::Behavior.webhook_test(
118
119
  * `encoding` (string): HTTP encoding method. Can be JSON, XML, or RAW (form data).
119
120
  * `headers` (object): Additional request headers.
120
121
  * `body` (object): Additional body parameters.
122
+ * `action` (string): action for test body
121
123
 
122
124
 
123
125
  ---
@@ -126,7 +128,8 @@ Files::Behavior.webhook_test(
126
128
 
127
129
  ```
128
130
  Files::Behavior.update(id,
129
- value: "{\"method\": \"GET\"}"
131
+ value: "{\"method\": \"GET\"}",
132
+ behavior: "webhook"
130
133
  )
131
134
  ```
132
135
 
@@ -135,6 +138,8 @@ Files::Behavior.update(id,
135
138
  * `id` (int64): Required - Behavior ID.
136
139
  * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior.
137
140
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
141
+ * `behavior` (string): Behavior type.
142
+ * `path` (string): Folder behaviors path.
138
143
 
139
144
 
140
145
  ---
@@ -158,7 +163,8 @@ Files::Behavior.delete(id)
158
163
  behavior = Files::Behavior.list_for(path).first
159
164
 
160
165
  behavior.update(
161
- value: "{\"method\": \"GET\"}"
166
+ value: "{\"method\": \"GET\"}",
167
+ behavior: "webhook"
162
168
  )
163
169
  ```
164
170
 
@@ -167,6 +173,8 @@ behavior.update(
167
173
  * `id` (int64): Required - Behavior ID.
168
174
  * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior.
169
175
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
176
+ * `behavior` (string): Behavior type.
177
+ * `path` (string): Folder behaviors path.
170
178
 
171
179
 
172
180
  ---
@@ -72,6 +72,7 @@ Files::File.download(path,
72
72
  * `path` (string): Required - Path to operate on.
73
73
  * `action` (string): Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
74
74
  * `id` (int64): If provided, lookup the file by id instead of path.
75
+ * `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
75
76
  * `with_previews` (boolean): Include file preview information?
76
77
  * `with_priority_color` (boolean): Include file priority color information?
77
78
 
@@ -164,6 +165,7 @@ file.download(
164
165
  * `path` (string): Required - Path to operate on.
165
166
  * `action` (string): Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
166
167
  * `id` (int64): If provided, lookup the file by id instead of path.
168
+ * `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
167
169
  * `with_previews` (boolean): Include file preview information?
168
170
  * `with_priority_color` (boolean): Include file priority color information?
169
171
 
@@ -6,7 +6,8 @@
6
6
 
7
7
  ```
8
8
  Files::FileAction.copy(path,
9
- destination: "destination"
9
+ destination: "destination",
10
+ structure: true
10
11
  )
11
12
  ```
12
13
 
@@ -14,6 +15,7 @@ Files::FileAction.copy(path,
14
15
 
15
16
  * `path` (string): Required - Path to operate on.
16
17
  * `destination` (string): Required - Copy destination path.
18
+ * `structure` (boolean): Copy structure only?
17
19
 
18
20
 
19
21
  ---
@@ -66,7 +68,8 @@ Files::FileAction.begin_upload(path,
66
68
  file_action = Files::FileAction.list_for(path).first
67
69
 
68
70
  file_action.copy(
69
- destination: "destination"
71
+ destination: "destination",
72
+ structure: true
70
73
  )
71
74
  ```
72
75
 
@@ -74,6 +77,7 @@ file_action.copy(
74
77
 
75
78
  * `path` (string): Required - Path to operate on.
76
79
  * `destination` (string): Required - Copy destination path.
80
+ * `structure` (boolean): Copy structure only?
77
81
 
78
82
 
79
83
  ---
@@ -57,6 +57,7 @@ Files::Folder.list_for(path,
57
57
  page: 1,
58
58
  per_page: 1,
59
59
  search_all: true,
60
+ with_previews: true,
60
61
  with_priority_color: true
61
62
  )
62
63
  ```
@@ -72,6 +73,7 @@ Files::Folder.list_for(path,
72
73
  * `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
73
74
  * `search` (string): If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
74
75
  * `search_all` (boolean): Search entire site?
76
+ * `with_previews` (boolean): Include file previews?
75
77
  * `with_priority_color` (boolean): Include file priority color information?
76
78
 
77
79
 
@@ -69,12 +69,17 @@ Files::GroupUser.update(id,
69
69
  ## Delete Group User
70
70
 
71
71
  ```
72
- Files::GroupUser.delete(id)
72
+ Files::GroupUser.delete(id,
73
+ group_id: 1,
74
+ user_id: 1
75
+ )
73
76
  ```
74
77
 
75
78
  ### Parameters
76
79
 
77
80
  * `id` (int64): Required - Group User ID.
81
+ * `group_id` (int64): Required - Group ID from which to remove user.
82
+ * `user_id` (int64): Required - User ID to remove from group.
78
83
 
79
84
 
80
85
  ---
@@ -106,9 +111,14 @@ group_user.update(
106
111
  ```
107
112
  group_user = Files::GroupUser.list_for(path).first
108
113
 
109
- group_user.delete
114
+ group_user.delete(
115
+ group_id: 1,
116
+ user_id: 1
117
+ )
110
118
  ```
111
119
 
112
120
  ### Parameters
113
121
 
114
122
  * `id` (int64): Required - Group User ID.
123
+ * `group_id` (int64): Required - Group ID from which to remove user.
124
+ * `user_id` (int64): Required - User ID to remove from group.
@@ -21,7 +21,7 @@
21
21
 
22
22
  ---
23
23
 
24
- ## List Ip Addresses
24
+ ## List IP Addresses associated with the current site
25
25
 
26
26
  ```
27
27
  Files::IpAddress.list(
@@ -18,7 +18,7 @@
18
18
  * `body` (string): Message body.
19
19
  * `comments` (array): Comments.
20
20
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
21
- * `project_id` (int64): Project to attach the message to.
21
+ * `project_id` (int64): Project to which the message should be attached.
22
22
 
23
23
 
24
24
  ---
@@ -40,7 +40,7 @@ Files::Message.list(
40
40
  * `page` (int64): Current page number.
41
41
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
42
  * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
43
- * `project_id` (int64): Required - Project to return messages for.
43
+ * `project_id` (int64): Required - Project for which to return messages.
44
44
 
45
45
 
46
46
  ---
@@ -64,15 +64,15 @@ Files::Message.find(id)
64
64
  Files::Message.create(
65
65
  user_id: 1,
66
66
  project_id: 1,
67
- subject: "subject",
68
- body: "body"
67
+ subject: "Files.com Account Upgrade",
68
+ body: "We should upgrade our Files.com account!"
69
69
  )
70
70
  ```
71
71
 
72
72
  ### Parameters
73
73
 
74
74
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
75
- * `project_id` (int64): Required - Project to attach the message to.
75
+ * `project_id` (int64): Required - Project to which the message should be attached.
76
76
  * `subject` (string): Required - Message subject.
77
77
  * `body` (string): Required - Message body.
78
78
 
@@ -84,15 +84,15 @@ Files::Message.create(
84
84
  ```
85
85
  Files::Message.update(id,
86
86
  project_id: 1,
87
- subject: "subject",
88
- body: "body"
87
+ subject: "Files.com Account Upgrade",
88
+ body: "We should upgrade our Files.com account!"
89
89
  )
90
90
  ```
91
91
 
92
92
  ### Parameters
93
93
 
94
94
  * `id` (int64): Required - Message ID.
95
- * `project_id` (int64): Required - Project to attach the message to.
95
+ * `project_id` (int64): Required - Project to which the message should be attached.
96
96
  * `subject` (string): Required - Message subject.
97
97
  * `body` (string): Required - Message body.
98
98
 
@@ -119,15 +119,15 @@ message = Files::Message.list_for(path).first
119
119
 
120
120
  message.update(
121
121
  project_id: 1,
122
- subject: "subject",
123
- body: "body"
122
+ subject: "Files.com Account Upgrade",
123
+ body: "We should upgrade our Files.com account!"
124
124
  )
125
125
  ```
126
126
 
127
127
  ### Parameters
128
128
 
129
129
  * `id` (int64): Required - Message ID.
130
- * `project_id` (int64): Required - Project to attach the message to.
130
+ * `project_id` (int64): Required - Project to which the message should be attached.
131
131
  * `subject` (string): Required - Message subject.
132
132
  * `body` (string): Required - Message body.
133
133
 
@@ -29,7 +29,9 @@
29
29
  "auth_setup_link": "auth/:provider",
30
30
  "auth_status": "in_setup",
31
31
  "auth_account_name": "me@example.com",
32
- "one_drive_account_type": "personal"
32
+ "one_drive_account_type": "personal",
33
+ "azure_blob_storage_account": "storage-account-name",
34
+ "azure_blob_storage_container": "container-name"
33
35
  }
34
36
  ```
35
37
 
@@ -59,6 +61,8 @@
59
61
  * `auth_status` (string): Either `in_setup` or `complete`
60
62
  * `auth_account_name` (string): Describes the authorized account
61
63
  * `one_drive_account_type` (string): Either personal or business_other account types
64
+ * `azure_blob_storage_account` (string): Azure Blob Storage Account name
65
+ * `azure_blob_storage_container` (string): Azure Blob Storage Container name
62
66
  * `aws_access_key` (string): AWS Access Key.
63
67
  * `aws_secret_key` (string): AWS secret key.
64
68
  * `password` (string): Password if needed.
@@ -70,6 +74,7 @@
70
74
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
71
75
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
72
76
  * `reset_authentication` (boolean): Reset authenticated account
77
+ * `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
73
78
 
74
79
 
75
80
  ---
@@ -130,7 +135,9 @@ Files::RemoteServer.create(
130
135
  rackspace_username: "rackspaceuser",
131
136
  rackspace_region: "dfw",
132
137
  rackspace_container: "my-container",
133
- one_drive_account_type: "personal"
138
+ one_drive_account_type: "personal",
139
+ azure_blob_storage_account: "storage-account-name",
140
+ azure_blob_storage_container: "container-name"
134
141
  )
135
142
  ```
136
143
 
@@ -147,6 +154,7 @@ Files::RemoteServer.create(
147
154
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
148
155
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
149
156
  * `reset_authentication` (boolean): Reset authenticated account
157
+ * `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
150
158
  * `hostname` (string): Hostname or IP address
151
159
  * `name` (string): Internal name for your reference
152
160
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -168,6 +176,8 @@ Files::RemoteServer.create(
168
176
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
169
177
  * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
170
178
  * `one_drive_account_type` (string): Either personal or business_other account types
179
+ * `azure_blob_storage_account` (string): Azure Blob Storage Account name
180
+ * `azure_blob_storage_container` (string): Azure Blob Storage Container name
171
181
 
172
182
 
173
183
  ---
@@ -197,7 +207,9 @@ Files::RemoteServer.update(id,
197
207
  rackspace_username: "rackspaceuser",
198
208
  rackspace_region: "dfw",
199
209
  rackspace_container: "my-container",
200
- one_drive_account_type: "personal"
210
+ one_drive_account_type: "personal",
211
+ azure_blob_storage_account: "storage-account-name",
212
+ azure_blob_storage_container: "container-name"
201
213
  )
202
214
  ```
203
215
 
@@ -215,6 +227,7 @@ Files::RemoteServer.update(id,
215
227
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
216
228
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
217
229
  * `reset_authentication` (boolean): Reset authenticated account
230
+ * `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
218
231
  * `hostname` (string): Hostname or IP address
219
232
  * `name` (string): Internal name for your reference
220
233
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -236,6 +249,8 @@ Files::RemoteServer.update(id,
236
249
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
237
250
  * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
238
251
  * `one_drive_account_type` (string): Either personal or business_other account types
252
+ * `azure_blob_storage_account` (string): Azure Blob Storage Account name
253
+ * `azure_blob_storage_container` (string): Azure Blob Storage Container name
239
254
 
240
255
 
241
256
  ---
@@ -280,7 +295,9 @@ remote_server.update(
280
295
  rackspace_username: "rackspaceuser",
281
296
  rackspace_region: "dfw",
282
297
  rackspace_container: "my-container",
283
- one_drive_account_type: "personal"
298
+ one_drive_account_type: "personal",
299
+ azure_blob_storage_account: "storage-account-name",
300
+ azure_blob_storage_container: "container-name"
284
301
  )
285
302
  ```
286
303
 
@@ -298,6 +315,7 @@ remote_server.update(
298
315
  * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
299
316
  * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
300
317
  * `reset_authentication` (boolean): Reset authenticated account
318
+ * `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
301
319
  * `hostname` (string): Hostname or IP address
302
320
  * `name` (string): Internal name for your reference
303
321
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -319,6 +337,8 @@ remote_server.update(
319
337
  * `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
320
338
  * `rackspace_container` (string): The name of the container (top level directory) where files will sync.
321
339
  * `one_drive_account_type` (string): Either personal or business_other account types
340
+ * `azure_blob_storage_account` (string): Azure Blob Storage Account name
341
+ * `azure_blob_storage_container` (string): Azure Blob Storage Container name
322
342
 
323
343
 
324
344
  ---
@@ -64,6 +64,7 @@
64
64
  "max_prior_passwords": 1,
65
65
  "next_billing_amount": "",
66
66
  "next_billing_date": "Apr 20",
67
+ "office_integration_available": true,
67
68
  "opt_out_global": true,
68
69
  "overage_notified_at": "2000-01-01T01:00:00Z",
69
70
  "overage_notify": true,
@@ -176,6 +177,7 @@
176
177
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
177
178
  * `next_billing_amount` (double): Next billing amount
178
179
  * `next_billing_date` (string): Next billing date
180
+ * `office_integration_available` (boolean): Allow users to use Office for the web?
179
181
  * `opt_out_global` (boolean): Use servers in the USA only?
180
182
  * `overage_notified_at` (date-time): Last time the site was notified about an overage
181
183
  * `overage_notify` (boolean): Notify site email of overages?
@@ -270,6 +272,7 @@ Files::Site.update(
270
272
  desktop_app_session_lifetime: 1,
271
273
  folder_permissions_groups_only: true,
272
274
  welcome_screen: "user_controlled",
275
+ office_integration_available: true,
273
276
  session_expiry: 1.0,
274
277
  ssl_required: true,
275
278
  tls_disabled: true,
@@ -361,6 +364,7 @@ Files::Site.update(
361
364
  * `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
362
365
  * `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.
363
366
  * `welcome_screen` (string): Does the welcome screen appear?
367
+ * `office_integration_available` (boolean): Allow users to use Office for the web?
364
368
  * `session_expiry` (double): Session expiry in hours
365
369
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
366
370
  * `tls_disabled` (boolean): Is TLS disabled(site setting)?
@@ -32,6 +32,7 @@
32
32
  "name": "John Doe",
33
33
  "notes": "Internal notes on this user.",
34
34
  "notification_daily_send_time": 18,
35
+ "office_integration_enabled": true,
35
36
  "password_set_at": "2000-01-01T01:00:00Z",
36
37
  "password_validity_days": 1,
37
38
  "public_keys_count": 1,
@@ -79,6 +80,7 @@
79
80
  * `name` (string): User's full name
80
81
  * `notes` (string): Any internal notes on the user
81
82
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
83
+ * `office_integration_enabled` (boolean): Enable integration with Office for the web?
82
84
  * `password_set_at` (date-time): Last time the user's password was set
83
85
  * `password_validity_days` (int64): Number of days to allow user to use the same password
84
86
  * `public_keys_count` (int64): Number of public keys associated with this user
@@ -124,6 +126,7 @@ Files::User.list(
124
126
  * `page` (int64): Current page number.
125
127
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
126
128
  * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
129
+ * `ids` (string): comma-separated list of User IDs
127
130
  * `q[username]` (string): List users matching username.
128
131
  * `q[email]` (string): List users matching email.
129
132
  * `q[notes]` (string): List users matching notes field.
@@ -174,6 +177,7 @@ Files::User.create(
174
177
  notification_daily_send_time: 18,
175
178
  name: "John Doe",
176
179
  notes: "Internal notes on this user.",
180
+ office_integration_enabled: true,
177
181
  password_validity_days: 1,
178
182
  receive_admin_alerts: true,
179
183
  require_password_change: true,
@@ -218,6 +222,7 @@ Files::User.create(
218
222
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
219
223
  * `name` (string): User's full name
220
224
  * `notes` (string): Any internal notes on the user
225
+ * `office_integration_enabled` (boolean): Enable integration with Office for the web?
221
226
  * `password_validity_days` (int64): Number of days to allow user to use the same password
222
227
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
223
228
  * `require_password_change` (boolean): Is a password change required upon next user login?
@@ -298,6 +303,7 @@ Files::User.update(id,
298
303
  notification_daily_send_time: 18,
299
304
  name: "John Doe",
300
305
  notes: "Internal notes on this user.",
306
+ office_integration_enabled: true,
301
307
  password_validity_days: 1,
302
308
  receive_admin_alerts: true,
303
309
  require_password_change: true,
@@ -343,6 +349,7 @@ Files::User.update(id,
343
349
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
344
350
  * `name` (string): User's full name
345
351
  * `notes` (string): Any internal notes on the user
352
+ * `office_integration_enabled` (boolean): Enable integration with Office for the web?
346
353
  * `password_validity_days` (int64): Number of days to allow user to use the same password
347
354
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
348
355
  * `require_password_change` (boolean): Is a password change required upon next user login?
@@ -444,6 +451,7 @@ user.update(
444
451
  notification_daily_send_time: 18,
445
452
  name: "John Doe",
446
453
  notes: "Internal notes on this user.",
454
+ office_integration_enabled: true,
447
455
  password_validity_days: 1,
448
456
  receive_admin_alerts: true,
449
457
  require_password_change: true,
@@ -489,6 +497,7 @@ user.update(
489
497
  * `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
490
498
  * `name` (string): User's full name
491
499
  * `notes` (string): Any internal notes on the user
500
+ * `office_integration_enabled` (boolean): Enable integration with Office for the web?
492
501
  * `password_validity_days` (int64): Number of days to allow user to use the same password
493
502
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
494
503
  * `require_password_change` (boolean): Is a password change required upon next user login?
@@ -29,6 +29,7 @@ require "files.com/list"
29
29
  require "files.com/models/account_line_item"
30
30
  require "files.com/models/action"
31
31
  require "files.com/models/api_key"
32
+ require "files.com/models/app"
32
33
  require "files.com/models/as2_key"
33
34
  require "files.com/models/auto"
34
35
  require "files.com/models/automation"
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class App
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Name of the App
13
+ def name
14
+ @attributes[:name]
15
+ end
16
+
17
+ # string - Long form description of the App
18
+ def extended_description
19
+ @attributes[:extended_description]
20
+ end
21
+
22
+ # string - Collection of named links to documentation
23
+ def documentation_links
24
+ @attributes[:documentation_links]
25
+ end
26
+
27
+ # string - Associated SSO Strategy type, if any
28
+ def sso_strategy_type
29
+ @attributes[:sso_strategy_type]
30
+ end
31
+
32
+ # string - Associated Remote Server type, if any
33
+ def remote_server_type
34
+ @attributes[:remote_server_type]
35
+ end
36
+
37
+ # string - Associated Folder Behavior type, if any
38
+ def folder_behavior_type
39
+ @attributes[:folder_behavior_type]
40
+ end
41
+
42
+ # string - Link to external homepage
43
+ def external_homepage_url
44
+ @attributes[:external_homepage_url]
45
+ end
46
+
47
+ # string - The type of the App
48
+ def app_type
49
+ @attributes[:app_type]
50
+ end
51
+
52
+ # boolean - Is featured on the App listing?
53
+ def featured
54
+ @attributes[:featured]
55
+ end
56
+
57
+ # Parameters:
58
+ # page - int64 - Current page number.
59
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
60
+ # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
61
+ def self.list(params = {}, options = {})
62
+ raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
63
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
64
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
65
+
66
+ response, options = Api.send_request("/apps", :get, params, options)
67
+ response.data.map do |entity_data|
68
+ App.new(entity_data, options)
69
+ end
70
+ end
71
+
72
+ def self.all(params = {}, options = {})
73
+ list(params, options)
74
+ end
75
+ end
76
+ end
@@ -66,12 +66,16 @@ module Files
66
66
  # Parameters:
67
67
  # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior.
68
68
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
69
+ # behavior - string - Behavior type.
70
+ # path - string - Folder behaviors path.
69
71
  def update(params = {})
70
72
  params ||= {}
71
73
  params[:id] = @attributes[:id]
72
74
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
73
75
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
74
76
  raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
77
+ raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
78
+ raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
75
79
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
76
80
 
77
81
  Api.send_request("/behaviors/#{@attributes[:id]}", :patch, params, @options)
@@ -183,12 +187,14 @@ module Files
183
187
  # encoding - string - HTTP encoding method. Can be JSON, XML, or RAW (form data).
184
188
  # headers - object - Additional request headers.
185
189
  # body - object - Additional body parameters.
190
+ # action - string - action for test body
186
191
  def self.webhook_test(params = {}, options = {})
187
192
  raise InvalidParameterError.new("Bad parameter: url must be an String") if params.dig(:url) and !params.dig(:url).is_a?(String)
188
193
  raise InvalidParameterError.new("Bad parameter: method must be an String") if params.dig(:method) and !params.dig(:method).is_a?(String)
189
194
  raise InvalidParameterError.new("Bad parameter: encoding must be an String") if params.dig(:encoding) and !params.dig(:encoding).is_a?(String)
190
195
  raise InvalidParameterError.new("Bad parameter: headers must be an Hash") if params.dig(:headers) and !params.dig(:headers).is_a?(Hash)
191
196
  raise InvalidParameterError.new("Bad parameter: body must be an Hash") if params.dig(:body) and !params.dig(:body).is_a?(Hash)
197
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
192
198
  raise MissingParameterError.new("Parameter missing: url") unless params.dig(:url)
193
199
 
194
200
  response, _options = Api.send_request("/behaviors/webhook/test", :post, params, options)
@@ -198,12 +204,15 @@ module Files
198
204
  # Parameters:
199
205
  # value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior.
200
206
  # attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
207
+ # behavior - string - Behavior type.
208
+ # path - string - Folder behaviors path.
201
209
  def self.update(id, params = {}, options = {})
202
210
  params ||= {}
203
211
  params[:id] = id
204
212
  raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [ String, Integer, Hash ].none? { |klass| params.dig(:id).is_a?(klass) }
205
213
  raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
206
- raise InvalidParameterError.new("Bad parameter: attachment_file must be one of String, Integer, Hash") if params.dig(:attachment_file) and [ String, Integer, Hash ].none? { |klass| params.dig(:attachment_file).is_a?(klass) }
214
+ raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
215
+ raise InvalidParameterError.new("Bad parameter: path must be one of String, Integer, Hash") if params.dig(:path) and [ String, Integer, Hash ].none? { |klass| params.dig(:path).is_a?(klass) }
207
216
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
208
217
 
209
218
  response, options = Api.send_request("/behaviors/#{params[:id]}", :patch, params, options)
@@ -827,6 +827,7 @@ module Files
827
827
  # Parameters:
828
828
  # action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
829
829
  # id - int64 - If provided, lookup the file by id instead of path.
830
+ # preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
830
831
  # with_previews - boolean - Include file preview information?
831
832
  # with_priority_color - boolean - Include file priority color information?
832
833
  def download(params = {})
@@ -836,6 +837,7 @@ module Files
836
837
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
837
838
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
838
839
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
840
+ raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params.dig(:preview_size) and !params.dig(:preview_size).is_a?(String)
839
841
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
840
842
 
841
843
  Api.send_request("/files/#{Addressable::URI.encode_component(params[:path])}", :get, params, @options)
@@ -886,6 +888,7 @@ module Files
886
888
  # Parameters:
887
889
  # action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
888
890
  # id - int64 - If provided, lookup the file by id instead of path.
891
+ # preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
889
892
  # with_previews - boolean - Include file preview information?
890
893
  # with_priority_color - boolean - Include file priority color information?
891
894
  def self.download(path, params = {}, options = {})
@@ -894,6 +897,7 @@ module Files
894
897
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
895
898
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
896
899
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
900
+ raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params.dig(:preview_size) and !params.dig(:preview_size).is_a?(String)
897
901
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
898
902
 
899
903
  response, options = Api.send_request("/files/#{Addressable::URI.encode_component(params[:path])}", :get, params, options)
@@ -13,6 +13,7 @@ module Files
13
13
  #
14
14
  # Parameters:
15
15
  # destination (required) - string - Copy destination path.
16
+ # structure - boolean - Copy structure only?
16
17
  def copy(params = {})
17
18
  params ||= {}
18
19
  params[:path] = @attributes[:path]
@@ -68,6 +69,7 @@ module Files
68
69
  #
69
70
  # Parameters:
70
71
  # destination (required) - string - Copy destination path.
72
+ # structure - boolean - Copy structure only?
71
73
  def self.copy(path, params = {}, options = {})
72
74
  params ||= {}
73
75
  params[:path] = path
@@ -322,6 +322,7 @@ module Files
322
322
  # preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
323
323
  # search - string - If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
324
324
  # search_all - boolean - Search entire site?
325
+ # with_previews - boolean - Include file previews?
325
326
  # with_priority_color - boolean - Include file priority color information?
326
327
  def self.list_for(path, params = {}, options = {})
327
328
  params ||= {}
@@ -81,12 +81,19 @@ module Files
81
81
  Api.send_request("/group_users/#{@attributes[:id]}", :patch, params, @options)
82
82
  end
83
83
 
84
+ # Parameters:
85
+ # group_id (required) - int64 - Group ID from which to remove user.
86
+ # user_id (required) - int64 - User ID to remove from group.
84
87
  def delete(params = {})
85
88
  params ||= {}
86
89
  params[:id] = @attributes[:id]
87
90
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
88
91
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
92
+ raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
93
+ raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
89
94
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
95
+ raise MissingParameterError.new("Parameter missing: group_id") unless params.dig(:group_id)
96
+ raise MissingParameterError.new("Parameter missing: user_id") unless params.dig(:user_id)
90
97
 
91
98
  Api.send_request("/group_users/#{@attributes[:id]}", :delete, params, @options)
92
99
  end
@@ -140,11 +147,18 @@ module Files
140
147
  GroupUser.new(response.data, options)
141
148
  end
142
149
 
150
+ # Parameters:
151
+ # group_id (required) - int64 - Group ID from which to remove user.
152
+ # user_id (required) - int64 - User ID to remove from group.
143
153
  def self.delete(id, params = {}, options = {})
144
154
  params ||= {}
145
155
  params[:id] = id
146
156
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
157
+ raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
158
+ raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
147
159
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
160
+ raise MissingParameterError.new("Parameter missing: group_id") unless params.dig(:group_id)
161
+ raise MissingParameterError.new("Parameter missing: user_id") unless params.dig(:user_id)
148
162
 
149
163
  response, _options = Api.send_request("/group_users/#{params[:id]}", :delete, params, options)
150
164
  response.data
@@ -54,7 +54,7 @@ module Files
54
54
  @attributes[:user_id] = value
55
55
  end
56
56
 
57
- # int64 - Project to attach the message to.
57
+ # int64 - Project to which the message should be attached.
58
58
  def project_id
59
59
  @attributes[:project_id]
60
60
  end
@@ -64,7 +64,7 @@ module Files
64
64
  end
65
65
 
66
66
  # Parameters:
67
- # project_id (required) - int64 - Project to attach the message to.
67
+ # project_id (required) - int64 - Project to which the message should be attached.
68
68
  # subject (required) - string - Message subject.
69
69
  # body (required) - string - Message body.
70
70
  def update(params = {})
@@ -111,7 +111,7 @@ module Files
111
111
  # page - int64 - Current page number.
112
112
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
113
113
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
114
- # project_id (required) - int64 - Project to return messages for.
114
+ # project_id (required) - int64 - Project for which to return messages.
115
115
  def self.list(params = {}, options = {})
116
116
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
117
117
  raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
@@ -148,7 +148,7 @@ module Files
148
148
 
149
149
  # Parameters:
150
150
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
151
- # project_id (required) - int64 - Project to attach the message to.
151
+ # project_id (required) - int64 - Project to which the message should be attached.
152
152
  # subject (required) - string - Message subject.
153
153
  # body (required) - string - Message body.
154
154
  def self.create(params = {}, options = {})
@@ -165,7 +165,7 @@ module Files
165
165
  end
166
166
 
167
167
  # Parameters:
168
- # project_id (required) - int64 - Project to attach the message to.
168
+ # project_id (required) - int64 - Project to which the message should be attached.
169
169
  # subject (required) - string - Message subject.
170
170
  # body (required) - string - Message body.
171
171
  def self.update(id, params = {}, options = {})
@@ -243,6 +243,24 @@ module Files
243
243
  @attributes[:one_drive_account_type] = value
244
244
  end
245
245
 
246
+ # string - Azure Blob Storage Account name
247
+ def azure_blob_storage_account
248
+ @attributes[:azure_blob_storage_account]
249
+ end
250
+
251
+ def azure_blob_storage_account=(value)
252
+ @attributes[:azure_blob_storage_account] = value
253
+ end
254
+
255
+ # string - Azure Blob Storage Container name
256
+ def azure_blob_storage_container
257
+ @attributes[:azure_blob_storage_container]
258
+ end
259
+
260
+ def azure_blob_storage_container=(value)
261
+ @attributes[:azure_blob_storage_container] = value
262
+ end
263
+
246
264
  # string - AWS Access Key.
247
265
  def aws_access_key
248
266
  @attributes[:aws_access_key]
@@ -342,6 +360,15 @@ module Files
342
360
  @attributes[:reset_authentication] = value
343
361
  end
344
362
 
363
+ # string - Azure Blob Storage secret key.
364
+ def azure_blob_storage_access_key
365
+ @attributes[:azure_blob_storage_access_key]
366
+ end
367
+
368
+ def azure_blob_storage_access_key=(value)
369
+ @attributes[:azure_blob_storage_access_key] = value
370
+ end
371
+
345
372
  # Parameters:
346
373
  # aws_access_key - string - AWS Access Key.
347
374
  # aws_secret_key - string - AWS secret key.
@@ -354,6 +381,7 @@ module Files
354
381
  # backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
355
382
  # rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
356
383
  # reset_authentication - boolean - Reset authenticated account
384
+ # azure_blob_storage_access_key - string - Azure Blob Storage secret key.
357
385
  # hostname - string - Hostname or IP address
358
386
  # name - string - Internal name for your reference
359
387
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -375,6 +403,8 @@ module Files
375
403
  # rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
376
404
  # rackspace_container - string - The name of the container (top level directory) where files will sync.
377
405
  # one_drive_account_type - string - Either personal or business_other account types
406
+ # azure_blob_storage_account - string - Azure Blob Storage Account name
407
+ # azure_blob_storage_container - string - Azure Blob Storage Container name
378
408
  def update(params = {})
379
409
  params ||= {}
380
410
  params[:id] = @attributes[:id]
@@ -390,6 +420,7 @@ module Files
390
420
  raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
391
421
  raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
392
422
  raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
423
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params.dig(:azure_blob_storage_access_key) and !params.dig(:azure_blob_storage_access_key).is_a?(String)
393
424
  raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
394
425
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
395
426
  raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
@@ -411,6 +442,8 @@ module Files
411
442
  raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
412
443
  raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
413
444
  raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
445
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params.dig(:azure_blob_storage_account) and !params.dig(:azure_blob_storage_account).is_a?(String)
446
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params.dig(:azure_blob_storage_container) and !params.dig(:azure_blob_storage_container).is_a?(String)
414
447
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
415
448
 
416
449
  Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options)
@@ -486,6 +519,7 @@ module Files
486
519
  # backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
487
520
  # rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
488
521
  # reset_authentication - boolean - Reset authenticated account
522
+ # azure_blob_storage_access_key - string - Azure Blob Storage secret key.
489
523
  # hostname - string - Hostname or IP address
490
524
  # name - string - Internal name for your reference
491
525
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -507,6 +541,8 @@ module Files
507
541
  # rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
508
542
  # rackspace_container - string - The name of the container (top level directory) where files will sync.
509
543
  # one_drive_account_type - string - Either personal or business_other account types
544
+ # azure_blob_storage_account - string - Azure Blob Storage Account name
545
+ # azure_blob_storage_container - string - Azure Blob Storage Container name
510
546
  def self.create(params = {}, options = {})
511
547
  raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params.dig(:aws_access_key) and !params.dig(:aws_access_key).is_a?(String)
512
548
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
@@ -518,6 +554,7 @@ module Files
518
554
  raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
519
555
  raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
520
556
  raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
557
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params.dig(:azure_blob_storage_access_key) and !params.dig(:azure_blob_storage_access_key).is_a?(String)
521
558
  raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
522
559
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
523
560
  raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
@@ -539,6 +576,8 @@ module Files
539
576
  raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
540
577
  raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
541
578
  raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
579
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params.dig(:azure_blob_storage_account) and !params.dig(:azure_blob_storage_account).is_a?(String)
580
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params.dig(:azure_blob_storage_container) and !params.dig(:azure_blob_storage_container).is_a?(String)
542
581
 
543
582
  response, options = Api.send_request("/remote_servers", :post, params, options)
544
583
  RemoteServer.new(response.data, options)
@@ -556,6 +595,7 @@ module Files
556
595
  # backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
557
596
  # rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
558
597
  # reset_authentication - boolean - Reset authenticated account
598
+ # azure_blob_storage_access_key - string - Azure Blob Storage secret key.
559
599
  # hostname - string - Hostname or IP address
560
600
  # name - string - Internal name for your reference
561
601
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
@@ -577,6 +617,8 @@ module Files
577
617
  # rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
578
618
  # rackspace_container - string - The name of the container (top level directory) where files will sync.
579
619
  # one_drive_account_type - string - Either personal or business_other account types
620
+ # azure_blob_storage_account - string - Azure Blob Storage Account name
621
+ # azure_blob_storage_container - string - Azure Blob Storage Container name
580
622
  def self.update(id, params = {}, options = {})
581
623
  params ||= {}
582
624
  params[:id] = id
@@ -591,6 +633,7 @@ module Files
591
633
  raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params.dig(:backblaze_b2_key_id) and !params.dig(:backblaze_b2_key_id).is_a?(String)
592
634
  raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params.dig(:backblaze_b2_application_key) and !params.dig(:backblaze_b2_application_key).is_a?(String)
593
635
  raise InvalidParameterError.new("Bad parameter: rackspace_api_key must be an String") if params.dig(:rackspace_api_key) and !params.dig(:rackspace_api_key).is_a?(String)
636
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params.dig(:azure_blob_storage_access_key) and !params.dig(:azure_blob_storage_access_key).is_a?(String)
594
637
  raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params.dig(:hostname) and !params.dig(:hostname).is_a?(String)
595
638
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
596
639
  raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params.dig(:max_connections) and !params.dig(:max_connections).is_a?(Integer)
@@ -612,6 +655,8 @@ module Files
612
655
  raise InvalidParameterError.new("Bad parameter: rackspace_region must be an String") if params.dig(:rackspace_region) and !params.dig(:rackspace_region).is_a?(String)
613
656
  raise InvalidParameterError.new("Bad parameter: rackspace_container must be an String") if params.dig(:rackspace_container) and !params.dig(:rackspace_container).is_a?(String)
614
657
  raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params.dig(:one_drive_account_type) and !params.dig(:one_drive_account_type).is_a?(String)
658
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params.dig(:azure_blob_storage_account) and !params.dig(:azure_blob_storage_account).is_a?(String)
659
+ raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params.dig(:azure_blob_storage_container) and !params.dig(:azure_blob_storage_container).is_a?(String)
615
660
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
616
661
 
617
662
  response, options = Api.send_request("/remote_servers/#{params[:id]}", :patch, params, options)
@@ -309,6 +309,11 @@ module Files
309
309
  @attributes[:next_billing_date]
310
310
  end
311
311
 
312
+ # boolean - Allow users to use Office for the web?
313
+ def office_integration_available
314
+ @attributes[:office_integration_available]
315
+ end
316
+
312
317
  # boolean - Use servers in the USA only?
313
318
  def opt_out_global
314
319
  @attributes[:opt_out_global]
@@ -585,6 +590,7 @@ module Files
585
590
  # desktop_app_session_lifetime - int64 - Desktop app session lifetime (in hours)
586
591
  # 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.
587
592
  # welcome_screen - string - Does the welcome screen appear?
593
+ # office_integration_available - boolean - Allow users to use Office for the web?
588
594
  # session_expiry - double - Session expiry in hours
589
595
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
590
596
  # tls_disabled - boolean - Is TLS disabled(site setting)?
@@ -239,6 +239,15 @@ module Files
239
239
  @attributes[:notification_daily_send_time] = value
240
240
  end
241
241
 
242
+ # boolean - Enable integration with Office for the web?
243
+ def office_integration_enabled
244
+ @attributes[:office_integration_enabled]
245
+ end
246
+
247
+ def office_integration_enabled=(value)
248
+ @attributes[:office_integration_enabled] = value
249
+ end
250
+
242
251
  # date-time - Last time the user's password was set
243
252
  def password_set_at
244
253
  @attributes[:password_set_at]
@@ -542,6 +551,7 @@ module Files
542
551
  # notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
543
552
  # name - string - User's full name
544
553
  # notes - string - Any internal notes on the user
554
+ # office_integration_enabled - boolean - Enable integration with Office for the web?
545
555
  # password_validity_days - int64 - Number of days to allow user to use the same password
546
556
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
547
557
  # require_password_change - boolean - Is a password change required upon next user login?
@@ -615,6 +625,7 @@ module Files
615
625
  # page - int64 - Current page number.
616
626
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
617
627
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
628
+ # ids - string - comma-separated list of User IDs
618
629
  # q[username] - string - List users matching username.
619
630
  # q[email] - string - List users matching email.
620
631
  # q[notes] - string - List users matching notes field.
@@ -629,6 +640,7 @@ module Files
629
640
  raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
630
641
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
631
642
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
643
+ raise InvalidParameterError.new("Bad parameter: ids must be an String") if params.dig(:ids) and !params.dig(:ids).is_a?(String)
632
644
  raise InvalidParameterError.new("Bad parameter: search must be an String") if params.dig(:search) and !params.dig(:search).is_a?(String)
633
645
 
634
646
  response, options = Api.send_request("/users", :get, params, options)
@@ -684,6 +696,7 @@ module Files
684
696
  # notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
685
697
  # name - string - User's full name
686
698
  # notes - string - Any internal notes on the user
699
+ # office_integration_enabled - boolean - Enable integration with Office for the web?
687
700
  # password_validity_days - int64 - Number of days to allow user to use the same password
688
701
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
689
702
  # require_password_change - boolean - Is a password change required upon next user login?
@@ -786,6 +799,7 @@ module Files
786
799
  # notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
787
800
  # name - string - User's full name
788
801
  # notes - string - Any internal notes on the user
802
+ # office_integration_enabled - boolean - Enable integration with Office for the web?
789
803
  # password_validity_days - int64 - Number of days to allow user to use the same password
790
804
  # receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
791
805
  # require_password_change - boolean - Is a password change required upon next user login?
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.82
4
+ version: 1.0.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-07 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -87,6 +87,7 @@ files:
87
87
  - docs/account_line_item.md
88
88
  - docs/action.md
89
89
  - docs/api_key.md
90
+ - docs/app.md
90
91
  - docs/as2_key.md
91
92
  - docs/auto.md
92
93
  - docs/automation.md
@@ -144,6 +145,7 @@ files:
144
145
  - lib/files.com/models/account_line_item.rb
145
146
  - lib/files.com/models/action.rb
146
147
  - lib/files.com/models/api_key.rb
148
+ - lib/files.com/models/app.rb
147
149
  - lib/files.com/models/as2_key.rb
148
150
  - lib/files.com/models/auto.rb
149
151
  - lib/files.com/models/automation.rb