files.com 1.0.186 → 1.0.190

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: dd6b8cb725740fa166bbc1ce206311927d47ff2b8e31646f2d8f42f0c2cbceb9
4
- data.tar.gz: 72b86fe34d261f24fd19893434d5876fb2f556d11968cf617ec51a5d948acced
3
+ metadata.gz: c1beb1fa8984b8e5d13357616d7107fcb13c802ad6caf64cf1836aeeafeb4061
4
+ data.tar.gz: 283076bd5dcfc8497972b8f8b930d0a2f9fd1d6957e16eef9aef72cc6a21c501
5
5
  SHA512:
6
- metadata.gz: 8c58e5414b8d30902338b6d2e0f6419ba591190d48bf34344718170a7155191f0b4e6aa4655683219b78e8c900e1f008993dddd94dc276c855c528439b013ae2
7
- data.tar.gz: '0887f3a898073aeb880648cde030f192056660213bfce7f725cc31927b7b4a95b803b48dff42b7cfa3524373167094fd36850ca142a42454a2dbfbc8ce7ab542'
6
+ metadata.gz: debedaf9988b6593ebd6eaff688b5dfd8d43fd9f61b26fba36bd1451db3489cd74ced9b4fb8a8866fd02edbe6f49dad6e2a212f5d45d38b2a02e5bc6cb389284
7
+ data.tar.gz: 8eb85cc1a3b52cfdc392b261f4f769add7755ae3a1dfb435fe3db3f9e5002b022c50d2842363bdf95c5dd7e4fded09546f947411e6d4a577fa63dcef7093c7db
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.186
1
+ 1.0.190
@@ -42,4 +42,4 @@ Files::BundleRegistration.list(
42
42
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
43
43
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
44
44
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
- * `bundle_id` (int64): Required - ID of the associated Bundle
45
+ * `bundle_id` (int64): ID of the associated Bundle
data/docs/lock.md CHANGED
@@ -7,22 +7,28 @@
7
7
  "path": "locked_file",
8
8
  "timeout": 43200,
9
9
  "depth": "infinity",
10
+ "recursive": true,
10
11
  "owner": "user",
11
12
  "scope": "shared",
13
+ "exclusive": true,
12
14
  "token": "17c54824e9931a4688ca032d03f6663c",
13
15
  "type": "write",
16
+ "allow_access_by_any_user": true,
14
17
  "user_id": 1,
15
18
  "username": ""
16
19
  }
17
20
  ```
18
21
 
19
22
  * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
- * `timeout` (int64): Lock timeout
21
- * `depth` (string): Lock depth (0 or infinity)
22
- * `owner` (string): Owner of lock. This can be any arbitrary string.
23
- * `scope` (string): Lock scope(shared or exclusive)
23
+ * `timeout` (int64): Lock timeout in seconds
24
+ * `depth` (string): DEPRECATED: Lock depth
25
+ * `recursive` (boolean): Does lock apply to subfolders?
26
+ * `owner` (string): Owner of the lock. This can be any arbitrary string.
27
+ * `scope` (string): DEPRECATED: Lock scope
28
+ * `exclusive` (boolean): Is lock exclusive?
24
29
  * `token` (string): Lock token. Use to release lock.
25
- * `type` (string): Lock type
30
+ * `type` (string): DEPRECATED: Lock type
31
+ * `allow_access_by_any_user` (boolean): Can lock be modified by users other than its creator?
26
32
  * `user_id` (int64): Lock creator user ID
27
33
  * `username` (string): Lock creator username
28
34
 
@@ -52,6 +58,9 @@ Files::Lock.list_for(path,
52
58
 
53
59
  ```
54
60
  Files::Lock.create(path,
61
+ allow_access_by_any_user: true,
62
+ exclusive: true,
63
+ recursive: true,
55
64
  timeout: 1
56
65
  )
