files.com 1.1.702 → 1.1.703

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0acf3ca829b1f589c4215997d54340fdd629d1c6c2dd1d0721867177ffd7ad19
4
- data.tar.gz: d0aa06a6630c68a3c4f3dcb00113887626e797cd0ea58818566d57fdef0fbb66
3
+ metadata.gz: d21c10fb02cba890d2adc0bbafc9f55a5c76301a087f687211fb2fc35c5f918e
4
+ data.tar.gz: 58312e4a9ab5afbc1700da689042ac0ee74e6af6123d99f0d7087e14f3268e1e
5
5
  SHA512:
6
- metadata.gz: b1f03566c17c5599b8642c7c6d2267cfd5d9809e4f55b2d88222a53a654f1ccbd54fb5bc6e349fd0e6b3462f21a124946cfb22ec43d399c1b8330cb6a85b664d
7
- data.tar.gz: aea8520b418b619f5660eafb44e2745b42a0c4506afc3d2ec4f24368c8a4d95615b18a0475b771816b62262bbcecae1ca5a3f131cbd19811e8cf59c6aefcd28e
6
+ metadata.gz: e77d1a15b6ed2f10e48614d1fc64000bf675ba82d129bed38d497cabd9f8e9539711ec1495f08288b8f6fa7318249e649bb10ecee03e076372b28d1b5c0b3302
7
+ data.tar.gz: 7bf7b242c71b7217b5d56cda007f3b5b699ad7af9705367eb72cada949d4cb34edab19291ac8d60a8ab566f5ab987db4091ce082f0862499c02d19f56febbdeb
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.702
1
+ 1.1.703
@@ -0,0 +1,27 @@
1
+ # AgentNode
2
+
3
+ ## Example AgentNode Object
4
+
5
+ ```
6
+ {
7
+ "node_id": "example",
8
+ "name": "example",
9
+ "hostname": "example",
10
+ "availability_role": "example",
11
+ "connection_status": "example",
12
+ "is_default": true,
13
+ "agent_version": "example",
14
+ "direct_transfer_available": true,
15
+ "last_seen_at": "2000-01-01T01:00:00Z"
16
+ }
17
+ ```
18
+
19
+ * `node_id` (string): Stable Agent installation ID
20
+ * `name` (string): Customer-configured Agent node name
21
+ * `hostname` (string): Hostname reported by the Agent
22
+ * `availability_role` (string): Configured traffic preference
23
+ * `connection_status` (string): Whether this node is currently available for traffic
24
+ * `is_default` (boolean): Whether this node is the current default route for new unscoped work
25
+ * `agent_version` (string): Agent version reported by this node
26
+ * `direct_transfer_available` (boolean): Whether the proxy recently validated a direct connection to this Agent node. False means direct transfers are enabled but not currently available; null means disabled or unsupported.
27
+ * `last_seen_at` (date-time): Most recent successful node observation
@@ -6,7 +6,7 @@
6
6
  {
7
7
  "timestamp": "2000-01-01T01:00:00Z",
8
8
  "endpoint": "example",
9
- "version": 1,
9
+ "version": 1.0,
10
10
  "request_ip": "example",
11
11
  "request_method": "example",
12
12
  "error_type": "example",
@@ -21,7 +21,7 @@
21
21
 
22
22
  * `timestamp` (date-time): Start Time of Action. Deprecrated: Use created_at.
23
23
  * `endpoint` (string): Name of API Endpoint
24
- * `version` (int64): Exavault API Version
24
+ * `version` (double): Exavault API Version
25
25
  * `request_ip` (string): IP of requesting client
26
26
  * `request_method` (string): HTTP Method
27
27
  * `error_type` (string): Error type, if applicable
@@ -221,6 +221,19 @@ Files::RemoteServer.find(id)
221
221
  * `id` (int64): Required - Remote Server ID.
222
222
 
223
223
 
224
+ ---
225
+
226
+ ## List Files.com Agent nodes
227
+
228
+ ```
229
+ Files::RemoteServer.agent_nodes(id)
230
+ ```
231
+
232
+ ### Parameters
233
+
234
+ * `id` (int64): Required - Remote Server ID.
235
+
236
+
224
237
  ---
225
238
 
226
239
  ## Download configuration file (required for some Remote Server integrations, such as the Files.com Agent)
@@ -613,6 +626,21 @@ Files::RemoteServer.delete(id)
613
626
  * `id` (int64): Required - Remote Server ID.
614
627
 
615
628
 
629
+ ---
630
+
631
+ ## List Files.com Agent nodes
632
+
633
+ ```
634
+ remote_server = Files::RemoteServer.find(id)
635
+
636
+ remote_server.agent_nodes
637
+ ```
638
+
639
+ ### Parameters
640
+
641
+ * `id` (int64): Required - Remote Server ID.
642
+
643
+
616
644
  ---
617
645
 
618
646
  ## Push update to Files Agent
@@ -9,6 +9,7 @@
9
9
  "private_key": "example",
10
10
  "subdomain": "example",
11
11
  "root": "C:\\Users\\",
12
+ "node_name": "example",
12
13
  "follow_links": true,
13
14
  "prefer_protocol": "example",
14
15
  "dns": "example",
@@ -37,6 +38,7 @@
37
38
  * `private_key` (string): The private key for the agent
38
39
  * `subdomain` (string): Files.com subdomain site name
39
40
  * `root` (string): The root directory for the agent
41
+ * `node_name` (string): Optional customer-facing name for this Agent installation
40
42
  * `follow_links` (boolean): Follow symlinks when traversing directories
41
43
  * `prefer_protocol` (string): Preferred network protocol ['udp', 'tcp'] (default udp)
42
44
  * `dns` (string): DNS lookup method ['auto','doh','system'] (default auto)
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class AgentNode
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Stable Agent installation ID
13
+ def node_id
14
+ @attributes[:node_id]
15
+ end
16
+
17
+ # string - Customer-configured Agent node name
18
+ def name
19
+ @attributes[:name]
20
+ end
21
+
22
+ # string - Hostname reported by the Agent
23
+ def hostname
24
+ @attributes[:hostname]
25
+ end
26
+
27
+ # string - Configured traffic preference
28
+ def availability_role
29
+ @attributes[:availability_role]
30
+ end
31
+
32
+ # string - Whether this node is currently available for traffic
33
+ def connection_status
34
+ @attributes[:connection_status]
35
+ end
36
+
37
+ # boolean - Whether this node is the current default route for new unscoped work
38
+ def is_default
39
+ @attributes[:is_default]
40
+ end
41
+
42
+ # string - Agent version reported by this node
43
+ def agent_version
44
+ @attributes[:agent_version]
45
+ end
46
+
47
+ # boolean - Whether the proxy recently validated a direct connection to this Agent node. False means direct transfers are enabled but not currently available; null means disabled or unsupported.
48
+ def direct_transfer_available
49
+ @attributes[:direct_transfer_available]
50
+ end
51
+
52
+ # date-time - Most recent successful node observation
53
+ def last_seen_at
54
+ @attributes[:last_seen_at]
55
+ end
56
+ end
57
+ end
@@ -19,7 +19,7 @@ module Files
19
19
  @attributes[:endpoint]
20
20
  end
21
21
 
22
- # int64 - Exavault API Version
22
+ # double - Exavault API Version
23
23
  def version
24
24
  @attributes[:version]
25
25
  end
@@ -918,6 +918,17 @@ module Files
918
918
  @attributes[:files_api_key] = value
919
919
  end
920
920
 
921
+ # List Files.com Agent nodes
922
+ def agent_nodes(params = {})
923
+ params ||= {}
924
+ params[:id] = @attributes[:id]
925
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
926
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
927
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
928
+
929
+ Api.send_request("/remote_servers/#{@attributes[:id]}/agent_nodes", :get, params, @options)
930
+ end
931
+
921
932
  # Push update to Files Agent
922
933
  def agent_push_update(params = {})
923
934
  params ||= {}
@@ -1198,6 +1209,17 @@ module Files
1198
1209
  find(id, params, options)
1199
1210
  end
1200
1211
 
1212
+ # List Files.com Agent nodes
1213
+ def self.agent_nodes(id, params = {}, options = {})
1214
+ params ||= {}
1215
+ params[:id] = id
1216
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
1217
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
1218
+
1219
+ response, options = Api.send_request("/remote_servers/#{params[:id]}/agent_nodes", :get, params, options)
1220
+ AgentNode.new(response.data, options)
1221
+ end
1222
+
1201
1223
  # Parameters:
1202
1224
  # id (required) - int64 - Remote Server ID.
1203
1225
  def self.find_configuration_file(id, params = {}, options = {})
@@ -34,6 +34,11 @@ module Files
34
34
  @attributes[:root]
35
35
  end
36
36
 
37
+ # string - Optional customer-facing name for this Agent installation
38
+ def node_name
39
+ @attributes[:node_name]
40
+ end
41
+
37
42
  # boolean - Follow symlinks when traversing directories
38
43
  def follow_links
39
44
  @attributes[:follow_links]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.702"
4
+ VERSION = "1.1.703"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -37,6 +37,7 @@ require "files.com/models/action"
37
37
  require "files.com/models/action_log"
38
38
  require "files.com/models/action_notification_export"
39
39
  require "files.com/models/action_notification_export_result"
40
+ require "files.com/models/agent_node"
40
41
  require "files.com/models/agent_push_update"
41
42
  require "files.com/models/ai_assistant_personality"
42
43
  require "files.com/models/ai_task"
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.702
4
+ version: 1.1.703
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
@@ -175,6 +175,7 @@ files:
175
175
  - docs/action_log.md
176
176
  - docs/action_notification_export.md
177
177
  - docs/action_notification_export_result.md
178
+ - docs/agent_node.md
178
179
  - docs/agent_push_update.md
179
180
  - docs/ai_assistant_personality.md
180
181
  - docs/ai_task.md
@@ -327,6 +328,7 @@ files:
327
328
  - lib/files.com/models/action_log.rb
328
329
  - lib/files.com/models/action_notification_export.rb
329
330
  - lib/files.com/models/action_notification_export_result.rb
331
+ - lib/files.com/models/agent_node.rb
330
332
  - lib/files.com/models/agent_push_update.rb
331
333
  - lib/files.com/models/ai_assistant_personality.rb
332
334
  - lib/files.com/models/ai_task.rb