files.com 1.1.422 → 1.1.423
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/agent_push_update.md +21 -0
- data/docs/bundle.md +1 -1
- data/docs/remote_server.md +32 -0
- data/lib/files.com/models/agent_push_update.rb +42 -0
- data/lib/files.com/models/bundle.rb +1 -1
- data/lib/files.com/models/remote_server.rb +40 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 013fa9be24a444e9b1aa291dbdb4751d9dc7687d80555b050969df72f62364a2
|
|
4
|
+
data.tar.gz: ef583c6d9a372791a252e884541118f27cb275e659c81222d47d6fa7493308ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8cbda2026d26bac003ca586f71f95be77ce476d5cbb2a7dc7881a94297c8aa7a499020653282cbf69aa791b81aa226986a5db494b44972af9db786d807b81fd
|
|
7
|
+
data.tar.gz: 6d010fae2975553add0ed6b898d1654b48bbcaab1d3c80fcee64abd28e06585f4f28bee86811c03d3a06f697165edeb8977f6c9f53d18fc778740defffcede3a
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.423
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# AgentPushUpdate
|
|
2
|
+
|
|
3
|
+
## Example AgentPushUpdate Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"version": "example",
|
|
8
|
+
"message": "example",
|
|
9
|
+
"current_version": "example",
|
|
10
|
+
"pending_version": "example",
|
|
11
|
+
"last_error": "example",
|
|
12
|
+
"error": "example"
|
|
13
|
+
}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
* `version` (string): Pushed agent version
|
|
17
|
+
* `message` (string): Update accepted or reason
|
|
18
|
+
* `current_version` (string): Installed agent version
|
|
19
|
+
* `pending_version` (string): Pending agent version or null
|
|
20
|
+
* `last_error` (string): Last error message or null
|
|
21
|
+
* `error` (string): Error code
|
data/docs/bundle.md
CHANGED
|
@@ -152,7 +152,7 @@ Files::Bundle.list(
|
|
|
152
152
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
153
153
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
154
154
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
155
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
155
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
156
156
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
157
157
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
158
158
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
data/docs/remote_server.md
CHANGED
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
"files_agent_root": "example",
|
|
53
53
|
"files_agent_api_token": "example",
|
|
54
54
|
"files_agent_version": "example",
|
|
55
|
+
"files_agent_up_to_date": true,
|
|
56
|
+
"files_agent_latest_version": "example",
|
|
55
57
|
"outbound_agent_id": 1,
|
|
56
58
|
"filebase_bucket": "my-bucket",
|
|
57
59
|
"filebase_access_key": "example",
|
|
@@ -114,6 +116,8 @@
|
|
|
114
116
|
* `files_agent_root` (string): Agent local root path
|
|
115
117
|
* `files_agent_api_token` (string): Files Agent API Token
|
|
116
118
|
* `files_agent_version` (string): Files Agent version
|
|
119
|
+
* `files_agent_up_to_date` (boolean): If true, the Files Agent is up to date.
|
|
120
|
+
* `files_agent_latest_version` (string): Latest available Files Agent version
|
|
117
121
|
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
118
122
|
* `filebase_bucket` (string): Filebase: Bucket name
|
|
119
123
|
* `filebase_access_key` (string): Filebase: Access Key.
|
|
@@ -322,6 +326,19 @@ Files::RemoteServer.create(
|
|
|
322
326
|
* `wasabi_region` (string): Wasabi: Region
|
|
323
327
|
|
|
324
328
|
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Push update to Files Agent
|
|
332
|
+
|
|
333
|
+
```
|
|
334
|
+
Files::RemoteServer.agent_push_update(id)
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Parameters
|
|
338
|
+
|
|
339
|
+
* `id` (int64): Required - Remote Server ID.
|
|
340
|
+
|
|
341
|
+
|
|
325
342
|
---
|
|
326
343
|
|
|
327
344
|
## Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
@@ -505,6 +522,21 @@ Files::RemoteServer.delete(id)
|
|
|
505
522
|
* `id` (int64): Required - Remote Server ID.
|
|
506
523
|
|
|
507
524
|
|
|
525
|
+
---
|
|
526
|
+
|
|
527
|
+
## Push update to Files Agent
|
|
528
|
+
|
|
529
|
+
```
|
|
530
|
+
remote_server = Files::RemoteServer.find(id)
|
|
531
|
+
|
|
532
|
+
remote_server.agent_push_update
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
### Parameters
|
|
536
|
+
|
|
537
|
+
* `id` (int64): Required - Remote Server ID.
|
|
538
|
+
|
|
539
|
+
|
|
508
540
|
---
|
|
509
541
|
|
|
510
542
|
## Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class AgentPushUpdate
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# string - Pushed agent version
|
|
13
|
+
def version
|
|
14
|
+
@attributes[:version]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - Update accepted or reason
|
|
18
|
+
def message
|
|
19
|
+
@attributes[:message]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# string - Installed agent version
|
|
23
|
+
def current_version
|
|
24
|
+
@attributes[:current_version]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# string - Pending agent version or null
|
|
28
|
+
def pending_version
|
|
29
|
+
@attributes[:pending_version]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# string - Last error message or null
|
|
33
|
+
def last_error
|
|
34
|
+
@attributes[:last_error]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# string - Error code
|
|
38
|
+
def error
|
|
39
|
+
@attributes[:error]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -519,7 +519,7 @@ module Files
|
|
|
519
519
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
520
520
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
521
521
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
522
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
522
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
523
523
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
524
524
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
525
525
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -441,6 +441,24 @@ module Files
|
|
|
441
441
|
@attributes[:files_agent_version] = value
|
|
442
442
|
end
|
|
443
443
|
|
|
444
|
+
# boolean - If true, the Files Agent is up to date.
|
|
445
|
+
def files_agent_up_to_date
|
|
446
|
+
@attributes[:files_agent_up_to_date]
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
def files_agent_up_to_date=(value)
|
|
450
|
+
@attributes[:files_agent_up_to_date] = value
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# string - Latest available Files Agent version
|
|
454
|
+
def files_agent_latest_version
|
|
455
|
+
@attributes[:files_agent_latest_version]
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
def files_agent_latest_version=(value)
|
|
459
|
+
@attributes[:files_agent_latest_version] = value
|
|
460
|
+
end
|
|
461
|
+
|
|
444
462
|
# int64 - Route traffic to outbound on a files-agent
|
|
445
463
|
def outbound_agent_id
|
|
446
464
|
@attributes[:outbound_agent_id]
|
|
@@ -711,6 +729,17 @@ module Files
|
|
|
711
729
|
@attributes[:wasabi_secret_key] = value
|
|
712
730
|
end
|
|
713
731
|
|
|
732
|
+
# Push update to Files Agent
|
|
733
|
+
def agent_push_update(params = {})
|
|
734
|
+
params ||= {}
|
|
735
|
+
params[:id] = @attributes[:id]
|
|
736
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
737
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
738
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
739
|
+
|
|
740
|
+
Api.send_request("/remote_servers/#{@attributes[:id]}/agent_push_update", :post, params, @options)
|
|
741
|
+
end
|
|
742
|
+
|
|
714
743
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
715
744
|
#
|
|
716
745
|
# Parameters:
|
|
@@ -1106,6 +1135,17 @@ module Files
|
|
|
1106
1135
|
RemoteServer.new(response.data, options)
|
|
1107
1136
|
end
|
|
1108
1137
|
|
|
1138
|
+
# Push update to Files Agent
|
|
1139
|
+
def self.agent_push_update(id, params = {}, options = {})
|
|
1140
|
+
params ||= {}
|
|
1141
|
+
params[:id] = id
|
|
1142
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
1143
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
1144
|
+
|
|
1145
|
+
response, options = Api.send_request("/remote_servers/#{params[:id]}/agent_push_update", :post, params, options)
|
|
1146
|
+
AgentPushUpdate.new(response.data, options)
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1109
1149
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
1110
1150
|
#
|
|
1111
1151
|
# Parameters:
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -36,6 +36,7 @@ require "files.com/models/account_line_item"
|
|
|
36
36
|
require "files.com/models/action"
|
|
37
37
|
require "files.com/models/action_notification_export"
|
|
38
38
|
require "files.com/models/action_notification_export_result"
|
|
39
|
+
require "files.com/models/agent_push_update"
|
|
39
40
|
require "files.com/models/api_key"
|
|
40
41
|
require "files.com/models/api_request_log"
|
|
41
42
|
require "files.com/models/app"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.423
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -160,6 +160,7 @@ files:
|
|
|
160
160
|
- docs/action.md
|
|
161
161
|
- docs/action_notification_export.md
|
|
162
162
|
- docs/action_notification_export_result.md
|
|
163
|
+
- docs/agent_push_update.md
|
|
163
164
|
- docs/api_key.md
|
|
164
165
|
- docs/api_request_log.md
|
|
165
166
|
- docs/app.md
|
|
@@ -275,6 +276,7 @@ files:
|
|
|
275
276
|
- lib/files.com/models/action.rb
|
|
276
277
|
- lib/files.com/models/action_notification_export.rb
|
|
277
278
|
- lib/files.com/models/action_notification_export_result.rb
|
|
279
|
+
- lib/files.com/models/agent_push_update.rb
|
|
278
280
|
- lib/files.com/models/api_key.rb
|
|
279
281
|
- lib/files.com/models/api_request_log.rb
|
|
280
282
|
- lib/files.com/models/app.rb
|