57
66
  ```
@@ -59,6 +68,9 @@ Files::Lock.create(path,
59
68
  ### Parameters
60
69
 
61
70
  * `path` (string): Required - Path
71
+ * `allow_access_by_any_user` (boolean): Allow lock to be updated by any user?
72
+ * `exclusive` (boolean): Is lock exclusive?
73
+ * `recursive` (string): Does lock apply to subfolders?
62
74
  * `timeout` (int64): Lock timeout length
63
75
 
64
76
 
@@ -35,7 +35,8 @@
35
35
  "azure_blob_storage_container": "container-name",
36
36
  "s3_compatible_bucket": "my-bucket",
37
37
  "s3_compatible_region": "us-east-1",
38
- "s3_compatible_endpoint": "mys3platform.com"
38
+ "s3_compatible_endpoint": "mys3platform.com",
39
+ "enable_dedicated_ips": true
39
40
  }
40
41
  ```
41
42
 
@@ -71,6 +72,7 @@
71
72
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
72
73
  * `s3_compatible_region` (string): S3-compatible Bucket name
73
74
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
75
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
74
76
  * `aws_access_key` (string): AWS Access Key.
75
77
  * `aws_secret_key` (string): AWS secret key.
76
78
  * `password` (string): Password if needed.
@@ -149,7 +151,8 @@ Files::RemoteServer.create(
149
151
  azure_blob_storage_container: "container-name",
150
152
  s3_compatible_bucket: "my-bucket",
151
153
  s3_compatible_region: "us-east-1",
152
- s3_compatible_endpoint: "mys3platform.com"
154
+ s3_compatible_endpoint: "mys3platform.com",
155
+ enable_dedicated_ips: true
153
156
  )
154
157
  ```
155
158
 
@@ -194,6 +197,7 @@ Files::RemoteServer.create(
194
197
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
195
198
  * `s3_compatible_region` (string): S3-compatible Bucket name
196
199
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
200
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
197
201
  * `s3_compatible_access_key` (string): S3-compatible access key
198
202
  * `s3_compatible_secret_key` (string): S3-compatible secret key
199
203
 
@@ -230,7 +234,8 @@ Files::RemoteServer.update(id,
230
234
  azure_blob_storage_container: "container-name",
231
235
  s3_compatible_bucket: "my-bucket",
232
236
  s3_compatible_region: "us-east-1",
233
- s3_compatible_endpoint: "mys3platform.com"
237
+ s3_compatible_endpoint: "mys3platform.com",
238
+ enable_dedicated_ips: true
234
239
  )
235
240
  ```
236
241
 
