files.com 1.1.124 → 1.1.126

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: ff59b7f5c8c6a3dd39fb230462b8f68a5796a2e4e98b232b582eee15ab9e942f
4
- data.tar.gz: d0e3d026a2223ff2750cbb20b1c61c765c33248888b4db6d0fb0385eca25b434
3
+ metadata.gz: 1af7f5aeb286159ead98958126ed0aed2c003d8c85a8031b39fa10bdc892f67e
4
+ data.tar.gz: 445284a6ed9010d4aaf97fbdbc84914214950d9b7069f3fa3898f0e8e515d5a9
5
5
  SHA512:
6
- metadata.gz: 2c3d0c83f31a02be70ec65f4e9abc6d8a8f3518afa46856274cd62365a83d39673ce30b93399a4fd395a131e3a339e4dad6128f57bf28f6fcb65ba897fcbab59
7
- data.tar.gz: a07a4f2c07f96f3d292c25ddd54108dbe98ed767e85543b08dd7d0a6af1e1b3e45c837c6932554bf7f9230ba2c2f16d42d2807af3382144a7574899b83fbb674
6
+ metadata.gz: daff5eaddee978f6ff8727333bd4f42bfb21d0d4d852d43190bb50093f98ed6451806cb3f00dbda1e3c690fd5d9c03283416ecbfaafea869228c4599c9459d5b
7
+ data.tar.gz: d0d369bd9b57436154c5f977ad451d26a7b2295f820e952e43d4f59a26406eb3ccacbb7deea6c7421772dba5c241042fd0e62aa4e3183a68b5f8feb3508becec
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.124
1
+ 1.1.126
@@ -11,6 +11,7 @@
11
11
  "created_at": "2000-01-01T01:00:00Z",
12
12
  "body_url": "example",
13
13
  "folder_behavior_id": 1,
14
+ "siem_http_destination_id": 1,
14
15
  "successful_files": 1,
15
16
  "errored_files": 1,
16
17
  "bytes_synced": 1,
@@ -27,6 +28,7 @@
27
28
  * `created_at` (date-time): External event create date/time
28
29
  * `body_url` (string): Link to log file.
29
30
  * `folder_behavior_id` (int64): Folder Behavior ID
31
+ * `siem_http_destination_id` (int64): SIEM HTTP Destination ID.
30
32
  * `successful_files` (int64): For sync events, the number of files handled successfully.
31
33
  * `errored_files` (int64): For sync events, the number of files that encountered errors.
32
34
  * `bytes_synced` (int64): For sync events, the total number of bytes synced.
@@ -47,8 +49,8 @@ Files::ExternalEvent.list
47
49
 
48
50
  * `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.
49
51
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
50
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
51
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
52
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `event_type`, `created_at` or `status`.
53
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
52
54
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
53
55
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
54
56
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
@@ -322,6 +322,8 @@ module Files
322
322
  "User-Agent" => user_agent,
323
323
  "Content-Type" => "application/x-www-form-urlencoded",
324
324
  }
325
+
326
+ headers.merge!(Files.default_headers) if Files.default_headers
325
327
  headers["X-FilesAPI-Key"] = api_key if api_key
326
328
  headers["X-FilesAPI-Auth"] = session_id if session_id
327
329
 
@@ -68,6 +68,15 @@ module Files
68
68
  @attributes[:folder_behavior_id] = value
69
69
  end
70
70
 
71
+ # int64 - SIEM HTTP Destination ID.
72
+ def siem_http_destination_id
73
+ @attributes[:siem_http_destination_id]
74
+ end
75
+
76
+ def siem_http_destination_id=(value)
77
+ @attributes[:siem_http_destination_id] = value
78
+ end
79
+
71
80
  # int64 - For sync events, the number of files handled successfully.
72
81
  def successful_files
73
82
  @attributes[:successful_files]
@@ -136,8 +145,8 @@ module Files
136
145
  # Parameters:
137
146
  # 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.
138
147
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
139
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
140
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
148
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `siem_http_destination_id`, `event_type`, `created_at` or `status`.
149
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type, status ]`, `[ created_at, event_type ]` or `[ created_at, status ]`.
141
150
  # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
142
151
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
143
152
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.124"
4
+ VERSION = "1.1.126"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -138,6 +138,7 @@ module Files
138
138
  @logger = nil
139
139
  @proxy = nil
140
140
  @session_id = nil
141
+ @default_headers = nil
141
142
 
142
143
  @max_network_retries = 3
143
144
  @max_network_retry_delay = 2
@@ -147,7 +148,7 @@ module Files
147
148
  @read_timeout = 80
148
149
 
149
150
  class << self
150
- attr_accessor :api_key, :base_url, :initial_network_retry_delay, :max_network_retry_delay, :open_timeout, :read_timeout, :proxy, :session_id
151
+ attr_accessor :api_key, :base_url, :default_headers, :initial_network_retry_delay, :max_network_retry_delay, :open_timeout, :read_timeout, :proxy, :session_id
151
152
  end
152
153
 
153
154
  # map to the same values as the standard library's logger
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.1.124
4
+ version: 1.1.126
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-28 00:00:00.000000000 Z
11
+ date: 2024-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable