files.com 1.1.286 → 1.1.287
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/remote_mount_backend.md +17 -21
- data/lib/files.com/models/remote_mount_backend.rb +14 -24
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ec9edb89c98fa49bc48ae8efe6d8ea17b546c8db0697963a691ef1a72a9c7e7
|
4
|
+
data.tar.gz: 972eb5230dcc87c10a63f20a487a648dcf3cdb3364455aa369bf45b7fd32736c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 662a5627df6bfa210d0546d845e5437e122aa674d22c5aa905feffdfd4bdd0b60101814c5734e93437d82adf74010a4f4435d694c51201cca1772fa20d7aa406
|
7
|
+
data.tar.gz: 1d00a1aa4f7000caf9caaae6df5fda1d9a019e6fb12b272c98be62367100ab5abad9dd8f2ab63a4dd8c48617da7f2250065b44dfade2712125be2fb2499fbfe7
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.287
|
@@ -75,9 +75,6 @@ Files::RemoteMountBackend.find(id)
|
|
75
75
|
|
76
76
|
```
|
77
77
|
Files::RemoteMountBackend.create(
|
78
|
-
canary_file_path: "backend1.txt",
|
79
|
-
remote_server_mount_id: 1,
|
80
|
-
remote_server_id: 1,
|
81
78
|
enabled: true,
|
82
79
|
fall: 1,
|
83
80
|
health_check_enabled: true,
|
@@ -87,15 +84,15 @@ Files::RemoteMountBackend.create(
|
|
87
84
|
min_free_mem: 1.0,
|
88
85
|
priority: 1,
|
89
86
|
remote_path: "/path/on/remote",
|
90
|
-
rise: 1
|
87
|
+
rise: 1,
|
88
|
+
canary_file_path: "backend1.txt",
|
89
|
+
remote_server_mount_id: 1,
|
90
|
+
remote_server_id: 1
|
91
91
|
)
|
92
92
|
```
|
93
93
|
|
94
94
|
### Parameters
|
95
95
|
|
96
|
-
* `canary_file_path` (string): Required - Path to the canary file used for health checks.
|
97
|
-
* `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
|
98
|
-
* `remote_server_id` (int64): Required - The remote server that this backend is associated with.
|
99
96
|
* `enabled` (boolean): True if this backend is enabled.
|
100
97
|
* `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
|
101
98
|
* `health_check_enabled` (boolean): True if health checks are enabled for this backend.
|
@@ -106,6 +103,9 @@ Files::RemoteMountBackend.create(
|
|
106
103
|
* `priority` (int64): Priority of this backend.
|
107
104
|
* `remote_path` (string): Path on the remote server to treat as the root of this mount.
|
108
105
|
* `rise` (int64): Number of consecutive successes before considering the backend healthy.
|
106
|
+
* `canary_file_path` (string): Required - Path to the canary file used for health checks.
|
107
|
+
* `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
|
108
|
+
* `remote_server_id` (int64): Required - The remote server that this backend is associated with.
|
109
109
|
|
110
110
|
|
111
111
|
---
|
@@ -127,9 +127,6 @@ Files::RemoteMountBackend.reset_status(id)
|
|
127
127
|
|
128
128
|
```
|
129
129
|
Files::RemoteMountBackend.update(id,
|
130
|
-
canary_file_path: "backend1.txt",
|
131
|
-
remote_server_mount_id: 1,
|
132
|
-
remote_server_id: 1,
|
133
130
|
enabled: true,
|
134
131
|
fall: 1,
|
135
132
|
health_check_enabled: true,
|
@@ -139,16 +136,15 @@ Files::RemoteMountBackend.update(id,
|
|
139
136
|
min_free_mem: 1.0,
|
140
137
|
priority: 1,
|
141
138
|
remote_path: "/path/on/remote",
|
142
|
-
rise: 1
|
139
|
+
rise: 1,
|
140
|
+
canary_file_path: "backend1.txt",
|
141
|
+
remote_server_id: 1
|
143
142
|
)
|
144
143
|
```
|
145
144
|
|
146
145
|
### Parameters
|
147
146
|
|
148
147
|
* `id` (int64): Required - Remote Mount Backend ID.
|
149
|
-
* `canary_file_path` (string): Required - Path to the canary file used for health checks.
|
150
|
-
* `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
|
151
|
-
* `remote_server_id` (int64): Required - The remote server that this backend is associated with.
|
152
148
|
* `enabled` (boolean): True if this backend is enabled.
|
153
149
|
* `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
|
154
150
|
* `health_check_enabled` (boolean): True if health checks are enabled for this backend.
|
@@ -159,6 +155,8 @@ Files::RemoteMountBackend.update(id,
|
|
159
155
|
* `priority` (int64): Priority of this backend.
|
160
156
|
* `remote_path` (string): Path on the remote server to treat as the root of this mount.
|
161
157
|
* `rise` (int64): Number of consecutive successes before considering the backend healthy.
|
158
|
+
* `canary_file_path` (string): Path to the canary file used for health checks.
|
159
|
+
* `remote_server_id` (int64): The remote server that this backend is associated with.
|
162
160
|
|
163
161
|
|
164
162
|
---
|
@@ -197,9 +195,6 @@ remote_mount_backend.reset_status
|
|
197
195
|
remote_mount_backend = Files::RemoteMountBackend.find(id)
|
198
196
|
|
199
197
|
remote_mount_backend.update(
|
200
|
-
canary_file_path: "backend1.txt",
|
201
|
-
remote_server_mount_id: 1,
|
202
|
-
remote_server_id: 1,
|
203
198
|
enabled: true,
|
204
199
|
fall: 1,
|
205
200
|
health_check_enabled: true,
|
@@ -209,16 +204,15 @@ remote_mount_backend.update(
|
|
209
204
|
min_free_mem: 1.0,
|
210
205
|
priority: 1,
|
211
206
|
remote_path: "/path/on/remote",
|
212
|
-
rise: 1
|
207
|
+
rise: 1,
|
208
|
+
canary_file_path: "backend1.txt",
|
209
|
+
remote_server_id: 1
|
213
210
|
)
|
214
211
|
```
|
215
212
|
|
216
213
|
### Parameters
|
217
214
|
|
218
215
|
* `id` (int64): Required - Remote Mount Backend ID.
|
219
|
-
* `canary_file_path` (string): Required - Path to the canary file used for health checks.
|
220
|
-
* `remote_server_mount_id` (int64): Required - The mount ID of the Remote Server Mount that this backend is associated with.
|
221
|
-
* `remote_server_id` (int64): Required - The remote server that this backend is associated with.
|
222
216
|
* `enabled` (boolean): True if this backend is enabled.
|
223
217
|
* `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
|
224
218
|
* `health_check_enabled` (boolean): True if health checks are enabled for this backend.
|
@@ -229,6 +223,8 @@ remote_mount_backend.update(
|
|
229
223
|
* `priority` (int64): Priority of this backend.
|
230
224
|
* `remote_path` (string): Path on the remote server to treat as the root of this mount.
|
231
225
|
* `rise` (int64): Number of consecutive successes before considering the backend healthy.
|
226
|
+
* `canary_file_path` (string): Path to the canary file used for health checks.
|
227
|
+
* `remote_server_id` (int64): The remote server that this backend is associated with.
|
232
228
|
|
233
229
|
|
234
230
|
---
|
@@ -165,9 +165,6 @@ module Files
|
|
165
165
|
end
|
166
166
|
|
167
167
|
# Parameters:
|
168
|
-
# canary_file_path (required) - string - Path to the canary file used for health checks.
|
169
|
-
# remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
|
170
|
-
# remote_server_id (required) - int64 - The remote server that this backend is associated with.
|
171
168
|
# enabled - boolean - True if this backend is enabled.
|
172
169
|
# fall - int64 - Number of consecutive failures before considering the backend unhealthy.
|
173
170
|
# health_check_enabled - boolean - True if health checks are enabled for this backend.
|
@@ -178,24 +175,22 @@ module Files
|
|
178
175
|
# priority - int64 - Priority of this backend.
|
179
176
|
# remote_path - string - Path on the remote server to treat as the root of this mount.
|
180
177
|
# rise - int64 - Number of consecutive successes before considering the backend healthy.
|
178
|
+
# canary_file_path - string - Path to the canary file used for health checks.
|
179
|
+
# remote_server_id - int64 - The remote server that this backend is associated with.
|
181
180
|
def update(params = {})
|
182
181
|
params ||= {}
|
183
182
|
params[:id] = @attributes[:id]
|
184
183
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
185
184
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
186
|
-
raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
|
187
|
-
raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
|
188
|
-
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
189
185
|
raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
|
190
186
|
raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
|
191
187
|
raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
|
192
188
|
raise InvalidParameterError.new("Bad parameter: priority must be an Integer") if params[:priority] and !params[:priority].is_a?(Integer)
|
193
189
|
raise InvalidParameterError.new("Bad parameter: remote_path must be an String") if params[:remote_path] and !params[:remote_path].is_a?(String)
|
194
190
|
raise InvalidParameterError.new("Bad parameter: rise must be an Integer") if params[:rise] and !params[:rise].is_a?(Integer)
|
191
|
+
raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
|
192
|
+
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
195
193
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
196
|
-
raise MissingParameterError.new("Parameter missing: canary_file_path") unless params[:canary_file_path]
|
197
|
-
raise MissingParameterError.new("Parameter missing: remote_server_mount_id") unless params[:remote_server_mount_id]
|
198
|
-
raise MissingParameterError.new("Parameter missing: remote_server_id") unless params[:remote_server_id]
|
199
194
|
|
200
195
|
Api.send_request("/remote_mount_backends/#{@attributes[:id]}", :patch, params, @options)
|
201
196
|
end
|
@@ -261,9 +256,6 @@ module Files
|
|
261
256
|
end
|
262
257
|
|
263
258
|
# Parameters:
|
264
|
-
# canary_file_path (required) - string - Path to the canary file used for health checks.
|
265
|
-
# remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
|
266
|
-
# remote_server_id (required) - int64 - The remote server that this backend is associated with.
|
267
259
|
# enabled - boolean - True if this backend is enabled.
|
268
260
|
# fall - int64 - Number of consecutive failures before considering the backend unhealthy.
|
269
261
|
# health_check_enabled - boolean - True if health checks are enabled for this backend.
|
@@ -274,10 +266,10 @@ module Files
|
|
274
266
|
# priority - int64 - Priority of this backend.
|
275
267
|
# remote_path - string - Path on the remote server to treat as the root of this mount.
|
276
268
|
# rise - int64 - Number of consecutive successes before considering the backend healthy.
|
269
|
+
# canary_file_path (required) - string - Path to the canary file used for health checks.
|
270
|
+
# remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
|
271
|
+
# remote_server_id (required) - int64 - The remote server that this backend is associated with.
|
277
272
|
def self.create(params = {}, options = {})
|
278
|
-
raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
|
279
|
-
raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
|
280
|
-
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
281
273
|
raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
|
282
274
|
raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
|
283
275
|
raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
|
@@ -286,6 +278,9 @@ module Files
|
|
286
278
|
raise InvalidParameterError.new("Bad parameter: priority must be an Integer") if params[:priority] and !params[:priority].is_a?(Integer)
|
287
279
|
raise InvalidParameterError.new("Bad parameter: remote_path must be an String") if params[:remote_path] and !params[:remote_path].is_a?(String)
|
288
280
|
raise InvalidParameterError.new("Bad parameter: rise must be an Integer") if params[:rise] and !params[:rise].is_a?(Integer)
|
281
|
+
raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
|
282
|
+
raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
|
283
|
+
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
289
284
|
raise MissingParameterError.new("Parameter missing: canary_file_path") unless params[:canary_file_path]
|
290
285
|
raise MissingParameterError.new("Parameter missing: remote_server_mount_id") unless params[:remote_server_mount_id]
|
291
286
|
raise MissingParameterError.new("Parameter missing: remote_server_id") unless params[:remote_server_id]
|
@@ -306,9 +301,6 @@ module Files
|
|
306
301
|
end
|
307
302
|
|
308
303
|
# Parameters:
|
309
|
-
# canary_file_path (required) - string - Path to the canary file used for health checks.
|
310
|
-
# remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
|
311
|
-
# remote_server_id (required) - int64 - The remote server that this backend is associated with.
|
312
304
|
# enabled - boolean - True if this backend is enabled.
|
313
305
|
# fall - int64 - Number of consecutive failures before considering the backend unhealthy.
|
314
306
|
# health_check_enabled - boolean - True if health checks are enabled for this backend.
|
@@ -319,13 +311,12 @@ module Files
|
|
319
311
|
# priority - int64 - Priority of this backend.
|
320
312
|
# remote_path - string - Path on the remote server to treat as the root of this mount.
|
321
313
|
# rise - int64 - Number of consecutive successes before considering the backend healthy.
|
314
|
+
# canary_file_path - string - Path to the canary file used for health checks.
|
315
|
+
# remote_server_id - int64 - The remote server that this backend is associated with.
|
322
316
|
def self.update(id, params = {}, options = {})
|
323
317
|
params ||= {}
|
324
318
|
params[:id] = id
|
325
319
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
326
|
-
raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
|
327
|
-
raise InvalidParameterError.new("Bad parameter: remote_server_mount_id must be an Integer") if params[:remote_server_mount_id] and !params[:remote_server_mount_id].is_a?(Integer)
|
328
|
-
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
329
320
|
raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
|
330
321
|
raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
|
331
322
|
raise InvalidParameterError.new("Bad parameter: interval must be an Integer") if params[:interval] and !params[:interval].is_a?(Integer)
|
@@ -334,10 +325,9 @@ module Files
|
|
334
325
|
raise InvalidParameterError.new("Bad parameter: priority must be an Integer") if params[:priority] and !params[:priority].is_a?(Integer)
|
335
326
|
raise InvalidParameterError.new("Bad parameter: remote_path must be an String") if params[:remote_path] and !params[:remote_path].is_a?(String)
|
336
327
|
raise InvalidParameterError.new("Bad parameter: rise must be an Integer") if params[:rise] and !params[:rise].is_a?(Integer)
|
328
|
+
raise InvalidParameterError.new("Bad parameter: canary_file_path must be an String") if params[:canary_file_path] and !params[:canary_file_path].is_a?(String)
|
329
|
+
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
337
330
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
338
|
-
raise MissingParameterError.new("Parameter missing: canary_file_path") unless params[:canary_file_path]
|
339
|
-
raise MissingParameterError.new("Parameter missing: remote_server_mount_id") unless params[:remote_server_mount_id]
|
340
|
-
raise MissingParameterError.new("Parameter missing: remote_server_id") unless params[:remote_server_id]
|
341
331
|
|
342
332
|
response, options = Api.send_request("/remote_mount_backends/#{params[:id]}", :patch, params, options)
|
343
333
|
RemoteMountBackend.new(response.data, options)
|
data/lib/files.com/version.rb
CHANGED