@@ -276,6 +281,7 @@ Files::RemoteServer.update(id,
276
281
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
277
282
  * `s3_compatible_region` (string): S3-compatible Bucket name
278
283
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
284
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
279
285
  * `s3_compatible_access_key` (string): S3-compatible access key
280
286
  * `s3_compatible_secret_key` (string): S3-compatible secret key
281
287
 
@@ -327,7 +333,8 @@ remote_server.update(
327
333
  azure_blob_storage_container: "container-name",
328
334
  s3_compatible_bucket: "my-bucket",
329
335
  s3_compatible_region: "us-east-1",
330
- s3_compatible_endpoint: "mys3platform.com"
336
+ s3_compatible_endpoint: "mys3platform.com",
337
+ enable_dedicated_ips: true
331
338
  )
332
339
  ```
333
340
 
@@ -373,6 +380,7 @@ remote_server.update(
373
380
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
374
381
  * `s3_compatible_region` (string): S3-compatible Bucket name
375
382
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
383
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
376
384
  * `s3_compatible_access_key` (string): S3-compatible access key
377
385
  * `s3_compatible_secret_key` (string): S3-compatible secret key
378
386
 
data/lib/files.com.rb CHANGED
@@ -27,75 +27,75 @@ require "files.com/util"
27
27
  require "files.com/list"
28
28
  require "files.com/uri"
29
29
 
30
- require "files.com/models/account_line_item"
31
- require "files.com/models/action"
32
- require "files.com/models/action_notification_export"
33
- require "files.com/models/action_notification_export_result"
34
- require "files.com/models/action_webhook_failure"
35
- require "files.com/models/api_key"
36
- require "files.com/models/app"
37
- require "files.com/models/as2_key"
38
- require "files.com/models/auto"
39
- require "files.com/models/automation"
40
- require "files.com/models/bandwidth_snapshot"
41
- require "files.com/models/behavior"
42
- require "files.com/models/bundle"
43
- require "files.com/models/bundle_download"
44
- require "files.com/models/bundle_recipient"
45
- require "files.com/models/bundle_registration"
46
- require "files.com/models/clickwrap"
47
- require "files.com/models/dns_record"
48
- require "files.com/models/errors"
49
- require "files.com/models/external_event"
50
- require "files.com/models/file"
51
- require "files.com/models/file_action"
52
- require "files.com/models/file_comment"
53
- require "files.com/models/file_comment_reaction"
54
- require "files.com/models/file_migration"
55
- require "files.com/models/file_upload_part"
56
- require "files.com/models/folder"
57
- require "files.com/models/form_field"
58
- require "files.com/models/form_field_set"
59
- require "files.com/models/group"
60
- require "files.com/models/group_user"
61
- require "files.com/models/history"
62
- require "files.com/models/history_export"
63
- require "files.com/models/history_export_result"
64
- require "files.com/models/image"
65
- require "files.com/models/inbox_recipient"
66
- require "files.com/models/inbox_registration"
67
- require "files.com/models/inbox_upload"
68
- require "files.com/models/invoice"
69
- require "files.com/models/invoice_line_item"
70
- require "files.com/models/ip_address"
71
- require "files.com/models/lock"
72
- require "files.com/models/message"
73
- require "files.com/models/message_comment"
74
- require "files.com/models/message_comment_reaction"
75
- require "files.com/models/message_reaction"
76
- require "files.com/models/notification"
77
- require "files.com/models/payment"
78
- require "files.com/models/payment_line_item"
79
- require "files.com/models/permission"
80
- require "files.com/models/preview"
81
- require "files.com/models/project"
82
- require "files.com/models/public_ip_address"
83
- require "files.com/models/public_key"
84
- require "files.com/models/remote_server"
85
- require "files.com/models/request"
86
- require "files.com/models/session"
87
- require "files.com/models/settings_change"
88
- require "files.com/models/site"
89
- require "files.com/models/sso_strategy"
90
- require "files.com/models/status"
91
- require "files.com/models/style"
92
- require "files.com/models/sync_job"
93
- require "files.com/models/usage_daily_snapshot"
94
- require "files.com/models/usage_snapshot"
95
- require "files.com/models/user"
96
- require "files.com/models/user_cipher_use"
97
- require "files.com/models/user_request"
98
- require "files.com/models/webhook_test"
30
+ require "files.com/clients/account_line_item"
31
+ require "files.com/clients/action"
32
+ require "files.com/clients/action_notification_export"
33
+ require "files.com/clients/action_notification_export_result"
34
+ require "files.com/clients/action_webhook_failure"
35
+ require "files.com/clients/api_key"
36
+ require "files.com/clients/app"
37
+ require "files.com/clients/as2_key"
38
+ require "files.com/clients/auto"
39
+ require "files.com/clients/automation"
40
+ require "files.com/clients/bandwidth_snapshot"
41
+ require "files.com/clients/behavior"
42
+ require "files.com/clients/bundle"
43
+ require "files.com/clients/bundle_download"
44
+ require "files.com/clients/bundle_recipient"
45
+ require "files.com/clients/bundle_registration"
46
+ require "files.com/clients/clickwrap"
47
+ require "files.com/clients/dns_record"
48
+ require "files.com/clients/errors"
49
+ require "files.com/clients/external_event"
50
+ require "files.com/clients/file"
51
+ require "files.com/clients/file_action"
52
+ require "files.com/clients/file_comment"
53
+ require "files.com/clients/file_comment_reaction"
54
+ require "files.com/clients/file_migration"
55
+ require "files.com/clients/file_upload_part"
56
+ require "files.com/clients/folder"
57
+ require "files.com/clients/form_field"
58
+ require "files.com/clients/form_field_set"
59
+ require "files.com/clients/group"
60
+ require "files.com/clients/group_user"
61
+ require "files.com/clients/history"
62
+ require "files.com/clients/history_export"
63
+ require "files.com/clients/history_export_result"
64
+ require "files.com/clients/image"
65
+ require "files.com/clients/inbox_recipient"
66
+ require "files.com/clients/inbox_registration"
67
+ require "files.com/clients/inbox_upload"
68
+ require "files.com/clients/invoice"
69
+ require "files.com/clients/invoice_line_item"
70
+ require "files.com/clients/ip_address"
71
+ require "files.com/clients/lock"
72
+ require "files.com/clients/message"
73
+ require "files.com/clients/message_comment"
74
+ require "files.com/clients/message_comment_reaction"
75
+ require "files.com/clients/message_reaction"
76
+ require "files.com/clients/notification"
77
+ require "files.com/clients/payment"
78
+ require "files.com/clients/payment_line_item"
79
+ require "files.com/clients/permission"
80
+ require "files.com/clients/preview"
81
+ require "files.com/clients/project"
82
+ require "files.com/clients/public_ip_address"
83
+ require "files.com/clients/public_key"
84
+ require "files.com/clients/remote_server"
85
+ require "files.com/clients/request"
86
+ require "files.com/clients/session"
87
+ require "files.com/clients/settings_change"
88
+ require "files.com/clients/site"
89
+ require "files.com/clients/sso_strategy"
90
+ require "files.com/clients/status"
91
+ require "files.com/clients/style"
92
+ require "files.com/clients/sync_job"
93
+ require "files.com/clients/usage_daily_snapshot"
94
+ require "files.com/clients/usage_snapshot"
95
+ require "files.com/clients/user"
96
+ require "files.com/clients/user_cipher_use"
97
+ require "files.com/clients/user_request"
98
+ require "files.com/clients/webhook_test"
99
99
 
100
100
  require "files.com/models/dir"
101
101
  require "files.com/models/file_utils"
@@ -53,13 +53,12 @@ module Files
53
53
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
54
54
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
55
55
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
- # bundle_id (required) - int64 - ID of the associated Bundle
56
+ # bundle_id - int64 - ID of the associated Bundle
57
57
  def self.list(params = {}, options = {})
58
58
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
59
59
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
60
60
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
61
61
  raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params.dig(:bundle_id) and !params.dig(:bundle_id).is_a?(Integer)
62
- raise MissingParameterError.new("Parameter missing: bundle_id") unless params.dig(:bundle_id)
63
62
 
64
63
  List.new(BundleRegistration, params) do
65
64
  Api.send_request("/bundle_registrations", :get, params, options)
@@ -18,7 +18,7 @@ module Files
18
18
  @attributes[:path] = value
19
19
  end
20
20
 
21
- # int64 - Lock timeout
21
+ # int64 - Lock timeout in seconds
22
22
  def timeout
23
23
  @attributes[:timeout]
24
24
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:timeout] = value
28
28
  end
29
29
 
30
- # string - Lock depth (0 or infinity)
30
+ # string - DEPRECATED: Lock depth
31
31
  def depth
32
32
  @attributes[:depth]
33
33
  end
@@ -36,7 +36,16 @@ module Files
36
36
  @attributes[:depth] = value
37
37
  end
38
38
 
39
- # string - Owner of lock. This can be any arbitrary string.
39
+ # boolean - Does lock apply to subfolders?
40
+ def recursive
41
+ @attributes[:recursive]
42
+ end
43
+
44
+ def recursive=(value)
45
+ @attributes[:recursive] = value
46
+ end
47
+
48
+ # string - Owner of the lock. This can be any arbitrary string.
40
49
  def owner
41
50
  @attributes[:owner]
42
51
  end
@@ -45,7 +54,7 @@ module Files
45
54
  @attributes[:owner] = value
46
55
  end
47
56
 
48
- # string - Lock scope(shared or exclusive)
57
+ # string - DEPRECATED: Lock scope
49
58
  def scope
50
59
  @attributes[:scope]
51
60
  end
@@ -54,6 +63,15 @@ module Files
54
63
  @attributes[:scope] = value
55
64
  end
56
65
 
66
+ # boolean - Is lock exclusive?
67
+ def exclusive
68
+ @attributes[:exclusive]
69
+ end
70
+
71
+ def exclusive=(value)
72
+ @attributes[:exclusive] = value
73
+ end
74
+
57
75
  # string - Lock token. Use to release lock.
58
76
  def token
59
77
  @attributes[:token]
@@ -63,7 +81,7 @@ module Files
63
81
  @attributes[:token] = value
64
82
  end
65
83
 
66
- # string - Lock type
84
+ # string - DEPRECATED: Lock type
67
85
  def type
68
86
  @attributes[:type]
69
87
  end
@@ -72,6 +90,15 @@ module Files
72
90
  @attributes[:type] = value
73
91
  end
74
92
 
93
+ # boolean - Can lock be modified by users other than its creator?
94
+ def allow_access_by_any_user
95
+ @attributes[:allow_access_by_any_user]
96
+ end
97
+
98
+ def allow_access_by_any_user=(value)
99
+ @attributes[:allow_access_by_any_user] = value
100
+ end
101
+
75
102
  # int64 - Lock creator user ID
76
103
  def user_id
77
104
  @attributes[:user_id]
@@ -133,11 +160,15 @@ module Files
133
160
 
134
161
  # Parameters:
135
162
  # path (required) - string - Path
163
+ # allow_access_by_any_user - boolean - Allow lock to be updated by any user?
164
+ # exclusive - boolean - Is lock exclusive?
165
+ # recursive - string - Does lock apply to subfolders?
136
166
  # timeout - int64 - Lock timeout length
137
167
  def self.create(path, params = {}, options = {})
138
168
  params ||= {}
139
169
  params[:path] = path
140
170
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
171
+ raise InvalidParameterError.new("Bad parameter: recursive must be an String") if params.dig(:recursive) and !params.dig(:recursive).is_a?(String)
141
172
  raise InvalidParameterError.new("Bad parameter: timeout must be an Integer") if params.dig(:timeout) and !params.dig(:timeout).is_a?(Integer)
142
173
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
143
174
 
@@ -297,6 +297,15 @@ module Files
297
297
  @attributes[:s3_compatible_endpoint] = value
298
298
  end
299
299
 
300
+ # boolean - `true` if remote server only accepts connections from dedicated IPs
301
+ def enable_dedicated_ips
302
+ @attributes[:enable_dedicated_ips]
303
+ end
304
+
305
+ def enable_dedicated_ips=(value)
306
+ @attributes[:enable_dedicated_ips] = value
307
+ end
308
+
300
309
  # string - AWS Access Key.
301
310
  def aws_access_key
302
311
  @attributes[:aws_access_key]
@@ -472,6 +481,7 @@ module Files
472
481
  # s3_compatible_bucket - string - S3-compatible Bucket name
473
482
  # s3_compatible_region - string - S3-compatible Bucket name
474
483
  # s3_compatible_endpoint - string - S3-compatible endpoint
484
+ # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
475
485
  # s3_compatible_access_key - string - S3-compatible access key
476
486
  # s3_compatible_secret_key - string - S3-compatible secret key
477
487
  def update(params = {})
@@ -619,6 +629,7 @@ module Files
619
629
  # s3_compatible_bucket - string - S3-compatible Bucket name
620
630
  # s3_compatible_region - string - S3-compatible Bucket name
621
631
  # s3_compatible_endpoint - string - S3-compatible endpoint
632
+ # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
622
633
  # s3_compatible_access_key - string - S3-compatible access key
623
634
  # s3_compatible_secret_key - string - S3-compatible secret key
624
635
  def self.create(params = {}, options = {})
@@ -707,6 +718,7 @@ module Files
707
718
  # s3_compatible_bucket - string - S3-compatible Bucket name
708
719
  # s3_compatible_region - string - S3-compatible Bucket name
709
720
  # s3_compatible_endpoint - string - S3-compatible endpoint
721
+ # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
710
722
  # s3_compatible_access_key - string - S3-compatible access key
711
723
  # s3_compatible_secret_key - string - S3-compatible secret key
712
724
  def self.update(id, params = {}, options = {})
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.186
4
+ version: 1.0.190
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable