files.com 1.0.240 → 1.0.241
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 +4 -4
- data/_VERSION +1 -1
- data/docs/bandwidth_snapshot.md +1 -5
- data/docs/remote_bandwidth_snapshot.md +42 -0
- data/docs/site.md +1 -1
- data/docs/user.md +1 -1
- 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.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: 9988977331e15b6c955ceb1f186c653ceb4c6a70a1fb8ddea3744e056b109e0e
|
4
|
+
data.tar.gz: 7127cf3b35e224176f954e7769398c6208d1850519afd5f7cba885c7500ed884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2dbe285fcac050bdaa7c94416eb0eec54ea0bb454ee27c9ff92081d4b36ab3eaed8431aeccc3d99561e11bd3f50bc1137cea3a84580d667e252a4ce8a93ba0d
|
7
|
+
data.tar.gz: b2cbafeeb430ac23e20cd7745d17f3405bfaeb6d67eeb5ce26a8f3d97510374314390b17fffbba6d09e5f3464f5d0c8ed4038710a90262a7181c3c5a994b1670
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.241
|
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/site.md
CHANGED
data/docs/user.md
CHANGED
@@ -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
|
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.241
|
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-06 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
|