files.com 1.1.282 → 1.1.283

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: d9406f38cb6bde4af6c2f9ceb7701d7ec8dec08567cbd285d6d4625ba01dafb0
4
- data.tar.gz: 55ad58d9c15b6edc56a78f2cf91e2f10974701dad5348f94b5941ad98d784dcf
3
+ metadata.gz: 4f0f87feb1ff29fbb4bf594b654ac77b55bd3c3d771253d4a488a2fd8ebf3909
4
+ data.tar.gz: 0c10e3aee4976a4beceaa2633afa2088411627f8c398eb25fee487c09e6deea1
5
5
  SHA512:
6
- metadata.gz: 88bb48032e3d7cd4473dc3e25f581392b7450546c1fd8c92938b0824c4973ed0b5043043abad5632c0c393f637ba3cc3b0a3542bdb3a894693cac9d25c0bfbd6
7
- data.tar.gz: 5348e54f4683c2b78e44be056746fc47590344d3199220c9589072c87a6e082d0bd2a2398196dfc2e56240221c1dad739bb88167fcacd2fa3dc3dddfdd2dce8c
6
+ metadata.gz: 120feb78a7f6d69a9a707aa592dd7f66e4d81e852b27114322c84b525732141ae37d23cc4f604d0bb1b8ee2a40cfd64e8f4ffaa0bbd5ea949f096fae1c48eabd
7
+ data.tar.gz: fcc6ae3de360a972e6fc84b7c5509c4cf4a746621c6eaca33383e3f6197b64c8de61418108e199a3f9eaa46f31d0ee284115a8ea1e60887678aeb56122168cb1
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.282
1
+ 1.1.283
@@ -9,6 +9,7 @@
9
9
  "fall": 1,
10
10
  "health_check_enabled": true,
11
11
  "health_check_type": "active",
12
+ "id": 1,
12
13
  "interval": 60,
13
14
  "min_free_cpu": 1.0,
14
15
  "min_free_mem": 1.0,
@@ -27,6 +28,7 @@
27
28
  * `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
28
29
  * `health_check_enabled` (boolean): True if health checks are enabled for this backend.
29
30
  * `health_check_type` (string): Type of health check to perform.
31
+ * `id` (int64): Unique identifier for this backend.
30
32
  * `interval` (int64): Interval in seconds between health checks.
31
33
  * `min_free_cpu` (double): Minimum free CPU percentage required for this backend to be considered healthy.
32
34
  * `min_free_mem` (double): Minimum free memory percentage required for this backend to be considered healthy.
@@ -37,7 +39,6 @@
37
39
  * `rise` (int64): Number of consecutive successes before considering the backend healthy.
38
40
  * `status` (string): Status of this backend.
39
41
  * `undergoing_maintenance` (boolean): True if this backend is undergoing maintenance.
40
- * `id` (int64): Remote Mount Backend ID.
41
42
 
42
43
 
43
44
  ---
@@ -52,6 +53,7 @@ Files::RemoteMountBackend.list
52
53
 
53
54
  * `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.
54
55
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
55
57
 
56
58
 
57
59
  ---
@@ -54,6 +54,15 @@ module Files
54
54
  @attributes[:health_check_type] = value
55
55
  end
56
56
 
57
+ # int64 - Unique identifier for this backend.
58
+ def id
59
+ @attributes[:id]
60
+ end
61
+
62
+ def id=(value)
63
+ @attributes[:id] = value
64
+ end
65
+
57
66
  # int64 - Interval in seconds between health checks.
58
67
  def interval
59
68
  @attributes[:interval]
@@ -144,15 +153,6 @@ module Files
144
153
  @attributes[:undergoing_maintenance] = value
145
154
  end
146
155
 
147
- # int64 - Remote Mount Backend ID.
148
- def id
149
- @attributes[:id]
150
- end
151
-
152
- def id=(value)
153
- @attributes[:id] = value
154
- end
155
-
156
156
  # Reset backend status to healthy
157
157
  def reset_status(params = {})
158
158
  params ||= {}
@@ -229,9 +229,11 @@ module Files
229
229
  # Parameters:
230
230
  # 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.
231
231
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
232
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
232
233
  def self.list(params = {}, options = {})
233
234
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
234
235
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
236
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
235
237
 
236
238
  List.new(RemoteMountBackend, params) do
237
239
  Api.send_request("/remote_mount_backends", :get, params, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.282"
4
+ VERSION = "1.1.283"
5
5
  end
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.282
4
+ version: 1.1.283
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com