files.com 1.2.295 → 1.2.296
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 +3 -27
- package/lib/Files.js +1 -1
- package/lib/models/RemoteServer.js +190 -274
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/RemoteServer.js +3 -71
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.296
|
|
@@ -30,9 +30,6 @@
|
|
|
30
30
|
"wasabi_bucket": "my-bucket",
|
|
31
31
|
"wasabi_region": "us-west-1",
|
|
32
32
|
"wasabi_access_key": "example",
|
|
33
|
-
"rackspace_username": "rackspaceuser",
|
|
34
|
-
"rackspace_region": "dfw",
|
|
35
|
-
"rackspace_container": "my-container",
|
|
36
33
|
"auth_status": "in_setup",
|
|
37
34
|
"auth_account_name": "me@example.com",
|
|
38
35
|
"one_drive_account_type": "personal",
|
|
@@ -91,9 +88,6 @@
|
|
|
91
88
|
* `wasabi_bucket` (string): Wasabi: Bucket name
|
|
92
89
|
* `wasabi_region` (string): Wasabi: Region
|
|
93
90
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
94
|
-
* `rackspace_username` (string): Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
95
|
-
* `rackspace_region` (string): Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
96
|
-
* `rackspace_container` (string): Rackspace: The name of the container (top level directory) where files will sync.
|
|
97
91
|
* `auth_status` (string): Either `in_setup` or `complete`
|
|
98
92
|
* `auth_account_name` (string): Describes the authorized account
|
|
99
93
|
* `one_drive_account_type` (string): OneDrive: Either personal or business_other account types
|
|
@@ -140,7 +134,6 @@
|
|
|
140
134
|
* `google_cloud_storage_credentials_json` (string): Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
141
135
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
142
136
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
143
|
-
* `rackspace_api_key` (string): Rackspace: API key from the Rackspace Cloud Control Panel
|
|
144
137
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
145
138
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
146
139
|
|
|
@@ -157,9 +150,9 @@ await RemoteServer.list
|
|
|
157
150
|
|
|
158
151
|
* `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.
|
|
159
152
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
160
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
161
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
162
|
-
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
153
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
|
|
154
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
155
|
+
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
163
156
|
|
|
164
157
|
---
|
|
165
158
|
|
|
@@ -226,9 +219,6 @@ await RemoteServer.create({
|
|
|
226
219
|
'one_drive_account_type': "personal",
|
|
227
220
|
'pin_to_site_region': true,
|
|
228
221
|
'port': 1,
|
|
229
|
-
'rackspace_container': "my-container",
|
|
230
|
-
'rackspace_region': "dfw",
|
|
231
|
-
'rackspace_username': "rackspaceuser",
|
|
232
222
|
's3_bucket': "my-bucket",
|
|
233
223
|
's3_compatible_access_key': "example",
|
|
234
224
|
's3_compatible_bucket': "my-bucket",
|
|
@@ -266,7 +256,6 @@ await RemoteServer.create({
|
|
|
266
256
|
* `google_cloud_storage_credentials_json` (string): Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
267
257
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
268
258
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
269
|
-
* `rackspace_api_key` (string): Rackspace: API key from the Rackspace Cloud Control Panel
|
|
270
259
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
271
260
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
272
261
|
* `aws_access_key` (string): AWS Access Key.
|
|
@@ -301,9 +290,6 @@ await RemoteServer.create({
|
|
|
301
290
|
* `one_drive_account_type` (string): OneDrive: Either personal or business_other account types
|
|
302
291
|
* `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
303
292
|
* `port` (int64): Port for remote server. Not needed for S3.
|
|
304
|
-
* `rackspace_container` (string): Rackspace: The name of the container (top level directory) where files will sync.
|
|
305
|
-
* `rackspace_region` (string): Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
306
|
-
* `rackspace_username` (string): Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
307
293
|
* `s3_bucket` (string): S3 bucket name
|
|
308
294
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
309
295
|
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
|
|
@@ -429,9 +415,6 @@ await remote_server.update({
|
|
|
429
415
|
'one_drive_account_type': "personal",
|
|
430
416
|
'pin_to_site_region': true,
|
|
431
417
|
'port': 1,
|
|
432
|
-
'rackspace_container': "my-container",
|
|
433
|
-
'rackspace_region': "dfw",
|
|
434
|
-
'rackspace_username': "rackspaceuser",
|
|
435
418
|
's3_bucket': "my-bucket",
|
|
436
419
|
's3_compatible_access_key': "example",
|
|
437
420
|
's3_compatible_bucket': "my-bucket",
|
|
@@ -469,7 +452,6 @@ await remote_server.update({
|
|
|
469
452
|
* `google_cloud_storage_credentials_json` (string): Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
470
453
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
471
454
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
472
|
-
* `rackspace_api_key` (string): Rackspace: API key from the Rackspace Cloud Control Panel
|
|
473
455
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
474
456
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
475
457
|
* `aws_access_key` (string): AWS Access Key.
|
|
@@ -504,9 +486,6 @@ await remote_server.update({
|
|
|
504
486
|
* `one_drive_account_type` (string): OneDrive: Either personal or business_other account types
|
|
505
487
|
* `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
506
488
|
* `port` (int64): Port for remote server. Not needed for S3.
|
|
507
|
-
* `rackspace_container` (string): Rackspace: The name of the container (top level directory) where files will sync.
|
|
508
|
-
* `rackspace_region` (string): Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
509
|
-
* `rackspace_username` (string): Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
510
489
|
* `s3_bucket` (string): S3 bucket name
|
|
511
490
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
512
491
|
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
|
|
@@ -552,9 +531,6 @@ await remote_server.update({
|
|
|
552
531
|
"wasabi_bucket": "my-bucket",
|
|
553
532
|
"wasabi_region": "us-west-1",
|
|
554
533
|
"wasabi_access_key": "example",
|
|
555
|
-
"rackspace_username": "rackspaceuser",
|
|
556
|
-
"rackspace_region": "dfw",
|
|
557
|
-
"rackspace_container": "my-container",
|
|
558
534
|
"auth_status": "in_setup",
|
|
559
535
|
"auth_account_name": "me@example.com",
|
|
560
536
|
"one_drive_account_type": "personal",
|
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.296';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
|
@@ -214,27 +214,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
214
214
|
(0, _defineProperty2.default)(this, "setWasabiAccessKey", function (value) {
|
|
215
215
|
_this.attributes.wasabi_access_key = value;
|
|
216
216
|
});
|
|
217
|
-
// string # Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
218
|
-
(0, _defineProperty2.default)(this, "getRackspaceUsername", function () {
|
|
219
|
-
return _this.attributes.rackspace_username;
|
|
220
|
-
});
|
|
221
|
-
(0, _defineProperty2.default)(this, "setRackspaceUsername", function (value) {
|
|
222
|
-
_this.attributes.rackspace_username = value;
|
|
223
|
-
});
|
|
224
|
-
// string # Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
225
|
-
(0, _defineProperty2.default)(this, "getRackspaceRegion", function () {
|
|
226
|
-
return _this.attributes.rackspace_region;
|
|
227
|
-
});
|
|
228
|
-
(0, _defineProperty2.default)(this, "setRackspaceRegion", function (value) {
|
|
229
|
-
_this.attributes.rackspace_region = value;
|
|
230
|
-
});
|
|
231
|
-
// string # Rackspace: The name of the container (top level directory) where files will sync.
|
|
232
|
-
(0, _defineProperty2.default)(this, "getRackspaceContainer", function () {
|
|
233
|
-
return _this.attributes.rackspace_container;
|
|
234
|
-
});
|
|
235
|
-
(0, _defineProperty2.default)(this, "setRackspaceContainer", function (value) {
|
|
236
|
-
_this.attributes.rackspace_container = value;
|
|
237
|
-
});
|
|
238
217
|
// string # Either `in_setup` or `complete`
|
|
239
218
|
(0, _defineProperty2.default)(this, "getAuthStatus", function () {
|
|
240
219
|
return _this.attributes.auth_status;
|
|
@@ -557,13 +536,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
557
536
|
(0, _defineProperty2.default)(this, "setLinodeSecretKey", function (value) {
|
|
558
537
|
_this.attributes.linode_secret_key = value;
|
|
559
538
|
});
|
|
560
|
-
// string # Rackspace: API key from the Rackspace Cloud Control Panel
|
|
561
|
-
(0, _defineProperty2.default)(this, "getRackspaceApiKey", function () {
|
|
562
|
-
return _this.attributes.rackspace_api_key;
|
|
563
|
-
});
|
|
564
|
-
(0, _defineProperty2.default)(this, "setRackspaceApiKey", function (value) {
|
|
565
|
-
_this.attributes.rackspace_api_key = value;
|
|
566
|
-
});
|
|
567
539
|
// string # S3-compatible: Secret Key
|
|
568
540
|
(0, _defineProperty2.default)(this, "getS3CompatibleSecretKey", function () {
|
|
569
541
|
return _this.attributes.s3_compatible_secret_key;
|
|
@@ -730,7 +702,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
730
702
|
// google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
731
703
|
// google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
732
704
|
// linode_secret_key - string - Linode: Secret Key
|
|
733
|
-
// rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
734
705
|
// s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
735
706
|
// wasabi_secret_key - string - Wasabi: Secret Key
|
|
736
707
|
// aws_access_key - string - AWS Access Key.
|
|
@@ -765,9 +736,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
765
736
|
// one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
766
737
|
// pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
767
738
|
// port - int64 - Port for remote server. Not needed for S3.
|
|
768
|
-
// rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
769
|
-
// rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
770
|
-
// rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
771
739
|
// s3_bucket - string - S3 bucket name
|
|
772
740
|
// s3_compatible_access_key - string - S3-compatible: Access Key
|
|
773
741
|
// s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -905,314 +873,290 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
|
905
873
|
}
|
|
906
874
|
throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
|
|
907
875
|
case 19:
|
|
908
|
-
if (!(params.rackspace_api_key && !(0, _utils.isString)(params.rackspace_api_key))) {
|
|
909
|
-
_context2.next = 20;
|
|
910
|
-
break;
|
|
911
|
-
}
|
|
912
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(params.rackspace_api_key)));
|
|
913
|
-
case 20:
|
|
914
876
|
if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
|
|
915
|
-
_context2.next =
|
|
877
|
+
_context2.next = 20;
|
|
916
878
|
break;
|
|
917
879
|
}
|
|
918
880
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_secret_key)));
|
|
919
|
-
case
|
|
881
|
+
case 20:
|
|
920
882
|
if (!(params.wasabi_secret_key && !(0, _utils.isString)(params.wasabi_secret_key))) {
|
|
921
|
-
_context2.next =
|
|
883
|
+
_context2.next = 21;
|
|
922
884
|
break;
|
|
923
885
|
}
|
|
924
886
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_secret_key)));
|
|
925
|
-
case
|
|
887
|
+
case 21:
|
|
926
888
|
if (!(params.aws_access_key && !(0, _utils.isString)(params.aws_access_key))) {
|
|
927
|
-
_context2.next =
|
|
889
|
+
_context2.next = 22;
|
|
928
890
|
break;
|
|
929
891
|
}
|
|
930
892
|
throw new errors.InvalidParameterError("Bad parameter: aws_access_key must be of type String, received ".concat((0, _utils.getType)(params.aws_access_key)));
|
|
931
|
-
case
|
|
893
|
+
case 22:
|
|
932
894
|
if (!(params.azure_blob_storage_account && !(0, _utils.isString)(params.azure_blob_storage_account))) {
|
|
933
|
-
_context2.next =
|
|
895
|
+
_context2.next = 23;
|
|
934
896
|
break;
|
|
935
897
|
}
|
|
936
898
|
throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_account)));
|
|
937
|
-
case
|
|
899
|
+
case 23:
|
|
938
900
|
if (!(params.azure_blob_storage_container && !(0, _utils.isString)(params.azure_blob_storage_container))) {
|
|
939
|
-
_context2.next =
|
|
901
|
+
_context2.next = 24;
|
|
940
902
|
break;
|
|
941
903
|
}
|
|
942
904
|
throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_container)));
|
|
943
|
-
case
|
|
905
|
+
case 24:
|
|
944
906
|
if (!(params.azure_blob_storage_dns_suffix && !(0, _utils.isString)(params.azure_blob_storage_dns_suffix))) {
|
|
945
|
-
_context2.next =
|
|
907
|
+
_context2.next = 25;
|
|
946
908
|
break;
|
|
947
909
|
}
|
|
948
910
|
throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_dns_suffix)));
|
|
949
|
-
case
|
|
911
|
+
case 25:
|
|
950
912
|
if (!(params.azure_files_storage_account && !(0, _utils.isString)(params.azure_files_storage_account))) {
|
|
951
|
-
_context2.next =
|
|
913
|
+
_context2.next = 26;
|
|
952
914
|
break;
|
|
953
915
|
}
|
|
954
916
|
throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_account)));
|
|
955
|
-
case
|
|
917
|
+
case 26:
|
|
956
918
|
if (!(params.azure_files_storage_dns_suffix && !(0, _utils.isString)(params.azure_files_storage_dns_suffix))) {
|
|
957
|
-
_context2.next =
|
|
919
|
+
_context2.next = 27;
|
|
958
920
|
break;
|
|
959
921
|
}
|
|
960
922
|
throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_dns_suffix)));
|
|
961
|
-
case
|
|
923
|
+
case 27:
|
|
962
924
|
if (!(params.azure_files_storage_share_name && !(0, _utils.isString)(params.azure_files_storage_share_name))) {
|
|
963
|
-
_context2.next =
|
|
925
|
+
_context2.next = 28;
|
|
964
926
|
break;
|
|
965
927
|
}
|
|
966
928
|
throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_share_name must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_share_name)));
|
|
967
|
-
case
|
|
929
|
+
case 28:
|
|
968
930
|
if (!(params.backblaze_b2_bucket && !(0, _utils.isString)(params.backblaze_b2_bucket))) {
|
|
969
|
-
_context2.next =
|
|
931
|
+
_context2.next = 29;
|
|
970
932
|
break;
|
|
971
933
|
}
|
|
972
934
|
throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_bucket)));
|
|
973
|
-
case
|
|
935
|
+
case 29:
|
|
974
936
|
if (!(params.backblaze_b2_s3_endpoint && !(0, _utils.isString)(params.backblaze_b2_s3_endpoint))) {
|
|
975
|
-
_context2.next =
|
|
937
|
+
_context2.next = 30;
|
|
976
938
|
break;
|
|
977
939
|
}
|
|
978
940
|
throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_s3_endpoint)));
|
|
979
|
-
case
|
|
941
|
+
case 30:
|
|
980
942
|
if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
|
|
981
|
-
_context2.next =
|
|
943
|
+
_context2.next = 31;
|
|
982
944
|
break;
|
|
983
945
|
}
|
|
984
946
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
|
|
985
|
-
case
|
|
947
|
+
case 31:
|
|
986
948
|
if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
|
|
987
|
-
_context2.next =
|
|
949
|
+
_context2.next = 32;
|
|
988
950
|
break;
|
|
989
951
|
}
|
|
990
952
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
|
|
991
|
-
case
|
|
953
|
+
case 32:
|
|
992
954
|
if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
|
|
993
|
-
_context2.next =
|
|
955
|
+
_context2.next = 33;
|
|
994
956
|
break;
|
|
995
957
|
}
|
|
996
958
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
|
|
997
|
-
case
|
|
959
|
+
case 33:
|
|
998
960
|
if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
|
|
999
|
-
_context2.next =
|
|
961
|
+
_context2.next = 34;
|
|
1000
962
|
break;
|
|
1001
963
|
}
|
|
1002
964
|
throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
|
|
1003
|
-
case
|
|
965
|
+
case 34:
|
|
1004
966
|
if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
|
|
1005
|
-
_context2.next =
|
|
967
|
+
_context2.next = 35;
|
|
1006
968
|
break;
|
|
1007
969
|
}
|
|
1008
970
|
throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
|
|
1009
|
-
case
|
|
971
|
+
case 35:
|
|
1010
972
|
if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
|
|
1011
|
-
_context2.next =
|
|
973
|
+
_context2.next = 36;
|
|
1012
974
|
break;
|
|
1013
975
|
}
|
|
1014
976
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_permission_set must be of type String, received ".concat((0, _utils.getType)(params.files_agent_permission_set)));
|
|
1015
|
-
case
|
|
977
|
+
case 36:
|
|
1016
978
|
if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
|
|
1017
|
-
_context2.next =
|
|
979
|
+
_context2.next = 37;
|
|
1018
980
|
break;
|
|
1019
981
|
}
|
|
1020
982
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
|
|
1021
|
-
case
|
|
983
|
+
case 37:
|
|
1022
984
|
if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
|
|
1023
|
-
_context2.next =
|
|
985
|
+
_context2.next = 38;
|
|
1024
986
|
break;
|
|
1025
987
|
}
|
|
1026
988
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
|
|
1027
|
-
case
|
|
989
|
+
case 38:
|
|
1028
990
|
if (!(params.google_cloud_storage_bucket && !(0, _utils.isString)(params.google_cloud_storage_bucket))) {
|
|
1029
|
-
_context2.next =
|
|
991
|
+
_context2.next = 39;
|
|
1030
992
|
break;
|
|
1031
993
|
}
|
|
1032
994
|
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_bucket)));
|
|
1033
|
-
case
|
|
995
|
+
case 39:
|
|
1034
996
|
if (!(params.google_cloud_storage_project_id && !(0, _utils.isString)(params.google_cloud_storage_project_id))) {
|
|
1035
|
-
_context2.next =
|
|
997
|
+
_context2.next = 40;
|
|
1036
998
|
break;
|
|
1037
999
|
}
|
|
1038
1000
|
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)));
|
|
1039
|
-
case
|
|
1001
|
+
case 40:
|
|
1040
1002
|
if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
|
|
1041
|
-
_context2.next =
|
|
1003
|
+
_context2.next = 41;
|
|
1042
1004
|
break;
|
|
1043
1005
|
}
|
|
1044
1006
|
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)));
|
|
1045
|
-
case
|
|
1007
|
+
case 41:
|
|
1046
1008
|
if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
|
|
1047
|
-
_context2.next =
|
|
1009
|
+
_context2.next = 42;
|
|
1048
1010
|
break;
|
|
1049
1011
|
}
|
|
1050
1012
|
throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
|
|
1051
|
-
case
|
|
1013
|
+
case 42:
|
|
1052
1014
|
if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
|
|
1053
|
-
_context2.next =
|
|
1015
|
+
_context2.next = 43;
|
|
1054
1016
|
break;
|
|
1055
1017
|
}
|
|
1056
1018
|
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
|
|
1057
|
-
case
|
|
1019
|
+
case 43:
|
|
1058
1020
|
if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
|
|
1059
|
-
_context2.next =
|
|
1021
|
+
_context2.next = 44;
|
|
1060
1022
|
break;
|
|
1061
1023
|
}
|
|
1062
1024
|
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
|
|
1063
|
-
case
|
|
1025
|
+
case 44:
|
|
1064
1026
|
if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
|
|
1065
|
-
_context2.next =
|
|
1027
|
+
_context2.next = 45;
|
|
1066
1028
|
break;
|
|
1067
1029
|
}
|
|
1068
1030
|
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
|
|
1069
|
-
case
|
|
1031
|
+
case 45:
|
|
1070
1032
|
if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
|
|
1071
|
-
_context2.next =
|
|
1033
|
+
_context2.next = 46;
|
|
1072
1034
|
break;
|
|
1073
1035
|
}
|
|
1074
1036
|
throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
|
|
1075
|
-
case
|
|
1037
|
+
case 46:
|
|
1076
1038
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
1077
|
-
_context2.next =
|
|
1039
|
+
_context2.next = 47;
|
|
1078
1040
|
break;
|
|
1079
1041
|
}
|
|
1080
1042
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
1081
|
-
case
|
|
1043
|
+
case 47:
|
|
1082
1044
|
if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
|
|
1083
|
-
_context2.next =
|
|
1045
|
+
_context2.next = 48;
|
|
1084
1046
|
break;
|
|
1085
1047
|
}
|
|
1086
1048
|
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)));
|
|
1087
|
-
case
|
|
1049
|
+
case 48:
|
|
1088
1050
|
if (!(params.port && !(0, _utils.isInt)(params.port))) {
|
|
1089
|
-
_context2.next =
|
|
1051
|
+
_context2.next = 49;
|
|
1090
1052
|
break;
|
|
1091
1053
|
}
|
|
1092
1054
|
throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
|
|
1093
|
-
case
|
|
1094
|
-
if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
|
|
1095
|
-
_context2.next = 51;
|
|
1096
|
-
break;
|
|
1097
|
-
}
|
|
1098
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
|
|
1099
|
-
case 51:
|
|
1100
|
-
if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
|
|
1101
|
-
_context2.next = 52;
|
|
1102
|
-
break;
|
|
1103
|
-
}
|
|
1104
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
|
|
1105
|
-
case 52:
|
|
1106
|
-
if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
|
|
1107
|
-
_context2.next = 53;
|
|
1108
|
-
break;
|
|
1109
|
-
}
|
|
1110
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
|
|
1111
|
-
case 53:
|
|
1055
|
+
case 49:
|
|
1112
1056
|
if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
|
|
1113
|
-
_context2.next =
|
|
1057
|
+
_context2.next = 50;
|
|
1114
1058
|
break;
|
|
1115
1059
|
}
|
|
1116
1060
|
throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
|
|
1117
|
-
case
|
|
1061
|
+
case 50:
|
|
1118
1062
|
if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
|
|
1119
|
-
_context2.next =
|
|
1063
|
+
_context2.next = 51;
|
|
1120
1064
|
break;
|
|
1121
1065
|
}
|
|
1122
1066
|
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)));
|
|
1123
|
-
case
|
|
1067
|
+
case 51:
|
|
1124
1068
|
if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
|
|
1125
|
-
_context2.next =
|
|
1069
|
+
_context2.next = 52;
|
|
1126
1070
|
break;
|
|
1127
1071
|
}
|
|
1128
1072
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
|
|
1129
|
-
case
|
|
1073
|
+
case 52:
|
|
1130
1074
|
if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
|
|
1131
|
-
_context2.next =
|
|
1075
|
+
_context2.next = 53;
|
|
1132
1076
|
break;
|
|
1133
1077
|
}
|
|
1134
1078
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
|
|
1135
|
-
case
|
|
1079
|
+
case 53:
|
|
1136
1080
|
if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
|
|
1137
|
-
_context2.next =
|
|
1081
|
+
_context2.next = 54;
|
|
1138
1082
|
break;
|
|
1139
1083
|
}
|
|
1140
1084
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
|
|
1141
|
-
case
|
|
1085
|
+
case 54:
|
|
1142
1086
|
if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
|
|
1143
|
-
_context2.next =
|
|
1087
|
+
_context2.next = 55;
|
|
1144
1088
|
break;
|
|
1145
1089
|
}
|
|
1146
1090
|
throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
|
|
1147
|
-
case
|
|
1091
|
+
case 55:
|
|
1148
1092
|
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
1149
|
-
_context2.next =
|
|
1093
|
+
_context2.next = 56;
|
|
1150
1094
|
break;
|
|
1151
1095
|
}
|
|
1152
1096
|
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
1153
|
-
case
|
|
1097
|
+
case 56:
|
|
1154
1098
|
if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
|
|
1155
|
-
_context2.next =
|
|
1099
|
+
_context2.next = 57;
|
|
1156
1100
|
break;
|
|
1157
1101
|
}
|
|
1158
1102
|
throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
|
|
1159
|
-
case
|
|
1103
|
+
case 57:
|
|
1160
1104
|
if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
|
|
1161
|
-
_context2.next =
|
|
1105
|
+
_context2.next = 58;
|
|
1162
1106
|
break;
|
|
1163
1107
|
}
|
|
1164
1108
|
throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
|
|
1165
|
-
case
|
|
1109
|
+
case 58:
|
|
1166
1110
|
if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
|
|
1167
|
-
_context2.next =
|
|
1111
|
+
_context2.next = 59;
|
|
1168
1112
|
break;
|
|
1169
1113
|
}
|
|
1170
1114
|
throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
|
|
1171
|
-
case
|
|
1115
|
+
case 59:
|
|
1172
1116
|
if (!(params.username && !(0, _utils.isString)(params.username))) {
|
|
1173
|
-
_context2.next =
|
|
1117
|
+
_context2.next = 60;
|
|
1174
1118
|
break;
|
|
1175
1119
|
}
|
|
1176
1120
|
throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
|
|
1177
|
-
case
|
|
1121
|
+
case 60:
|
|
1178
1122
|
if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
|
|
1179
|
-
_context2.next =
|
|
1123
|
+
_context2.next = 61;
|
|
1180
1124
|
break;
|
|
1181
1125
|
}
|
|
1182
1126
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
|
|
1183
|
-
case
|
|
1127
|
+
case 61:
|
|
1184
1128
|
if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
|
|
1185
|
-
_context2.next =
|
|
1129
|
+
_context2.next = 62;
|
|
1186
1130
|
break;
|
|
1187
1131
|
}
|
|
1188
1132
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
|
|
1189
|
-
case
|
|
1133
|
+
case 62:
|
|
1190
1134
|
if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
|
|
1191
|
-
_context2.next =
|
|
1135
|
+
_context2.next = 63;
|
|
1192
1136
|
break;
|
|
1193
1137
|
}
|
|
1194
1138
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
|
|
1195
|
-
case
|
|
1139
|
+
case 63:
|
|
1196
1140
|
if (params.id) {
|
|
1197
|
-
_context2.next =
|
|
1141
|
+
_context2.next = 65;
|
|
1198
1142
|
break;
|
|
1199
1143
|
}
|
|
1200
1144
|
if (!_this.attributes.id) {
|
|
1201
|
-
_context2.next =
|
|
1145
|
+
_context2.next = 64;
|
|
1202
1146
|
break;
|
|
1203
1147
|
}
|
|
1204
1148
|
params.id = _this.id;
|
|
1205
|
-
_context2.next =
|
|
1149
|
+
_context2.next = 65;
|
|
1206
1150
|
break;
|
|
1207
|
-
case
|
|
1151
|
+
case 64:
|
|
1208
1152
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
1209
|
-
case
|
|
1210
|
-
_context2.next =
|
|
1153
|
+
case 65:
|
|
1154
|
+
_context2.next = 66;
|
|
1211
1155
|
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
1212
|
-
case
|
|
1156
|
+
case 66:
|
|
1213
1157
|
response = _context2.sent;
|
|
1214
1158
|
return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
1215
|
-
case
|
|
1159
|
+
case 67:
|
|
1216
1160
|
case "end":
|
|
1217
1161
|
return _context2.stop();
|
|
1218
1162
|
}
|
|
@@ -1315,9 +1259,9 @@ _RemoteServer = RemoteServer;
|
|
|
1315
1259
|
// Parameters:
|
|
1316
1260
|
// 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.
|
|
1317
1261
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
1318
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
1319
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
1320
|
-
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
1262
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
|
|
1263
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
1264
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
1321
1265
|
(0, _defineProperty2.default)(RemoteServer, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
1322
1266
|
var _response$data;
|
|
1323
1267
|
var params,
|
|
@@ -1478,7 +1422,6 @@ _RemoteServer = RemoteServer;
|
|
|
1478
1422
|
// google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
1479
1423
|
// google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
1480
1424
|
// linode_secret_key - string - Linode: Secret Key
|
|
1481
|
-
// rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
1482
1425
|
// s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
1483
1426
|
// wasabi_secret_key - string - Wasabi: Secret Key
|
|
1484
1427
|
// aws_access_key - string - AWS Access Key.
|
|
@@ -1513,9 +1456,6 @@ _RemoteServer = RemoteServer;
|
|
|
1513
1456
|
// one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
1514
1457
|
// pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
1515
1458
|
// port - int64 - Port for remote server. Not needed for S3.
|
|
1516
|
-
// rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
1517
|
-
// rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
1518
|
-
// rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
1519
1459
|
// s3_bucket - string - S3 bucket name
|
|
1520
1460
|
// s3_compatible_access_key - string - S3-compatible: Access Key
|
|
1521
1461
|
// s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -1636,300 +1576,276 @@ _RemoteServer = RemoteServer;
|
|
|
1636
1576
|
}
|
|
1637
1577
|
throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
|
|
1638
1578
|
case 16:
|
|
1639
|
-
if (!(params.rackspace_api_key && !(0, _utils.isString)(params.rackspace_api_key))) {
|
|
1640
|
-
_context8.next = 17;
|
|
1641
|
-
break;
|
|
1642
|
-
}
|
|
1643
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_api_key must be of type String, received ".concat((0, _utils.getType)(params.rackspace_api_key)));
|
|
1644
|
-
case 17:
|
|
1645
1579
|
if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
|
|
1646
|
-
_context8.next =
|
|
1580
|
+
_context8.next = 17;
|
|
1647
1581
|
break;
|
|
1648
1582
|
}
|
|
1649
1583
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_secret_key must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_secret_key)));
|
|
1650
|
-
case
|
|
1584
|
+
case 17:
|
|
1651
1585
|
if (!(params.wasabi_secret_key && !(0, _utils.isString)(params.wasabi_secret_key))) {
|
|
1652
|
-
_context8.next =
|
|
1586
|
+
_context8.next = 18;
|
|
1653
1587
|
break;
|
|
1654
1588
|
}
|
|
1655
1589
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_secret_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_secret_key)));
|
|
1656
|
-
case
|
|
1590
|
+
case 18:
|
|
1657
1591
|
if (!(params.aws_access_key && !(0, _utils.isString)(params.aws_access_key))) {
|
|
1658
|
-
_context8.next =
|
|
1592
|
+
_context8.next = 19;
|
|
1659
1593
|
break;
|
|
1660
1594
|
}
|
|
1661
1595
|
throw new errors.InvalidParameterError("Bad parameter: aws_access_key must be of type String, received ".concat((0, _utils.getType)(params.aws_access_key)));
|
|
1662
|
-
case
|
|
1596
|
+
case 19:
|
|
1663
1597
|
if (!(params.azure_blob_storage_account && !(0, _utils.isString)(params.azure_blob_storage_account))) {
|
|
1664
|
-
_context8.next =
|
|
1598
|
+
_context8.next = 20;
|
|
1665
1599
|
break;
|
|
1666
1600
|
}
|
|
1667
1601
|
throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_account)));
|
|
1668
|
-
case
|
|
1602
|
+
case 20:
|
|
1669
1603
|
if (!(params.azure_blob_storage_container && !(0, _utils.isString)(params.azure_blob_storage_container))) {
|
|
1670
|
-
_context8.next =
|
|
1604
|
+
_context8.next = 21;
|
|
1671
1605
|
break;
|
|
1672
1606
|
}
|
|
1673
1607
|
throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_container must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_container)));
|
|
1674
|
-
case
|
|
1608
|
+
case 21:
|
|
1675
1609
|
if (!(params.azure_blob_storage_dns_suffix && !(0, _utils.isString)(params.azure_blob_storage_dns_suffix))) {
|
|
1676
|
-
_context8.next =
|
|
1610
|
+
_context8.next = 22;
|
|
1677
1611
|
break;
|
|
1678
1612
|
}
|
|
1679
1613
|
throw new errors.InvalidParameterError("Bad parameter: azure_blob_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_blob_storage_dns_suffix)));
|
|
1680
|
-
case
|
|
1614
|
+
case 22:
|
|
1681
1615
|
if (!(params.azure_files_storage_account && !(0, _utils.isString)(params.azure_files_storage_account))) {
|
|
1682
|
-
_context8.next =
|
|
1616
|
+
_context8.next = 23;
|
|
1683
1617
|
break;
|
|
1684
1618
|
}
|
|
1685
1619
|
throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_account must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_account)));
|
|
1686
|
-
case
|
|
1620
|
+
case 23:
|
|
1687
1621
|
if (!(params.azure_files_storage_dns_suffix && !(0, _utils.isString)(params.azure_files_storage_dns_suffix))) {
|
|
1688
|
-
_context8.next =
|
|
1622
|
+
_context8.next = 24;
|
|
1689
1623
|
break;
|
|
1690
1624
|
}
|
|
1691
1625
|
throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_dns_suffix must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_dns_suffix)));
|
|
1692
|
-
case
|
|
1626
|
+
case 24:
|
|
1693
1627
|
if (!(params.azure_files_storage_share_name && !(0, _utils.isString)(params.azure_files_storage_share_name))) {
|
|
1694
|
-
_context8.next =
|
|
1628
|
+
_context8.next = 25;
|
|
1695
1629
|
break;
|
|
1696
1630
|
}
|
|
1697
1631
|
throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_share_name must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_share_name)));
|
|
1698
|
-
case
|
|
1632
|
+
case 25:
|
|
1699
1633
|
if (!(params.backblaze_b2_bucket && !(0, _utils.isString)(params.backblaze_b2_bucket))) {
|
|
1700
|
-
_context8.next =
|
|
1634
|
+
_context8.next = 26;
|
|
1701
1635
|
break;
|
|
1702
1636
|
}
|
|
1703
1637
|
throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_bucket must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_bucket)));
|
|
1704
|
-
case
|
|
1638
|
+
case 26:
|
|
1705
1639
|
if (!(params.backblaze_b2_s3_endpoint && !(0, _utils.isString)(params.backblaze_b2_s3_endpoint))) {
|
|
1706
|
-
_context8.next =
|
|
1640
|
+
_context8.next = 27;
|
|
1707
1641
|
break;
|
|
1708
1642
|
}
|
|
1709
1643
|
throw new errors.InvalidParameterError("Bad parameter: backblaze_b2_s3_endpoint must be of type String, received ".concat((0, _utils.getType)(params.backblaze_b2_s3_endpoint)));
|
|
1710
|
-
case
|
|
1644
|
+
case 27:
|
|
1711
1645
|
if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
|
|
1712
|
-
_context8.next =
|
|
1646
|
+
_context8.next = 28;
|
|
1713
1647
|
break;
|
|
1714
1648
|
}
|
|
1715
1649
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
|
|
1716
|
-
case
|
|
1650
|
+
case 28:
|
|
1717
1651
|
if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
|
|
1718
|
-
_context8.next =
|
|
1652
|
+
_context8.next = 29;
|
|
1719
1653
|
break;
|
|
1720
1654
|
}
|
|
1721
1655
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
|
|
1722
|
-
case
|
|
1656
|
+
case 29:
|
|
1723
1657
|
if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
|
|
1724
|
-
_context8.next =
|
|
1658
|
+
_context8.next = 30;
|
|
1725
1659
|
break;
|
|
1726
1660
|
}
|
|
1727
1661
|
throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
|
|
1728
|
-
case
|
|
1662
|
+
case 30:
|
|
1729
1663
|
if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
|
|
1730
|
-
_context8.next =
|
|
1664
|
+
_context8.next = 31;
|
|
1731
1665
|
break;
|
|
1732
1666
|
}
|
|
1733
1667
|
throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
|
|
1734
|
-
case
|
|
1668
|
+
case 31:
|
|
1735
1669
|
if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
|
|
1736
|
-
_context8.next =
|
|
1670
|
+
_context8.next = 32;
|
|
1737
1671
|
break;
|
|
1738
1672
|
}
|
|
1739
1673
|
throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
|
|
1740
|
-
case
|
|
1674
|
+
case 32:
|
|
1741
1675
|
if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
|
|
1742
|
-
_context8.next =
|
|
1676
|
+
_context8.next = 33;
|
|
1743
1677
|
break;
|
|
1744
1678
|
}
|
|
1745
1679
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_permission_set must be of type String, received ".concat((0, _utils.getType)(params.files_agent_permission_set)));
|
|
1746
|
-
case
|
|
1680
|
+
case 33:
|
|
1747
1681
|
if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
|
|
1748
|
-
_context8.next =
|
|
1682
|
+
_context8.next = 34;
|
|
1749
1683
|
break;
|
|
1750
1684
|
}
|
|
1751
1685
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
|
|
1752
|
-
case
|
|
1686
|
+
case 34:
|
|
1753
1687
|
if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
|
|
1754
|
-
_context8.next =
|
|
1688
|
+
_context8.next = 35;
|
|
1755
1689
|
break;
|
|
1756
1690
|
}
|
|
1757
1691
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
|
|
1758
|
-
case
|
|
1692
|
+
case 35:
|
|
1759
1693
|
if (!(params.google_cloud_storage_bucket && !(0, _utils.isString)(params.google_cloud_storage_bucket))) {
|
|
1760
|
-
_context8.next =
|
|
1694
|
+
_context8.next = 36;
|
|
1761
1695
|
break;
|
|
1762
1696
|
}
|
|
1763
1697
|
throw new errors.InvalidParameterError("Bad parameter: google_cloud_storage_bucket must be of type String, received ".concat((0, _utils.getType)(params.google_cloud_storage_bucket)));
|
|
1764
|
-
case
|
|
1698
|
+
case 36:
|
|
1765
1699
|
if (!(params.google_cloud_storage_project_id && !(0, _utils.isString)(params.google_cloud_storage_project_id))) {
|
|
1766
|
-
_context8.next =
|
|
1700
|
+
_context8.next = 37;
|
|
1767
1701
|
break;
|
|
1768
1702
|
}
|
|
1769
1703
|
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)));
|
|
1770
|
-
case
|
|
1704
|
+
case 37:
|
|
1771
1705
|
if (!(params.google_cloud_storage_s3_compatible_access_key && !(0, _utils.isString)(params.google_cloud_storage_s3_compatible_access_key))) {
|
|
1772
|
-
_context8.next =
|
|
1706
|
+
_context8.next = 38;
|
|
1773
1707
|
break;
|
|
1774
1708
|
}
|
|
1775
1709
|
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)));
|
|
1776
|
-
case
|
|
1710
|
+
case 38:
|
|
1777
1711
|
if (!(params.hostname && !(0, _utils.isString)(params.hostname))) {
|
|
1778
|
-
_context8.next =
|
|
1712
|
+
_context8.next = 39;
|
|
1779
1713
|
break;
|
|
1780
1714
|
}
|
|
1781
1715
|
throw new errors.InvalidParameterError("Bad parameter: hostname must be of type String, received ".concat((0, _utils.getType)(params.hostname)));
|
|
1782
|
-
case
|
|
1716
|
+
case 39:
|
|
1783
1717
|
if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
|
|
1784
|
-
_context8.next =
|
|
1718
|
+
_context8.next = 40;
|
|
1785
1719
|
break;
|
|
1786
1720
|
}
|
|
1787
1721
|
throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
|
|
1788
|
-
case
|
|
1722
|
+
case 40:
|
|
1789
1723
|
if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
|
|
1790
|
-
_context8.next =
|
|
1724
|
+
_context8.next = 41;
|
|
1791
1725
|
break;
|
|
1792
1726
|
}
|
|
1793
1727
|
throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
|
|
1794
|
-
case
|
|
1728
|
+
case 41:
|
|
1795
1729
|
if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
|
|
1796
|
-
_context8.next =
|
|
1730
|
+
_context8.next = 42;
|
|
1797
1731
|
break;
|
|
1798
1732
|
}
|
|
1799
1733
|
throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
|
|
1800
|
-
case
|
|
1734
|
+
case 42:
|
|
1801
1735
|
if (!(params.max_connections && !(0, _utils.isInt)(params.max_connections))) {
|
|
1802
|
-
_context8.next =
|
|
1736
|
+
_context8.next = 43;
|
|
1803
1737
|
break;
|
|
1804
1738
|
}
|
|
1805
1739
|
throw new errors.InvalidParameterError("Bad parameter: max_connections must be of type Int, received ".concat((0, _utils.getType)(params.max_connections)));
|
|
1806
|
-
case
|
|
1740
|
+
case 43:
|
|
1807
1741
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
1808
|
-
_context8.next =
|
|
1742
|
+
_context8.next = 44;
|
|
1809
1743
|
break;
|
|
1810
1744
|
}
|
|
1811
1745
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
1812
|
-
case
|
|
1746
|
+
case 44:
|
|
1813
1747
|
if (!(params.one_drive_account_type && !(0, _utils.isString)(params.one_drive_account_type))) {
|
|
1814
|
-
_context8.next =
|
|
1748
|
+
_context8.next = 45;
|
|
1815
1749
|
break;
|
|
1816
1750
|
}
|
|
1817
1751
|
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)));
|
|
1818
|
-
case
|
|
1752
|
+
case 45:
|
|
1819
1753
|
if (!(params.port && !(0, _utils.isInt)(params.port))) {
|
|
1820
|
-
_context8.next =
|
|
1754
|
+
_context8.next = 46;
|
|
1821
1755
|
break;
|
|
1822
1756
|
}
|
|
1823
1757
|
throw new errors.InvalidParameterError("Bad parameter: port must be of type Int, received ".concat((0, _utils.getType)(params.port)));
|
|
1824
|
-
case
|
|
1825
|
-
if (!(params.rackspace_container && !(0, _utils.isString)(params.rackspace_container))) {
|
|
1826
|
-
_context8.next = 48;
|
|
1827
|
-
break;
|
|
1828
|
-
}
|
|
1829
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_container must be of type String, received ".concat((0, _utils.getType)(params.rackspace_container)));
|
|
1830
|
-
case 48:
|
|
1831
|
-
if (!(params.rackspace_region && !(0, _utils.isString)(params.rackspace_region))) {
|
|
1832
|
-
_context8.next = 49;
|
|
1833
|
-
break;
|
|
1834
|
-
}
|
|
1835
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_region must be of type String, received ".concat((0, _utils.getType)(params.rackspace_region)));
|
|
1836
|
-
case 49:
|
|
1837
|
-
if (!(params.rackspace_username && !(0, _utils.isString)(params.rackspace_username))) {
|
|
1838
|
-
_context8.next = 50;
|
|
1839
|
-
break;
|
|
1840
|
-
}
|
|
1841
|
-
throw new errors.InvalidParameterError("Bad parameter: rackspace_username must be of type String, received ".concat((0, _utils.getType)(params.rackspace_username)));
|
|
1842
|
-
case 50:
|
|
1758
|
+
case 46:
|
|
1843
1759
|
if (!(params.s3_bucket && !(0, _utils.isString)(params.s3_bucket))) {
|
|
1844
|
-
_context8.next =
|
|
1760
|
+
_context8.next = 47;
|
|
1845
1761
|
break;
|
|
1846
1762
|
}
|
|
1847
1763
|
throw new errors.InvalidParameterError("Bad parameter: s3_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_bucket)));
|
|
1848
|
-
case
|
|
1764
|
+
case 47:
|
|
1849
1765
|
if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
|
|
1850
|
-
_context8.next =
|
|
1766
|
+
_context8.next = 48;
|
|
1851
1767
|
break;
|
|
1852
1768
|
}
|
|
1853
1769
|
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)));
|
|
1854
|
-
case
|
|
1770
|
+
case 48:
|
|
1855
1771
|
if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
|
|
1856
|
-
_context8.next =
|
|
1772
|
+
_context8.next = 49;
|
|
1857
1773
|
break;
|
|
1858
1774
|
}
|
|
1859
1775
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
|
|
1860
|
-
case
|
|
1776
|
+
case 49:
|
|
1861
1777
|
if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
|
|
1862
|
-
_context8.next =
|
|
1778
|
+
_context8.next = 50;
|
|
1863
1779
|
break;
|
|
1864
1780
|
}
|
|
1865
1781
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
|
|
1866
|
-
case
|
|
1782
|
+
case 50:
|
|
1867
1783
|
if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
|
|
1868
|
-
_context8.next =
|
|
1784
|
+
_context8.next = 51;
|
|
1869
1785
|
break;
|
|
1870
1786
|
}
|
|
1871
1787
|
throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
|
|
1872
|
-
case
|
|
1788
|
+
case 51:
|
|
1873
1789
|
if (!(params.s3_region && !(0, _utils.isString)(params.s3_region))) {
|
|
1874
|
-
_context8.next =
|
|
1790
|
+
_context8.next = 52;
|
|
1875
1791
|
break;
|
|
1876
1792
|
}
|
|
1877
1793
|
throw new errors.InvalidParameterError("Bad parameter: s3_region must be of type String, received ".concat((0, _utils.getType)(params.s3_region)));
|
|
1878
|
-
case
|
|
1794
|
+
case 52:
|
|
1879
1795
|
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
1880
|
-
_context8.next =
|
|
1796
|
+
_context8.next = 53;
|
|
1881
1797
|
break;
|
|
1882
1798
|
}
|
|
1883
1799
|
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
1884
|
-
case
|
|
1800
|
+
case 53:
|
|
1885
1801
|
if (!(params.server_host_key && !(0, _utils.isString)(params.server_host_key))) {
|
|
1886
|
-
_context8.next =
|
|
1802
|
+
_context8.next = 54;
|
|
1887
1803
|
break;
|
|
1888
1804
|
}
|
|
1889
1805
|
throw new errors.InvalidParameterError("Bad parameter: server_host_key must be of type String, received ".concat((0, _utils.getType)(params.server_host_key)));
|
|
1890
|
-
case
|
|
1806
|
+
case 54:
|
|
1891
1807
|
if (!(params.server_type && !(0, _utils.isString)(params.server_type))) {
|
|
1892
|
-
_context8.next =
|
|
1808
|
+
_context8.next = 55;
|
|
1893
1809
|
break;
|
|
1894
1810
|
}
|
|
1895
1811
|
throw new errors.InvalidParameterError("Bad parameter: server_type must be of type String, received ".concat((0, _utils.getType)(params.server_type)));
|
|
1896
|
-
case
|
|
1812
|
+
case 55:
|
|
1897
1813
|
if (!(params.ssl && !(0, _utils.isString)(params.ssl))) {
|
|
1898
|
-
_context8.next =
|
|
1814
|
+
_context8.next = 56;
|
|
1899
1815
|
break;
|
|
1900
1816
|
}
|
|
1901
1817
|
throw new errors.InvalidParameterError("Bad parameter: ssl must be of type String, received ".concat((0, _utils.getType)(params.ssl)));
|
|
1902
|
-
case
|
|
1818
|
+
case 56:
|
|
1903
1819
|
if (!(params.username && !(0, _utils.isString)(params.username))) {
|
|
1904
|
-
_context8.next =
|
|
1820
|
+
_context8.next = 57;
|
|
1905
1821
|
break;
|
|
1906
1822
|
}
|
|
1907
1823
|
throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
|
|
1908
|
-
case
|
|
1824
|
+
case 57:
|
|
1909
1825
|
if (!(params.wasabi_access_key && !(0, _utils.isString)(params.wasabi_access_key))) {
|
|
1910
|
-
_context8.next =
|
|
1826
|
+
_context8.next = 58;
|
|
1911
1827
|
break;
|
|
1912
1828
|
}
|
|
1913
1829
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_access_key must be of type String, received ".concat((0, _utils.getType)(params.wasabi_access_key)));
|
|
1914
|
-
case
|
|
1830
|
+
case 58:
|
|
1915
1831
|
if (!(params.wasabi_bucket && !(0, _utils.isString)(params.wasabi_bucket))) {
|
|
1916
|
-
_context8.next =
|
|
1832
|
+
_context8.next = 59;
|
|
1917
1833
|
break;
|
|
1918
1834
|
}
|
|
1919
1835
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_bucket must be of type String, received ".concat((0, _utils.getType)(params.wasabi_bucket)));
|
|
1920
|
-
case
|
|
1836
|
+
case 59:
|
|
1921
1837
|
if (!(params.wasabi_region && !(0, _utils.isString)(params.wasabi_region))) {
|
|
1922
|
-
_context8.next =
|
|
1838
|
+
_context8.next = 60;
|
|
1923
1839
|
break;
|
|
1924
1840
|
}
|
|
1925
1841
|
throw new errors.InvalidParameterError("Bad parameter: wasabi_region must be of type String, received ".concat((0, _utils.getType)(params.wasabi_region)));
|
|
1926
|
-
case
|
|
1927
|
-
_context8.next =
|
|
1842
|
+
case 60:
|
|
1843
|
+
_context8.next = 61;
|
|
1928
1844
|
return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
|
|
1929
|
-
case
|
|
1845
|
+
case 61:
|
|
1930
1846
|
response = _context8.sent;
|
|
1931
1847
|
return _context8.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
|
|
1932
|
-
case
|
|
1848
|
+
case 62:
|
|
1933
1849
|
case "end":
|
|
1934
1850
|
return _context8.stop();
|
|
1935
1851
|
}
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
|
@@ -210,27 +210,6 @@ class RemoteServer {
|
|
|
210
210
|
this.attributes.wasabi_access_key = value
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// string # Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
214
|
-
getRackspaceUsername = () => this.attributes.rackspace_username
|
|
215
|
-
|
|
216
|
-
setRackspaceUsername = value => {
|
|
217
|
-
this.attributes.rackspace_username = value
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// string # Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
221
|
-
getRackspaceRegion = () => this.attributes.rackspace_region
|
|
222
|
-
|
|
223
|
-
setRackspaceRegion = value => {
|
|
224
|
-
this.attributes.rackspace_region = value
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// string # Rackspace: The name of the container (top level directory) where files will sync.
|
|
228
|
-
getRackspaceContainer = () => this.attributes.rackspace_container
|
|
229
|
-
|
|
230
|
-
setRackspaceContainer = value => {
|
|
231
|
-
this.attributes.rackspace_container = value
|
|
232
|
-
}
|
|
233
|
-
|
|
234
213
|
// string # Either `in_setup` or `complete`
|
|
235
214
|
getAuthStatus = () => this.attributes.auth_status
|
|
236
215
|
|
|
@@ -553,13 +532,6 @@ class RemoteServer {
|
|
|
553
532
|
this.attributes.linode_secret_key = value
|
|
554
533
|
}
|
|
555
534
|
|
|
556
|
-
// string # Rackspace: API key from the Rackspace Cloud Control Panel
|
|
557
|
-
getRackspaceApiKey = () => this.attributes.rackspace_api_key
|
|
558
|
-
|
|
559
|
-
setRackspaceApiKey = value => {
|
|
560
|
-
this.attributes.rackspace_api_key = value
|
|
561
|
-
}
|
|
562
|
-
|
|
563
535
|
// string # S3-compatible: Secret Key
|
|
564
536
|
getS3CompatibleSecretKey = () => this.attributes.s3_compatible_secret_key
|
|
565
537
|
|
|
@@ -678,7 +650,6 @@ class RemoteServer {
|
|
|
678
650
|
// google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
679
651
|
// google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
680
652
|
// linode_secret_key - string - Linode: Secret Key
|
|
681
|
-
// rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
682
653
|
// s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
683
654
|
// wasabi_secret_key - string - Wasabi: Secret Key
|
|
684
655
|
// aws_access_key - string - AWS Access Key.
|
|
@@ -713,9 +684,6 @@ class RemoteServer {
|
|
|
713
684
|
// one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
714
685
|
// pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
715
686
|
// port - int64 - Port for remote server. Not needed for S3.
|
|
716
|
-
// rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
717
|
-
// rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
718
|
-
// rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
719
687
|
// s3_bucket - string - S3 bucket name
|
|
720
688
|
// s3_compatible_access_key - string - S3-compatible: Access Key
|
|
721
689
|
// s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -808,10 +776,6 @@ class RemoteServer {
|
|
|
808
776
|
throw new errors.InvalidParameterError(`Bad parameter: linode_secret_key must be of type String, received ${getType(params.linode_secret_key)}`)
|
|
809
777
|
}
|
|
810
778
|
|
|
811
|
-
if (params.rackspace_api_key && !isString(params.rackspace_api_key)) {
|
|
812
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_api_key must be of type String, received ${getType(params.rackspace_api_key)}`)
|
|
813
|
-
}
|
|
814
|
-
|
|
815
779
|
if (params.s3_compatible_secret_key && !isString(params.s3_compatible_secret_key)) {
|
|
816
780
|
throw new errors.InvalidParameterError(`Bad parameter: s3_compatible_secret_key must be of type String, received ${getType(params.s3_compatible_secret_key)}`)
|
|
817
781
|
}
|
|
@@ -932,18 +896,6 @@ class RemoteServer {
|
|
|
932
896
|
throw new errors.InvalidParameterError(`Bad parameter: port must be of type Int, received ${getType(params.port)}`)
|
|
933
897
|
}
|
|
934
898
|
|
|
935
|
-
if (params.rackspace_container && !isString(params.rackspace_container)) {
|
|
936
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_container must be of type String, received ${getType(params.rackspace_container)}`)
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
if (params.rackspace_region && !isString(params.rackspace_region)) {
|
|
940
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_region must be of type String, received ${getType(params.rackspace_region)}`)
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
if (params.rackspace_username && !isString(params.rackspace_username)) {
|
|
944
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_username must be of type String, received ${getType(params.rackspace_username)}`)
|
|
945
|
-
}
|
|
946
|
-
|
|
947
899
|
if (params.s3_bucket && !isString(params.s3_bucket)) {
|
|
948
900
|
throw new errors.InvalidParameterError(`Bad parameter: s3_bucket must be of type String, received ${getType(params.s3_bucket)}`)
|
|
949
901
|
}
|
|
@@ -1056,9 +1008,9 @@ class RemoteServer {
|
|
|
1056
1008
|
// Parameters:
|
|
1057
1009
|
// 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.
|
|
1058
1010
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
1059
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
1060
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
1061
|
-
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `
|
|
1011
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
|
|
1012
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
1013
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
1062
1014
|
static list = async (params = {}, options = {}) => {
|
|
1063
1015
|
if (params.cursor && !isString(params.cursor)) {
|
|
1064
1016
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
|
|
@@ -1142,7 +1094,6 @@ class RemoteServer {
|
|
|
1142
1094
|
// google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
1143
1095
|
// google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
1144
1096
|
// linode_secret_key - string - Linode: Secret Key
|
|
1145
|
-
// rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
1146
1097
|
// s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
1147
1098
|
// wasabi_secret_key - string - Wasabi: Secret Key
|
|
1148
1099
|
// aws_access_key - string - AWS Access Key.
|
|
@@ -1177,9 +1128,6 @@ class RemoteServer {
|
|
|
1177
1128
|
// one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
1178
1129
|
// pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
1179
1130
|
// port - int64 - Port for remote server. Not needed for S3.
|
|
1180
|
-
// rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
1181
|
-
// rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
1182
|
-
// rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
1183
1131
|
// s3_bucket - string - S3 bucket name
|
|
1184
1132
|
// s3_compatible_access_key - string - S3-compatible: Access Key
|
|
1185
1133
|
// s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -1259,10 +1207,6 @@ class RemoteServer {
|
|
|
1259
1207
|
throw new errors.InvalidParameterError(`Bad parameter: linode_secret_key must be of type String, received ${getType(params.linode_secret_key)}`)
|
|
1260
1208
|
}
|
|
1261
1209
|
|
|
1262
|
-
if (params.rackspace_api_key && !isString(params.rackspace_api_key)) {
|
|
1263
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_api_key must be of type String, received ${getType(params.rackspace_api_key)}`)
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
1210
|
if (params.s3_compatible_secret_key && !isString(params.s3_compatible_secret_key)) {
|
|
1267
1211
|
throw new errors.InvalidParameterError(`Bad parameter: s3_compatible_secret_key must be of type String, received ${getType(params.s3_compatible_secret_key)}`)
|
|
1268
1212
|
}
|
|
@@ -1383,18 +1327,6 @@ class RemoteServer {
|
|
|
1383
1327
|
throw new errors.InvalidParameterError(`Bad parameter: port must be of type Int, received ${getType(params.port)}`)
|
|
1384
1328
|
}
|
|
1385
1329
|
|
|
1386
|
-
if (params.rackspace_container && !isString(params.rackspace_container)) {
|
|
1387
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_container must be of type String, received ${getType(params.rackspace_container)}`)
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
if (params.rackspace_region && !isString(params.rackspace_region)) {
|
|
1391
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_region must be of type String, received ${getType(params.rackspace_region)}`)
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
if (params.rackspace_username && !isString(params.rackspace_username)) {
|
|
1395
|
-
throw new errors.InvalidParameterError(`Bad parameter: rackspace_username must be of type String, received ${getType(params.rackspace_username)}`)
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
1330
|
if (params.s3_bucket && !isString(params.s3_bucket)) {
|
|
1399
1331
|
throw new errors.InvalidParameterError(`Bad parameter: s3_bucket must be of type String, received ${getType(params.s3_bucket)}`)
|
|
1400
1332
|
}
|