files.com 1.0.240 → 1.0.244
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/bandwidth_snapshot.md +1 -5
- data/docs/remote_bandwidth_snapshot.md +42 -0
- data/docs/remote_server.md +9 -6
- data/docs/settings_change.md +5 -1
- data/docs/site.md +1 -1
- data/docs/user.md +1 -1
- data/lib/files.com/errors.rb +2 -0
- data/lib/files.com/models/bandwidth_snapshot.rb +0 -10
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +67 -0
- data/lib/files.com/models/remote_server.rb +30 -30
- data/lib/files.com/models/settings_change.rb +10 -0
- data/lib/files.com.rb +1 -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: e17b9b6c2a46002e460eb8dc50eaa79e94068a894d0992917335ab75b38145a7
|
4
|
+
data.tar.gz: c48984b58612209a060d3933e04a5638c13ab0c3b5a70c50a25cb7eb9384704f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a35579c7bf735372cc22a747afc2c59ebcc7d1d7219fcf6db6c009cc26e8a1807949e50ebe22c6ed73952814ed679376d5eb6e6457a7b12f2467f7aec62969
|
7
|
+
data.tar.gz: e7a61ad5ec47b8db214ccb2f9196596104aadbe7fe30bccb82d570aea5c9b036629630566f14dc012ce8d48275e19398749f0f04c17d33d00dd4186420a6d7ac
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.244
|
data/docs/bandwidth_snapshot.md
CHANGED
@@ -12,9 +12,7 @@
|
|
12
12
|
"requests_get": 1.0,
|
13
13
|
"requests_put": 1.0,
|
14
14
|
"requests_other": 1.0,
|
15
|
-
"logged_at": "2000-01-01T01:00:00Z"
|
16
|
-
"created_at": "2000-01-01T01:00:00Z",
|
17
|
-
"updated_at": "2000-01-01T01:00:00Z"
|
15
|
+
"logged_at": "2000-01-01T01:00:00Z"
|
18
16
|
}
|
19
17
|
```
|
20
18
|
|
@@ -27,8 +25,6 @@
|
|
27
25
|
* `requests_put` (double): Site bandwidth report put requests
|
28
26
|
* `requests_other` (double): Site bandwidth report other requests
|
29
27
|
* `logged_at` (date-time): Time the site bandwidth report was logged
|
30
|
-
* `created_at` (date-time): Site bandwidth report created at date/time
|
31
|
-
* `updated_at` (date-time): The last time this site bandwidth report was updated
|
32
28
|
|
33
29
|
|
34
30
|
---
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# RemoteBandwidthSnapshot
|
2
|
+
|
3
|
+
## Example RemoteBandwidthSnapshot Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"sync_bytes_received": 1.0,
|
9
|
+
"sync_bytes_sent": 1.0,
|
10
|
+
"logged_at": "2000-01-01T01:00:00Z",
|
11
|
+
"remote_server_id": 1
|
12
|
+
}
|
13
|
+
```
|
14
|
+
|
15
|
+
* `id` (int64): Site bandwidth ID
|
16
|
+
* `sync_bytes_received` (double): Site sync bandwidth report bytes received
|
17
|
+
* `sync_bytes_sent` (double): Site sync bandwidth report bytes sent
|
18
|
+
* `logged_at` (date-time): Time the site bandwidth report was logged
|
19
|
+
* `remote_server_id` (int64): ID of related Remote Server
|
20
|
+
|
21
|
+
|
22
|
+
---
|
23
|
+
|
24
|
+
## List Remote Bandwidth Snapshots
|
25
|
+
|
26
|
+
```
|
27
|
+
Files::RemoteBandwidthSnapshot.list(
|
28
|
+
per_page: 1
|
29
|
+
)
|
30
|
+
```
|
31
|
+
|
32
|
+
### Parameters
|
33
|
+
|
34
|
+
* `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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
35
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
36
|
+
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `logged_at`.
|
37
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
38
|
+
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
39
|
+
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `logged_at`.
|
40
|
+
* `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
41
|
+
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
42
|
+
* `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `logged_at`.
|
data/docs/remote_server.md
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
"max_connections": 1,
|
15
15
|
"s3_bucket": "my-bucket",
|
16
16
|
"s3_region": "us-east-1",
|
17
|
+
"aws_access_key": "",
|
17
18
|
"server_certificate": "require_match",
|
18
19
|
"server_host_key": "[public key]",
|
19
20
|
"server_type": "s3",
|
@@ -25,6 +26,7 @@
|
|
25
26
|
"backblaze_b2_bucket": "my-bucket",
|
26
27
|
"wasabi_bucket": "my-bucket",
|
27
28
|
"wasabi_region": "us-west-1",
|
29
|
+
"wasabi_access_key": "",
|
28
30
|
"rackspace_username": "rackspaceuser",
|
29
31
|
"rackspace_region": "dfw",
|
30
32
|
"rackspace_container": "my-container",
|
@@ -36,6 +38,7 @@
|
|
36
38
|
"azure_blob_storage_container": "container-name",
|
37
39
|
"s3_compatible_bucket": "my-bucket",
|
38
40
|
"s3_compatible_endpoint": "mys3platform.com",
|
41
|
+
"s3_compatible_access_key": "",
|
39
42
|
"enable_dedicated_ips": true
|
40
43
|
}
|
41
44
|
```
|
@@ -50,6 +53,7 @@
|
|
50
53
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
51
54
|
* `s3_bucket` (string): S3 bucket name
|
52
55
|
* `s3_region` (string): S3 region
|
56
|
+
* `aws_access_key` (string): AWS Access Key.
|
53
57
|
* `server_certificate` (string): Remote server certificate
|
54
58
|
* `server_host_key` (string): Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
55
59
|
* `server_type` (string): Remote server type.
|
@@ -61,6 +65,7 @@
|
|
61
65
|
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
62
66
|
* `wasabi_bucket` (string): Wasabi Bucket name
|
63
67
|
* `wasabi_region` (string): Wasabi region
|
68
|
+
* `wasabi_access_key` (string): Wasabi access key.
|
64
69
|
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
65
70
|
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
66
71
|
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
@@ -72,21 +77,19 @@
|
|
72
77
|
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
73
78
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
74
79
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
80
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
75
81
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
76
|
-
* `aws_access_key` (string): AWS Access Key.
|
77
82
|
* `aws_secret_key` (string): AWS secret key.
|
78
83
|
* `password` (string): Password if needed.
|
79
84
|
* `private_key` (string): Private key if needed.
|
80
85
|
* `ssl_certificate` (string): SSL client certificate.
|
81
86
|
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
82
|
-
* `wasabi_access_key` (string): Wasabi access key.
|
83
87
|
* `wasabi_secret_key` (string): Wasabi secret key.
|
84
88
|
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
85
89
|
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
86
90
|
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
87
91
|
* `reset_authentication` (boolean): Reset authenticated account
|
88
92
|
* `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
|
89
|
-
* `s3_compatible_access_key` (string): S3-compatible access key
|
90
93
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
91
94
|
|
92
95
|
|
@@ -196,7 +199,7 @@ Files::RemoteServer.create(
|
|
196
199
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
197
200
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
198
201
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
199
|
-
* `s3_compatible_access_key` (string): S3-compatible
|
202
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
200
203
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
201
204
|
|
202
205
|
|
@@ -278,7 +281,7 @@ Files::RemoteServer.update(id,
|
|
278
281
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
279
282
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
280
283
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
281
|
-
* `s3_compatible_access_key` (string): S3-compatible
|
284
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
282
285
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
283
286
|
|
284
287
|
|
@@ -375,7 +378,7 @@ remote_server.update(
|
|
375
378
|
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
376
379
|
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
377
380
|
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
378
|
-
* `s3_compatible_access_key` (string): S3-compatible
|
381
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
379
382
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
380
383
|
|
381
384
|
|
data/docs/settings_change.md
CHANGED
@@ -8,13 +8,17 @@
|
|
8
8
|
""
|
9
9
|
],
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
|
-
"user_id": 1
|
11
|
+
"user_id": 1,
|
12
|
+
"user_is_files_support": true,
|
13
|
+
"username": "some_user"
|
12
14
|
}
|
13
15
|
```
|
14
16
|
|
15
17
|
* `changes` (string): Markdown-formatted change messages.
|
16
18
|
* `created_at` (date-time): The time this change was made
|
17
19
|
* `user_id` (int64): The user id responsible for this change
|
20
|
+
* `user_is_files_support` (boolean): true if this change was performed by Files.com support.
|
21
|
+
* `username` (string): The username of the user responsible for this change
|
18
22
|
|
19
23
|
|
20
24
|
---
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
data/lib/files.com/errors.rb
CHANGED
@@ -169,6 +169,8 @@ module Files
|
|
169
169
|
class FileLockedError < ProcessingFailureError; end
|
170
170
|
class FileNotUploadedError < ProcessingFailureError; end
|
171
171
|
class FilePendingProcessingError < ProcessingFailureError; end
|
172
|
+
class FileTooBigToDecryptError < ProcessingFailureError; end
|
173
|
+
class FileTooBigToEncryptError < ProcessingFailureError; end
|
172
174
|
class FileUploadedToWrongRegionError < ProcessingFailureError; end
|
173
175
|
class FolderLockedError < ProcessingFailureError; end
|
174
176
|
class FolderNotEmptyError < ProcessingFailureError; end
|
@@ -54,16 +54,6 @@ module Files
|
|
54
54
|
@attributes[:logged_at]
|
55
55
|
end
|
56
56
|
|
57
|
-
# date-time - Site bandwidth report created at date/time
|
58
|
-
def created_at
|
59
|
-
@attributes[:created_at]
|
60
|
-
end
|
61
|
-
|
62
|
-
# date-time - The last time this site bandwidth report was updated
|
63
|
-
def updated_at
|
64
|
-
@attributes[:updated_at]
|
65
|
-
end
|
66
|
-
|
67
57
|
# Parameters:
|
68
58
|
# 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
69
59
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class RemoteBandwidthSnapshot
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# int64 - Site bandwidth ID
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
17
|
+
# double - Site sync bandwidth report bytes received
|
18
|
+
def sync_bytes_received
|
19
|
+
@attributes[:sync_bytes_received]
|
20
|
+
end
|
21
|
+
|
22
|
+
# double - Site sync bandwidth report bytes sent
|
23
|
+
def sync_bytes_sent
|
24
|
+
@attributes[:sync_bytes_sent]
|
25
|
+
end
|
26
|
+
|
27
|
+
# date-time - Time the site bandwidth report was logged
|
28
|
+
def logged_at
|
29
|
+
@attributes[:logged_at]
|
30
|
+
end
|
31
|
+
|
32
|
+
# int64 - ID of related Remote Server
|
33
|
+
def remote_server_id
|
34
|
+
@attributes[:remote_server_id]
|
35
|
+
end
|
36
|
+
|
37
|
+
# Parameters:
|
38
|
+
# 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
39
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
40
|
+
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `logged_at`.
|
41
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
42
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
43
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `logged_at`.
|
44
|
+
# filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
45
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
46
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `logged_at`.
|
47
|
+
def self.list(params = {}, options = {})
|
48
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
49
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
50
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
|
51
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
|
52
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
|
53
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
|
54
|
+
raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
|
55
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
|
56
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
|
57
|
+
|
58
|
+
List.new(RemoteBandwidthSnapshot, params) do
|
59
|
+
Api.send_request("/remote_bandwidth_snapshots", :get, params, options)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.all(params = {}, options = {})
|
64
|
+
list(params, options)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -99,6 +99,15 @@ module Files
|
|
99
99
|
@attributes[:s3_region] = value
|
100
100
|
end
|
101
101
|
|
102
|
+
# string - AWS Access Key.
|
103
|
+
def aws_access_key
|
104
|
+
@attributes[:aws_access_key]
|
105
|
+
end
|
106
|
+
|
107
|
+
def aws_access_key=(value)
|
108
|
+
@attributes[:aws_access_key] = value
|
109
|
+
end
|
110
|
+
|
102
111
|
# string - Remote server certificate
|
103
112
|
def server_certificate
|
104
113
|
@attributes[:server_certificate]
|
@@ -198,6 +207,15 @@ module Files
|
|
198
207
|
@attributes[:wasabi_region] = value
|
199
208
|
end
|
200
209
|
|
210
|
+
# string - Wasabi access key.
|
211
|
+
def wasabi_access_key
|
212
|
+
@attributes[:wasabi_access_key]
|
213
|
+
end
|
214
|
+
|
215
|
+
def wasabi_access_key=(value)
|
216
|
+
@attributes[:wasabi_access_key] = value
|
217
|
+
end
|
218
|
+
|
201
219
|
# string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
202
220
|
def rackspace_username
|
203
221
|
@attributes[:rackspace_username]
|
@@ -297,6 +315,15 @@ module Files
|
|
297
315
|
@attributes[:s3_compatible_endpoint] = value
|
298
316
|
end
|
299
317
|
|
318
|
+
# string - S3-compatible Access Key.
|
319
|
+
def s3_compatible_access_key
|
320
|
+
@attributes[:s3_compatible_access_key]
|
321
|
+
end
|
322
|
+
|
323
|
+
def s3_compatible_access_key=(value)
|
324
|
+
@attributes[:s3_compatible_access_key] = value
|
325
|
+
end
|
326
|
+
|
300
327
|
# boolean - `true` if remote server only accepts connections from dedicated IPs
|
301
328
|
def enable_dedicated_ips
|
302
329
|
@attributes[:enable_dedicated_ips]
|
@@ -306,15 +333,6 @@ module Files
|
|
306
333
|
@attributes[:enable_dedicated_ips] = value
|
307
334
|
end
|
308
335
|
|
309
|
-
# string - AWS Access Key.
|
310
|
-
def aws_access_key
|
311
|
-
@attributes[:aws_access_key]
|
312
|
-
end
|
313
|
-
|
314
|
-
def aws_access_key=(value)
|
315
|
-
@attributes[:aws_access_key] = value
|
316
|
-
end
|
317
|
-
|
318
336
|
# string - AWS secret key.
|
319
337
|
def aws_secret_key
|
320
338
|
@attributes[:aws_secret_key]
|
@@ -360,15 +378,6 @@ module Files
|
|
360
378
|
@attributes[:google_cloud_storage_credentials_json] = value
|
361
379
|
end
|
362
380
|
|
363
|
-
# string - Wasabi access key.
|
364
|
-
def wasabi_access_key
|
365
|
-
@attributes[:wasabi_access_key]
|
366
|
-
end
|
367
|
-
|
368
|
-
def wasabi_access_key=(value)
|
369
|
-
@attributes[:wasabi_access_key] = value
|
370
|
-
end
|
371
|
-
|
372
381
|
# string - Wasabi secret key.
|
373
382
|
def wasabi_secret_key
|
374
383
|
@attributes[:wasabi_secret_key]
|
@@ -423,15 +432,6 @@ module Files
|
|
423
432
|
@attributes[:azure_blob_storage_access_key] = value
|
424
433
|
end
|
425
434
|
|
426
|
-
# string - S3-compatible access key
|
427
|
-
def s3_compatible_access_key
|
428
|
-
@attributes[:s3_compatible_access_key]
|
429
|
-
end
|
430
|
-
|
431
|
-
def s3_compatible_access_key=(value)
|
432
|
-
@attributes[:s3_compatible_access_key] = value
|
433
|
-
end
|
434
|
-
|
435
435
|
# string - S3-compatible secret key
|
436
436
|
def s3_compatible_secret_key
|
437
437
|
@attributes[:s3_compatible_secret_key]
|
@@ -481,7 +481,7 @@ module Files
|
|
481
481
|
# s3_compatible_bucket - string - S3-compatible Bucket name
|
482
482
|
# s3_compatible_endpoint - string - S3-compatible endpoint
|
483
483
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
484
|
-
# s3_compatible_access_key - string - S3-compatible
|
484
|
+
# s3_compatible_access_key - string - S3-compatible Access Key.
|
485
485
|
# s3_compatible_secret_key - string - S3-compatible secret key
|
486
486
|
def update(params = {})
|
487
487
|
params ||= {}
|
@@ -627,7 +627,7 @@ module Files
|
|
627
627
|
# s3_compatible_bucket - string - S3-compatible Bucket name
|
628
628
|
# s3_compatible_endpoint - string - S3-compatible endpoint
|
629
629
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
630
|
-
# s3_compatible_access_key - string - S3-compatible
|
630
|
+
# s3_compatible_access_key - string - S3-compatible Access Key.
|
631
631
|
# s3_compatible_secret_key - string - S3-compatible secret key
|
632
632
|
def self.create(params = {}, options = {})
|
633
633
|
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)
|
@@ -714,7 +714,7 @@ module Files
|
|
714
714
|
# s3_compatible_bucket - string - S3-compatible Bucket name
|
715
715
|
# s3_compatible_endpoint - string - S3-compatible endpoint
|
716
716
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
717
|
-
# s3_compatible_access_key - string - S3-compatible
|
717
|
+
# s3_compatible_access_key - string - S3-compatible Access Key.
|
718
718
|
# s3_compatible_secret_key - string - S3-compatible secret key
|
719
719
|
def self.update(id, params = {}, options = {})
|
720
720
|
params ||= {}
|
@@ -24,6 +24,16 @@ module Files
|
|
24
24
|
@attributes[:user_id]
|
25
25
|
end
|
26
26
|
|
27
|
+
# boolean - true if this change was performed by Files.com support.
|
28
|
+
def user_is_files_support
|
29
|
+
@attributes[:user_is_files_support]
|
30
|
+
end
|
31
|
+
|
32
|
+
# string - The username of the user responsible for this change
|
33
|
+
def username
|
34
|
+
@attributes[:username]
|
35
|
+
end
|
36
|
+
|
27
37
|
# Parameters:
|
28
38
|
# 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
29
39
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
data/lib/files.com.rb
CHANGED
@@ -86,6 +86,7 @@ require "files.com/models/priority"
|
|
86
86
|
require "files.com/models/project"
|
87
87
|
require "files.com/models/public_ip_address"
|
88
88
|
require "files.com/models/public_key"
|
89
|
+
require "files.com/models/remote_bandwidth_snapshot"
|
89
90
|
require "files.com/models/remote_server"
|
90
91
|
require "files.com/models/request"
|
91
92
|
require "files.com/models/session"
|
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.244
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- docs/project.md
|
147
147
|
- docs/public_ip_address.md
|
148
148
|
- docs/public_key.md
|
149
|
+
- docs/remote_bandwidth_snapshot.md
|
149
150
|
- docs/remote_server.md
|
150
151
|
- docs/request.md
|
151
152
|
- docs/session.md
|
@@ -227,6 +228,7 @@ files:
|
|
227
228
|
- lib/files.com/models/project.rb
|
228
229
|
- lib/files.com/models/public_ip_address.rb
|
229
230
|
- lib/files.com/models/public_key.rb
|
231
|
+
- lib/files.com/models/remote_bandwidth_snapshot.rb
|
230
232
|
- lib/files.com/models/remote_server.rb
|
231
233
|
- lib/files.com/models/request.rb
|
232
234
|
- lib/files.com/models/session.rb
|