files.com 1.0.185 → 1.0.189
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/file_migration.md +38 -0
- data/docs/lock.md +17 -5
- data/docs/remote_server.md +12 -4
- data/lib/files.com.rb +69 -68
- data/lib/files.com/models/file_migration.rb +68 -0
- data/lib/files.com/models/lock.rb +36 -5
- data/lib/files.com/models/remote_server.rb +12 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40d2d0562111f13b8fb68612cfec2bc9112431838a967c1668bd8306c2171583
|
4
|
+
data.tar.gz: ba800783d0620e2c3a22ead72b2863c6ae091eaa54c94f0348809c25fce1e5c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8e711b882f506b926006d256d5df91fe41d0f8223c69a4cd3340c17fab90111bf651eacc367f0db443e0754792f1664809c69438c1787d551a45530fb9d5983
|
7
|
+
data.tar.gz: b87a6089bd45463e1f9bcedf6f17c5c8509beb0b20aea3830da765d82e504ecb423551c14f792e44bb2dcece0f67745592b4794b8af30ce908d271eccb46dec5
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.189
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# FileMigration
|
2
|
+
|
3
|
+
## Example FileMigration Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"path": "MyFolder",
|
9
|
+
"dest_path": "MyFolder",
|
10
|
+
"files_moved": 1,
|
11
|
+
"files_total": 1,
|
12
|
+
"operation": "move",
|
13
|
+
"region": "USA",
|
14
|
+
"status": "complete"
|
15
|
+
}
|
16
|
+
```
|
17
|
+
|
18
|
+
* `id` (int64): File migration ID
|
19
|
+
* `path` (string): Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
20
|
+
* `dest_path` (string): Destination path
|
21
|
+
* `files_moved` (int64): Number of files processed
|
22
|
+
* `files_total` (int64): Total number of files to process
|
23
|
+
* `operation` (string): The type of operation
|
24
|
+
* `region` (string): Region
|
25
|
+
* `status` (string): Status
|
26
|
+
|
27
|
+
|
28
|
+
---
|
29
|
+
|
30
|
+
## Show File Migration
|
31
|
+
|
32
|
+
```
|
33
|
+
Files::FileMigration.find(id)
|
34
|
+
```
|
35
|
+
|
36
|
+
### Parameters
|
37
|
+
|
38
|
+
* `id` (int64): Required - File Migration ID.
|
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
|
22
|
-
* `
|
23
|
-
* `
|
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
|
|
data/docs/remote_server.md
CHANGED
@@ -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,74 +27,75 @@ require "files.com/util"
|
|
27
27
|
require "files.com/list"
|
28
28
|
require "files.com/uri"
|
29
29
|
|
30
|
-
require "files.com/
|
31
|
-
require "files.com/
|
32
|
-
require "files.com/
|
33
|
-
require "files.com/
|
34
|
-
require "files.com/
|
35
|
-
require "files.com/
|
36
|
-
require "files.com/
|
37
|
-
require "files.com/
|
38
|
-
require "files.com/
|
39
|
-
require "files.com/
|
40
|
-
require "files.com/
|
41
|
-
require "files.com/
|
42
|
-
require "files.com/
|
43
|
-
require "files.com/
|
44
|
-
require "files.com/
|
45
|
-
require "files.com/
|
46
|
-
require "files.com/
|
47
|
-
require "files.com/
|
48
|
-
require "files.com/
|
49
|
-
require "files.com/
|
50
|
-
require "files.com/
|
51
|
-
require "files.com/
|
52
|
-
require "files.com/
|
53
|
-
require "files.com/
|
54
|
-
require "files.com/
|
55
|
-
require "files.com/
|
56
|
-
require "files.com/
|
57
|
-
require "files.com/
|
58
|
-
require "files.com/
|
59
|
-
require "files.com/
|
60
|
-
require "files.com/
|
61
|
-
require "files.com/
|
62
|
-
require "files.com/
|
63
|
-
require "files.com/
|
64
|
-
require "files.com/
|
65
|
-
require "files.com/
|
66
|
-
require "files.com/
|
67
|
-
require "files.com/
|
68
|
-
require "files.com/
|
69
|
-
require "files.com/
|
70
|
-
require "files.com/
|
71
|
-
require "files.com/
|
72
|
-
require "files.com/
|
73
|
-
require "files.com/
|
74
|
-
require "files.com/
|
75
|
-
require "files.com/
|
76
|
-
require "files.com/
|
77
|
-
require "files.com/
|
78
|
-
require "files.com/
|
79
|
-
require "files.com/
|
80
|
-
require "files.com/
|
81
|
-
require "files.com/
|
82
|
-
require "files.com/
|
83
|
-
require "files.com/
|
84
|
-
require "files.com/
|
85
|
-
require "files.com/
|
86
|
-
require "files.com/
|
87
|
-
require "files.com/
|
88
|
-
require "files.com/
|
89
|
-
require "files.com/
|
90
|
-
require "files.com/
|
91
|
-
require "files.com/
|
92
|
-
require "files.com/
|
93
|
-
require "files.com/
|
94
|
-
require "files.com/
|
95
|
-
require "files.com/
|
96
|
-
require "files.com/
|
97
|
-
require "files.com/
|
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"
|
98
99
|
|
99
100
|
require "files.com/models/dir"
|
100
101
|
require "files.com/models/file_utils"
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class FileMigration
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# int64 - File migration ID
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
17
|
+
# string - Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
18
|
+
def path
|
19
|
+
@attributes[:path]
|
20
|
+
end
|
21
|
+
|
22
|
+
# string - Destination path
|
23
|
+
def dest_path
|
24
|
+
@attributes[:dest_path]
|
25
|
+
end
|
26
|
+
|
27
|
+
# int64 - Number of files processed
|
28
|
+
def files_moved
|
29
|
+
@attributes[:files_moved]
|
30
|
+
end
|
31
|
+
|
32
|
+
# int64 - Total number of files to process
|
33
|
+
def files_total
|
34
|
+
@attributes[:files_total]
|
35
|
+
end
|
36
|
+
|
37
|
+
# string - The type of operation
|
38
|
+
def operation
|
39
|
+
@attributes[:operation]
|
40
|
+
end
|
41
|
+
|
42
|
+
# string - Region
|
43
|
+
def region
|
44
|
+
@attributes[:region]
|
45
|
+
end
|
46
|
+
|
47
|
+
# string - Status
|
48
|
+
def status
|
49
|
+
@attributes[:status]
|
50
|
+
end
|
51
|
+
|
52
|
+
# Parameters:
|
53
|
+
# id (required) - int64 - File Migration ID.
|
54
|
+
def self.find(id, params = {}, options = {})
|
55
|
+
params ||= {}
|
56
|
+
params[:id] = id
|
57
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
58
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
59
|
+
|
60
|
+
response, options = Api.send_request("/file_migrations/#{params[:id]}", :get, params, options)
|
61
|
+
FileMigration.new(response.data, options)
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.get(id, params = {}, options = {})
|
65
|
+
find(id, params, options)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -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
|
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
|
-
#
|
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
|
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.
|
4
|
+
version: 1.0.189
|
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-
|
11
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- docs/file_action.md
|
111
111
|
- docs/file_comment.md
|
112
112
|
- docs/file_comment_reaction.md
|
113
|
+
- docs/file_migration.md
|
113
114
|
- docs/file_upload_part.md
|
114
115
|
- docs/file_utils.md
|
115
116
|
- docs/folder.md
|
@@ -186,6 +187,7 @@ files:
|
|
186
187
|
- lib/files.com/models/file_action.rb
|
187
188
|
- lib/files.com/models/file_comment.rb
|
188
189
|
- lib/files.com/models/file_comment_reaction.rb
|
190
|
+
- lib/files.com/models/file_migration.rb
|
189
191
|
- lib/files.com/models/file_upload_part.rb
|
190
192
|
- lib/files.com/models/file_utils.rb
|
191
193
|
- lib/files.com/models/folder.rb
|