files.com 1.2.239 → 1.2.240
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 +1 -1
- package/docs/models/RemoteServer.md +0 -7
- package/lib/Files.js +1 -1
- package/lib/models/RemoteServer.js +115 -136
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/RemoteServer.js +0 -17
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.240
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"username": "user",
|
|
25
25
|
"google_cloud_storage_bucket": "my-bucket",
|
|
26
26
|
"google_cloud_storage_project_id": "my-project",
|
|
27
|
-
"google_cloud_storage_region": "us-east-1",
|
|
28
27
|
"google_cloud_storage_s3_compatible_access_key": "example",
|
|
29
28
|
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
|
30
29
|
"backblaze_b2_bucket": "my-bucket",
|
|
@@ -86,7 +85,6 @@
|
|
|
86
85
|
* `username` (string): Remote server username. Not needed for S3 buckets.
|
|
87
86
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
88
87
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
89
|
-
* `google_cloud_storage_region` (string): Google Cloud Storage: Region
|
|
90
88
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
91
89
|
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage: S3 Endpoint
|
|
92
90
|
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage: Bucket name
|
|
@@ -218,7 +216,6 @@ await RemoteServer.create({
|
|
|
218
216
|
'files_agent_version': "example",
|
|
219
217
|
'google_cloud_storage_bucket': "my-bucket",
|
|
220
218
|
'google_cloud_storage_project_id': "my-project",
|
|
221
|
-
'google_cloud_storage_region': "us-east-1",
|
|
222
219
|
'google_cloud_storage_s3_compatible_access_key': "example",
|
|
223
220
|
'hostname': "remote-server.com",
|
|
224
221
|
'linode_access_key': "example",
|
|
@@ -294,7 +291,6 @@ await RemoteServer.create({
|
|
|
294
291
|
* `files_agent_version` (string): Files Agent version
|
|
295
292
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
296
293
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
297
|
-
* `google_cloud_storage_region` (string): Google Cloud Storage: Region
|
|
298
294
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
299
295
|
* `hostname` (string): Hostname or IP address
|
|
300
296
|
* `linode_access_key` (string): Linode: Access Key
|
|
@@ -422,7 +418,6 @@ await remote_server.update({
|
|
|
422
418
|
'files_agent_version': "example",
|
|
423
419
|
'google_cloud_storage_bucket': "my-bucket",
|
|
424
420
|
'google_cloud_storage_project_id': "my-project",
|
|
425
|
-
'google_cloud_storage_region': "us-east-1",
|
|
426
421
|
'google_cloud_storage_s3_compatible_access_key': "example",
|
|
427
422
|
'hostname': "remote-server.com",
|
|
428
423
|
'linode_access_key': "example",
|
|
@@ -498,7 +493,6 @@ await remote_server.update({
|
|
|
498
493
|
* `files_agent_version` (string): Files Agent version
|
|
499
494
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
500
495
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
501
|
-
* `google_cloud_storage_region` (string): Google Cloud Storage: Region
|
|
502
496
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
503
497
|
* `hostname` (string): Hostname or IP address
|
|
504
498
|
* `linode_access_key` (string): Linode: Access Key
|
|
@@ -551,7 +545,6 @@ await remote_server.update({
|
|
|
551
545
|
"username": "user",
|
|
552
546
|
"google_cloud_storage_bucket": "my-bucket",
|
|
553
547
|
"google_cloud_storage_project_id": "my-project",
|
|
554
|
-
"google_cloud_storage_region": "us-east-1",
|
|
555
548
|
"google_cloud_storage_s3_compatible_access_key": "example",
|
|
556
549
|
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
|
557
550
|
"backblaze_b2_bucket": "my-bucket",
|
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.240';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
|
@@ -172,13 +172,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
172
172
|
(0, _defineProperty2.default)(this, "setGoogleCloudStorageProjectId", function (value) {
|
|
173
173
|
_this.attributes.google_cloud_storage_project_id = value;
|
|
174
174
|
});
|
|
175
|
-
// string # Google Cloud Storage: Region
|
|
176
|
-
(0, _defineProperty2.default)(this, "getGoogleCloudStorageRegion", function () {
|
|
177
|
-
return _this.attributes.google_cloud_storage_region;
|
|
178
|
-
});
|
|
179
|
-
(0, _defineProperty2.default)(this, "setGoogleCloudStorageRegion", function (value) {
|
|
180
|
-
_this.attributes.google_cloud_storage_region = value;
|
|
181
|
-
});
|
|
182
175
|
// string # Google Cloud Storage: S3-compatible Access Key.
|
|
183
176
|
(0, _defineProperty2.default)(this, "getGoogleCloudStorageS3CompatibleAccessKey", function () {
|
|
184
177
|
return _this.attributes.google_cloud_storage_s3_compatible_access_key;
|
|
@@ -762,7 +755,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
762
755
|
// files_agent_version - string - Files Agent version
|
|
763
756
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
764
757
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
765
|
-
// google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
766
758
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
767
759
|
// hostname - string - Hostname or IP address
|
|
768
760
|
// linode_access_key - string - Linode: Access Key
|
|
@@ -1045,188 +1037,182 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
1045
1037
|
}
|
|
1046
1038
|
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_project_id)));
|
|
1047
1039
|
case 84:
|
|
1048
|
-
if (!(params.google_cloud_storage_region && !(0, _utils.isString)(params.google_cloud_storage_region))) {
|
|
1049
|
-
_context2.next = 86;
|
|
1050
|
-
break;
|
|
1051
|
-
}
|
|
1052
|
-
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_region must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_region)));
|
|
1053
|
-
case 86:
|
|
1054
1040
|
if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
|
|
1055
|
-
_context2.next =
|
|
1041
|
+
_context2.next = 86;
|
|
1056
1042
|
break;
|
|
1057
1043
|
}
|
|
1058
1044
|
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_access_key)));
|
|
1059
|
-
case
|
|
1045
|
+
case 86:
|
|
1060
1046
|
if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
|
|
1061
|
-
_context2.next =
|
|
1047
|
+
_context2.next = 88;
|
|
1062
1048
|
break;
|
|
1063
1049
|
}
|
|
1064
1050
|
throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
|
|
1065
|
-
case
|
|
1051
|
+
case 88:
|
|
1066
1052
|
if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
|
|
1067
|
-
_context2.next =
|
|
1053
|
+
_context2.next = 90;
|
|
1068
1054
|
break;
|
|
1069
1055
|
}
|
|
1070
1056
|
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
|
|
1071
|
-
case
|
|
1057
|
+
case 90:
|
|
1072
1058
|
if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
|
|
1073
|
-
_context2.next =
|
|
1059
|
+
_context2.next = 92;
|
|
1074
1060
|
break;
|
|
1075
1061
|
}
|
|
1076
1062
|
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
|
|
1077
|
-
case
|
|
1063
|
+
case 92:
|
|
1078
1064
|
if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
|
|
1079
|
-
_context2.next =
|
|
1065
|
+
_context2.next = 94;
|
|
1080
1066
|
break;
|
|
1081
1067
|
}
|
|
1082
1068
|
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
|
|
1083
|
-
case
|
|
1069
|
+
case 94:
|
|
1084
1070
|
if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
|
|
1085
|
-
_context2.next =
|
|
1071
|
+
_context2.next = 96;
|
|
1086
1072
|
break;
|
|
1087
1073
|
}
|
|
1088
1074
|
throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
|
|
1089
|
-
case
|
|
1075
|
+
case 96:
|
|
1090
1076
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
1091
|
-
_context2.next =
|
|
1077
|
+
_context2.next = 98;
|
|
1092
1078
|
break;
|
|
1093
1079
|
}
|
|
1094
1080
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
1095
|
-
case
|
|
1081
|
+
case 98:
|
|
1096
1082
|
if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
|
|
1097
|
-
_context2.next =
|
|
1083
|
+
_context2.next = 100;
|
|
1098
1084
|
break;
|
|
1099
1085
|
}
|
|
1100
1086
|
throw new errors.InvalidParameterError("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(params.one_drive_account_type)));
|
|
1101
|
-
case
|
|
1087
|
+
case 100:
|
|
1102
1088
|
if (!(params.port && !(0, _utils.isInt)(params.port))) {
|
|
1103
|
-
_context2.next =
|
|
1089
|
+
_context2.next = 102;
|
|
1104
1090
|
break;
|
|
1105
1091
|
}
|
|
1106
1092
|
throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
|
|
1107
|
-
case
|
|
1093
|
+
case 102:
|
|
1108
1094
|
if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
|
|
1109
|
-
_context2.next =
|
|
1095
|
+
_context2.next = 104;
|
|
1110
1096
|
break;
|
|
1111
1097
|
}
|
|
1112
1098
|
throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
|
|
1113
|
-
case
|
|
1099
|
+
case 104:
|
|
1114
1100
|
if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
|
|
1115
|
-
_context2.next =
|
|
1101
|
+
_context2.next = 106;
|
|
1116
1102
|
break;
|
|
1117
1103
|
}
|
|
1118
1104
|
throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
|
|
1119
|
-
case
|
|
1105
|
+
case 106:
|
|
1120
1106
|
if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
|
|
1121
|
-
_context2.next =
|
|
1107
|
+
_context2.next = 108;
|
|
1122
1108
|
break;
|
|
1123
1109
|
}
|
|
1124
1110
|
throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
|
|
1125
|
-
case
|
|
1111
|
+
case 108:
|
|
1126
1112
|
if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
|
|
1127
|
-
_context2.next =
|
|
1113
|
+
_context2.next = 110;
|
|
1128
1114
|
break;
|
|
1129
1115
|
}
|
|
1130
1116
|
throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
|
|
1131
|
-
case
|
|
1117
|
+
case 110:
|
|
1132
1118
|
if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
|
|
1133
|
-
_context2.next =
|
|
1119
|
+
_context2.next = 112;
|
|
1134
1120
|
break;
|
|
1135
1121
|
}
|
|
1136
1122
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_access_key)));
|
|
1137
|
-
case
|
|
1123
|
+
case 112:
|
|
1138
1124
|
if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
|
|
1139
|
-
_context2.next =
|
|
1125
|
+
_context2.next = 114;
|
|
1140
1126
|
break;
|
|
1141
1127
|
}
|
|
1142
1128
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
|
|
1143
|
-
case
|
|
1129
|
+
case 114:
|
|
1144
1130
|
if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
|
|
1145
|
-
_context2.next =
|
|
1131
|
+
_context2.next = 116;
|
|
1146
1132
|
break;
|
|
1147
1133
|
}
|
|
1148
1134
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
|
|
1149
|
-
case
|
|
1135
|
+
case 116:
|
|
1150
1136
|
if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
|
|
1151
|
-
_context2.next =
|
|
1137
|
+
_context2.next = 118;
|
|
1152
1138
|
break;
|
|
1153
1139
|
}
|
|
1154
1140
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
|
|
1155
|
-
case
|
|
1141
|
+
case 118:
|
|
1156
1142
|
if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
|
|
1157
|
-
_context2.next =
|
|
1143
|
+
_context2.next = 120;
|
|
1158
1144
|
break;
|
|
1159
1145
|
}
|
|
1160
1146
|
throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
|
|
1161
|
-
case
|
|
1147
|
+
case 120:
|
|
1162
1148
|
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
1163
|
-
_context2.next =
|
|
1149
|
+
_context2.next = 122;
|
|
1164
1150
|
break;
|
|
1165
1151
|
}
|
|
1166
1152
|
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
1167
|
-
case
|
|
1153
|
+
case 122:
|
|
1168
1154
|
if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
|
|
1169
|
-
_context2.next =
|
|
1155
|
+
_context2.next = 124;
|
|
1170
1156
|
break;
|
|
1171
1157
|
}
|
|
1172
1158
|
throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
|
|
1173
|
-
case
|
|
1159
|
+
case 124:
|
|
1174
1160
|
if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
|
|
1175
|
-
_context2.next =
|
|
1161
|
+
_context2.next = 126;
|
|
1176
1162
|
break;
|
|
1177
1163
|
}
|
|
1178
1164
|
throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
|
|
1179
|
-
case
|
|
1165
|
+
case 126:
|
|
1180
1166
|
if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
|
|
1181
|
-
_context2.next =
|
|
1167
|
+
_context2.next = 128;
|
|
1182
1168
|
break;
|
|
1183
1169
|
}
|
|
1184
1170
|
throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
|
|
1185
|
-
case
|
|
1171
|
+
case 128:
|
|
1186
1172
|
if (!(params.username && !(0, _utils.isString)(params.username))) {
|
|
1187
|
-
_context2.next =
|
|
1173
|
+
_context2.next = 130;
|
|
1188
1174
|
break;
|
|
1189
1175
|
}
|
|
1190
1176
|
throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
|
|
1191
|
-
case
|
|
1177
|
+
case 130:
|
|
1192
1178
|
if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
|
|
1193
|
-
_context2.next =
|
|
1179
|
+
_context2.next = 132;
|
|
1194
1180
|
break;
|
|
1195
1181
|
}
|
|
1196
1182
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
|
|
1197
|
-
case
|
|
1183
|
+
case 132:
|
|
1198
1184
|
if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
|
|
1199
|
-
_context2.next =
|
|
1185
|
+
_context2.next = 134;
|
|
1200
1186
|
break;
|
|
1201
1187
|
}
|
|
1202
1188
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
|
|
1203
|
-
case
|
|
1189
|
+
case 134:
|
|
1204
1190
|
if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
|
|
1205
|
-
_context2.next =
|
|
1191
|
+
_context2.next = 136;
|
|
1206
1192
|
break;
|
|
1207
1193
|
}
|
|
1208
1194
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
|
|
1209
|
-
case
|
|
1195
|
+
case 136:
|
|
1210
1196
|
if (params.id) {
|
|
1211
|
-
_context2.next =
|
|
1197
|
+
_context2.next = 142;
|
|
1212
1198
|
break;
|
|
1213
1199
|
}
|
|
1214
1200
|
if (!_this.attributes.id) {
|
|
1215
|
-
_context2.next =
|
|
1201
|
+
_context2.next = 141;
|
|
1216
1202
|
break;
|
|
1217
1203
|
}
|
|
1218
1204
|
params.id = _this.id;
|
|
1219
|
-
_context2.next =
|
|
1205
|
+
_context2.next = 142;
|
|
1220
1206
|
break;
|
|
1221
|
-
case
|
|
1207
|
+
case 141:
|
|
1222
1208
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
1223
|
-
case
|
|
1224
|
-
_context2.next =
|
|
1209
|
+
case 142:
|
|
1210
|
+
_context2.next = 144;
|
|
1225
1211
|
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
1226
|
-
case
|
|
1212
|
+
case 144:
|
|
1227
1213
|
response = _context2.sent;
|
|
1228
1214
|
return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
1229
|
-
case
|
|
1215
|
+
case 146:
|
|
1230
1216
|
case "end":
|
|
1231
1217
|
return _context2.stop();
|
|
1232
1218
|
}
|
|
@@ -1517,7 +1503,6 @@ _RemoteServer = RemoteServer;
|
|
|
1517
1503
|
// files_agent_version - string - Files Agent version
|
|
1518
1504
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1519
1505
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1520
|
-
// google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
1521
1506
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
1522
1507
|
// hostname - string - Hostname or IP address
|
|
1523
1508
|
// linode_access_key - string - Linode: Access Key
|
|
@@ -1783,174 +1768,168 @@ _RemoteServer = RemoteServer;
|
|
|
1783
1768
|
}
|
|
1784
1769
|
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_project_id must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_project_id)));
|
|
1785
1770
|
case 78:
|
|
1786
|
-
if (!(params.google_cloud_storage_region && !(0, _utils.isString)(params.google_cloud_storage_region))) {
|
|
1787
|
-
_context8.next = 80;
|
|
1788
|
-
break;
|
|
1789
|
-
}
|
|
1790
|
-
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_region must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_region)));
|
|
1791
|
-
case 80:
|
|
1792
1771
|
if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
|
|
1793
|
-
_context8.next =
|
|
1772
|
+
_context8.next = 80;
|
|
1794
1773
|
break;
|
|
1795
1774
|
}
|
|
1796
1775
|
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_s3_compatible_access_key)));
|
|
1797
|
-
case
|
|
1776
|
+
case 80:
|
|
1798
1777
|
if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
|
|
1799
|
-
_context8.next =
|
|
1778
|
+
_context8.next = 82;
|
|
1800
1779
|
break;
|
|
1801
1780
|
}
|
|
1802
1781
|
throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
|
|
1803
|
-
case
|
|
1782
|
+
case 82:
|
|
1804
1783
|
if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
|
|
1805
|
-
_context8.next =
|
|
1784
|
+
_context8.next = 84;
|
|
1806
1785
|
break;
|
|
1807
1786
|
}
|
|
1808
1787
|
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
|
|
1809
|
-
case
|
|
1788
|
+
case 84:
|
|
1810
1789
|
if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
|
|
1811
|
-
_context8.next =
|
|
1790
|
+
_context8.next = 86;
|
|
1812
1791
|
break;
|
|
1813
1792
|
}
|
|
1814
1793
|
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
|
|
1815
|
-
case
|
|
1794
|
+
case 86:
|
|
1816
1795
|
if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
|
|
1817
|
-
_context8.next =
|
|
1796
|
+
_context8.next = 88;
|
|
1818
1797
|
break;
|
|
1819
1798
|
}
|
|
1820
1799
|
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
|
|
1821
|
-
case
|
|
1800
|
+
case 88:
|
|
1822
1801
|
if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
|
|
1823
|
-
_context8.next =
|
|
1802
|
+
_context8.next = 90;
|
|
1824
1803
|
break;
|
|
1825
1804
|
}
|
|
1826
1805
|
throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
|
|
1827
|
-
case
|
|
1806
|
+
case 90:
|
|
1828
1807
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
1829
|
-
_context8.next =
|
|
1808
|
+
_context8.next = 92;
|
|
1830
1809
|
break;
|
|
1831
1810
|
}
|
|
1832
1811
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
1833
|
-
case
|
|
1812
|
+
case 92:
|
|
1834
1813
|
if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
|
|
1835
|
-
_context8.next =
|
|
1814
|
+
_context8.next = 94;
|
|
1836
1815
|
break;
|
|
1837
1816
|
}
|
|
1838
1817
|
throw new errors.InvalidParameterError("Bad parameter: one_drive_account_type must be of type String, received ".concat((0, _utils.getType)(params.one_drive_account_type)));
|
|
1839
|
-
case
|
|
1818
|
+
case 94:
|
|
1840
1819
|
if (!(params.port && !(0, _utils.isInt)(params.port))) {
|
|
1841
|
-
_context8.next =
|
|
1820
|
+
_context8.next = 96;
|
|
1842
1821
|
break;
|
|
1843
1822
|
}
|
|
1844
1823
|
throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
|
|
1845
|
-
case
|
|
1824
|
+
case 96:
|
|
1846
1825
|
if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
|
|
1847
|
-
_context8.next =
|
|
1826
|
+
_context8.next = 98;
|
|
1848
1827
|
break;
|
|
1849
1828
|
}
|
|
1850
1829
|
throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
|
|
1851
|
-
case
|
|
1830
|
+
case 98:
|
|
1852
1831
|
if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
|
|
1853
|
-
_context8.next =
|
|
1832
|
+
_context8.next = 100;
|
|
1854
1833
|
break;
|
|
1855
1834
|
}
|
|
1856
1835
|
throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
|
|
1857
|
-
case
|
|
1836
|
+
case 100:
|
|
1858
1837
|
if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
|
|
1859
|
-
_context8.next =
|
|
1838
|
+
_context8.next = 102;
|
|
1860
1839
|
break;
|
|
1861
1840
|
}
|
|
1862
1841
|
throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
|
|
1863
|
-
case
|
|
1842
|
+
case 102:
|
|
1864
1843
|
if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
|
|
1865
|
-
_context8.next =
|
|
1844
|
+
_context8.next = 104;
|
|
1866
1845
|
break;
|
|
1867
1846
|
}
|
|
1868
1847
|
throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
|
|
1869
|
-
case
|
|
1848
|
+
case 104:
|
|
1870
1849
|
if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
|
|
1871
|
-
_context8.next =
|
|
1850
|
+
_context8.next = 106;
|
|
1872
1851
|
break;
|
|
1873
1852
|
}
|
|
1874
1853
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_access_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_access_key)));
|
|
1875
|
-
case
|
|
1854
|
+
case 106:
|
|
1876
1855
|
if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
|
|
1877
|
-
_context8.next =
|
|
1856
|
+
_context8.next = 108;
|
|
1878
1857
|
break;
|
|
1879
1858
|
}
|
|
1880
1859
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
|
|
1881
|
-
case
|
|
1860
|
+
case 108:
|
|
1882
1861
|
if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
|
|
1883
|
-
_context8.next =
|
|
1862
|
+
_context8.next = 110;
|
|
1884
1863
|
break;
|
|
1885
1864
|
}
|
|
1886
1865
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
|
|
1887
|
-
case
|
|
1866
|
+
case 110:
|
|
1888
1867
|
if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
|
|
1889
|
-
_context8.next =
|
|
1868
|
+
_context8.next = 112;
|
|
1890
1869
|
break;
|
|
1891
1870
|
}
|
|
1892
1871
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
|
|
1893
|
-
case
|
|
1872
|
+
case 112:
|
|
1894
1873
|
if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
|
|
1895
|
-
_context8.next =
|
|
1874
|
+
_context8.next = 114;
|
|
1896
1875
|
break;
|
|
1897
1876
|
}
|
|
1898
1877
|
throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
|
|
1899
|
-
case
|
|
1878
|
+
case 114:
|
|
1900
1879
|
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
1901
|
-
_context8.next =
|
|
1880
|
+
_context8.next = 116;
|
|
1902
1881
|
break;
|
|
1903
1882
|
}
|
|
1904
1883
|
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
1905
|
-
case
|
|
1884
|
+
case 116:
|
|
1906
1885
|
if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
|
|
1907
|
-
_context8.next =
|
|
1886
|
+
_context8.next = 118;
|
|
1908
1887
|
break;
|
|
1909
1888
|
}
|
|
1910
1889
|
throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
|
|
1911
|
-
case
|
|
1890
|
+
case 118:
|
|
1912
1891
|
if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
|
|
1913
|
-
_context8.next =
|
|
1892
|
+
_context8.next = 120;
|
|
1914
1893
|
break;
|
|
1915
1894
|
}
|
|
1916
1895
|
throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
|
|
1917
|
-
case
|
|
1896
|
+
case 120:
|
|
1918
1897
|
if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
|
|
1919
|
-
_context8.next =
|
|
1898
|
+
_context8.next = 122;
|
|
1920
1899
|
break;
|
|
1921
1900
|
}
|
|
1922
1901
|
throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
|
|
1923
|
-
case
|
|
1902
|
+
case 122:
|
|
1924
1903
|
if (!(params.username && !(0, _utils.isString)(params.username))) {
|
|
1925
|
-
_context8.next =
|
|
1904
|
+
_context8.next = 124;
|
|
1926
1905
|
break;
|
|
1927
1906
|
}
|
|
1928
1907
|
throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
|
|
1929
|
-
case
|
|
1908
|
+
case 124:
|
|
1930
1909
|
if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
|
|
1931
|
-
_context8.next =
|
|
1910
|
+
_context8.next = 126;
|
|
1932
1911
|
break;
|
|
1933
1912
|
}
|
|
1934
1913
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
|
|
1935
|
-
case
|
|
1914
|
+
case 126:
|
|
1936
1915
|
if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
|
|
1937
|
-
_context8.next =
|
|
1916
|
+
_context8.next = 128;
|
|
1938
1917
|
break;
|
|
1939
1918
|
}
|
|
1940
1919
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
|
|
1941
|
-
case
|
|
1920
|
+
case 128:
|
|
1942
1921
|
if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
|
|
1943
|
-
_context8.next =
|
|
1922
|
+
_context8.next = 130;
|
|
1944
1923
|
break;
|
|
1945
1924
|
}
|
|
1946
1925
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
|
|
1947
|
-
case
|
|
1948
|
-
_context8.next =
|
|
1926
|
+
case 130:
|
|
1927
|
+
_context8.next = 132;
|
|
1949
1928
|
return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
|
|
1950
|
-
case
|
|
1929
|
+
case 132:
|
|
1951
1930
|
response = _context8.sent;
|
|
1952
1931
|
return _context8.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
|
|
1953
|
-
case
|
|
1932
|
+
case 134:
|
|
1954
1933
|
case "end":
|
|
1955
1934
|
return _context8.stop();
|
|
1956
1935
|
}
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
|
@@ -168,13 +168,6 @@ class RemoteServer {
|
|
|
168
168
|
this.attributes.google_cloud_storage_project_id = value
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
// string # Google Cloud Storage: Region
|
|
172
|
-
getGoogleCloudStorageRegion = () => this.attributes.google_cloud_storage_region
|
|
173
|
-
|
|
174
|
-
setGoogleCloudStorageRegion = value => {
|
|
175
|
-
this.attributes.google_cloud_storage_region = value
|
|
176
|
-
}
|
|
177
|
-
|
|
178
171
|
// string # Google Cloud Storage: S3-compatible Access Key.
|
|
179
172
|
getGoogleCloudStorageS3CompatibleAccessKey = () => this.attributes.google_cloud_storage_s3_compatible_access_key
|
|
180
173
|
|
|
@@ -710,7 +703,6 @@ class RemoteServer {
|
|
|
710
703
|
// files_agent_version - string - Files Agent version
|
|
711
704
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
712
705
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
713
|
-
// google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
714
706
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
715
707
|
// hostname - string - Hostname or IP address
|
|
716
708
|
// linode_access_key - string - Linode: Access Key
|
|
@@ -904,10 +896,6 @@ class RemoteServer {
|
|
|
904
896
|
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_project_id must be of type String, received ${getType(params.google_cloud_storage_project_id)}`)
|
|
905
897
|
}
|
|
906
898
|
|
|
907
|
-
if (params.google_cloud_storage_region && !isString(params.google_cloud_storage_region)) {
|
|
908
|
-
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_region must be of type String, received ${getType(params.google_cloud_storage_region)}`)
|
|
909
|
-
}
|
|
910
|
-
|
|
911
899
|
if (params.google_cloud_storage_s3_compatible_access_key && !isString(params.google_cloud_storage_s3_compatible_access_key)) {
|
|
912
900
|
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ${getType(params.google_cloud_storage_s3_compatible_access_key)}`)
|
|
913
901
|
}
|
|
@@ -1179,7 +1167,6 @@ class RemoteServer {
|
|
|
1179
1167
|
// files_agent_version - string - Files Agent version
|
|
1180
1168
|
// google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1181
1169
|
// google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1182
|
-
// google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
1183
1170
|
// google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
1184
1171
|
// hostname - string - Hostname or IP address
|
|
1185
1172
|
// linode_access_key - string - Linode: Access Key
|
|
@@ -1360,10 +1347,6 @@ class RemoteServer {
|
|
|
1360
1347
|
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_project_id must be of type String, received ${getType(params.google_cloud_storage_project_id)}`)
|
|
1361
1348
|
}
|
|
1362
1349
|
|
|
1363
|
-
if (params.google_cloud_storage_region && !isString(params.google_cloud_storage_region)) {
|
|
1364
|
-
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_region must be of type String, received ${getType(params.google_cloud_storage_region)}`)
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
1350
|
if (params.google_cloud_storage_s3_compatible_access_key && !isString(params.google_cloud_storage_s3_compatible_access_key)) {
|
|
1368
1351
|
throw new errors.InvalidParameterError(`Bad parameter: google_cloud_storage_s3_compatible_access_key must be of type String, received ${getType(params.google_cloud_storage_s3_compatible_access_key)}`)
|
|
1369
1352
|
}
|