files.com 1.2.270 → 1.2.271
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.
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.271
|
|
@@ -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 @@ await 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
|
|
|
@@ -170,6 +172,7 @@ await remote_mount_backend.update({
|
|
|
170
172
|
"fall": 1,
|
|
171
173
|
"health_check_enabled": true,
|
|
172
174
|
"health_check_type": "active",
|
|
175
|
+
"id": 1,
|
|
173
176
|
"interval": 60,
|
|
174
177
|
"min_free_cpu": 1.0,
|
|
175
178
|
"min_free_mem": 1.0,
|
package/lib/Files.js
CHANGED
|
@@ -12,7 +12,7 @@ var apiKey;
|
|
|
12
12
|
var baseUrl = 'https://app.files.com';
|
|
13
13
|
var sessionId = null;
|
|
14
14
|
var language = null;
|
|
15
|
-
var version = '1.2.
|
|
15
|
+
var version = '1.2.271';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
|
@@ -67,6 +67,13 @@ var RemoteMountBackend = /*#__PURE__*/(0, _createClass2.default)(function Remote
|
|
|
67
67
|
(0, _defineProperty2.default)(this, "setHealthCheckType", function (value) {
|
|
68
68
|
_this.attributes.health_check_type = value;
|
|
69
69
|
});
|
|
70
|
+
// int64 # Unique identifier for this backend.
|
|
71
|
+
(0, _defineProperty2.default)(this, "getId", function () {
|
|
72
|
+
return _this.attributes.id;
|
|
73
|
+
});
|
|
74
|
+
(0, _defineProperty2.default)(this, "setId", function (value) {
|
|
75
|
+
_this.attributes.id = value;
|
|
76
|
+
});
|
|
70
77
|
// int64 # Interval in seconds between health checks.
|
|
71
78
|
(0, _defineProperty2.default)(this, "getInterval", function () {
|
|
72
79
|
return _this.attributes.interval;
|
|
@@ -137,13 +144,6 @@ var RemoteMountBackend = /*#__PURE__*/(0, _createClass2.default)(function Remote
|
|
|
137
144
|
(0, _defineProperty2.default)(this, "setUndergoingMaintenance", function (value) {
|
|
138
145
|
_this.attributes.undergoing_maintenance = value;
|
|
139
146
|
});
|
|
140
|
-
// int64 # Remote Mount Backend ID.
|
|
141
|
-
(0, _defineProperty2.default)(this, "getId", function () {
|
|
142
|
-
return _this.attributes.id;
|
|
143
|
-
});
|
|
144
|
-
(0, _defineProperty2.default)(this, "setId", function (value) {
|
|
145
|
-
_this.attributes.id = value;
|
|
146
|
-
});
|
|
147
147
|
// Reset backend status to healthy
|
|
148
148
|
(0, _defineProperty2.default)(this, "resetStatus", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
149
149
|
var params,
|
|
@@ -452,6 +452,7 @@ _RemoteMountBackend = RemoteMountBackend;
|
|
|
452
452
|
// Parameters:
|
|
453
453
|
// 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.
|
|
454
454
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
455
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
|
|
455
456
|
(0, _defineProperty2.default)(RemoteMountBackend, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
456
457
|
var _response$data;
|
|
457
458
|
var params,
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
|
@@ -63,6 +63,13 @@ class RemoteMountBackend {
|
|
|
63
63
|
this.attributes.health_check_type = value
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// int64 # Unique identifier for this backend.
|
|
67
|
+
getId = () => this.attributes.id
|
|
68
|
+
|
|
69
|
+
setId = value => {
|
|
70
|
+
this.attributes.id = value
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
// int64 # Interval in seconds between health checks.
|
|
67
74
|
getInterval = () => this.attributes.interval
|
|
68
75
|
|
|
@@ -133,13 +140,6 @@ class RemoteMountBackend {
|
|
|
133
140
|
this.attributes.undergoing_maintenance = value
|
|
134
141
|
}
|
|
135
142
|
|
|
136
|
-
// int64 # Remote Mount Backend ID.
|
|
137
|
-
getId = () => this.attributes.id
|
|
138
|
-
|
|
139
|
-
setId = value => {
|
|
140
|
-
this.attributes.id = value
|
|
141
|
-
}
|
|
142
|
-
|
|
143
143
|
// Reset backend status to healthy
|
|
144
144
|
resetStatus = async (params = {}) => {
|
|
145
145
|
if (!this.attributes.id) {
|
|
@@ -310,6 +310,7 @@ class RemoteMountBackend {
|
|
|
310
310
|
// Parameters:
|
|
311
311
|
// 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.
|
|
312
312
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
313
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
|
|
313
314
|
static list = async (params = {}, options = {}) => {
|
|
314
315
|
if (params.cursor && !isString(params.cursor)) {
|
|
315
316
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
|