files.com 1.0.247 → 1.0.249
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 +16 -2
- package/lib/models/AccountLineItem.js +14 -0
- package/lib/models/Action.js +13 -0
- package/lib/models/ActionNotificationExport.js +27 -0
- package/lib/models/ActionNotificationExportResult.js +15 -0
- package/lib/models/ActionWebhookFailure.js +1 -0
- package/lib/models/ApiKey.js +42 -0
- package/lib/models/App.js +26 -0
- package/lib/models/As2IncomingMessage.js +46 -0
- package/lib/models/As2OutgoingMessage.js +42 -0
- package/lib/models/As2Partner.js +29 -0
- package/lib/models/As2Station.js +31 -0
- package/lib/models/Auto.js +1 -0
- package/lib/models/Automation.js +72 -0
- package/lib/models/AutomationRun.js +20 -0
- package/lib/models/BandwidthSnapshot.js +19 -0
- package/lib/models/Behavior.js +57 -0
- package/lib/models/Bundle.js +98 -0
- package/lib/models/BundleDownload.js +16 -0
- package/lib/models/BundleNotification.js +20 -0
- package/lib/models/BundleRecipient.js +28 -0
- package/lib/models/BundleRegistration.js +18 -0
- package/lib/models/Clickwrap.js +23 -0
- package/lib/models/DnsRecord.js +7 -0
- package/lib/models/Errors.js +2 -0
- package/lib/models/ExternalEvent.js +26 -0
- package/lib/models/File.js +88 -0
- package/lib/models/FileAction.js +2 -0
- package/lib/models/FileComment.js +13 -0
- package/lib/models/FileCommentReaction.js +8 -0
- package/lib/models/FileMigration.js +11 -0
- package/lib/models/FileUploadPart.js +15 -0
- package/lib/models/Folder.js +33 -0
- package/lib/models/FormField.js +8 -0
- package/lib/models/FormFieldSet.js +27 -0
- package/lib/models/Group.js +29 -0
- package/lib/models/GroupUser.js +22 -0
- package/lib/models/History.js +57 -0
- package/lib/models/HistoryExport.js +51 -0
- package/lib/models/HistoryExportResult.js +29 -0
- package/lib/models/Image.js +2 -0
- package/lib/models/InboxRecipient.js +28 -0
- package/lib/models/InboxRegistration.js +15 -0
- package/lib/models/InboxUpload.js +15 -0
- package/lib/models/Invoice.js +19 -0
- package/lib/models/InvoiceLineItem.js +9 -0
- package/lib/models/IpAddress.js +13 -0
- package/lib/models/Lock.js +25 -0
- package/lib/models/Message.js +22 -0
- package/lib/models/MessageComment.js +16 -0
- package/lib/models/MessageCommentReaction.js +13 -0
- package/lib/models/MessageReaction.js +13 -0
- package/lib/models/Notification.js +70 -0
- package/lib/models/Payment.js +19 -0
- package/lib/models/PaymentLineItem.js +4 -0
- package/lib/models/Permission.js +29 -0
- package/lib/models/Preview.js +5 -0
- package/lib/models/Priority.js +6 -0
- package/lib/models/Project.js +11 -0
- package/lib/models/PublicIpAddress.js +4 -0
- package/lib/models/PublicKey.js +18 -0
- package/lib/models/RemoteBandwidthSnapshot.js +15 -0
- package/lib/models/RemoteServer.js +253 -11
- package/lib/models/RemoteServerConfigurationFile.js +12 -0
- package/lib/models/Request.js +25 -0
- package/lib/models/Session.js +13 -0
- package/lib/models/SettingsChange.js +15 -0
- package/lib/models/SftpHostKey.js +16 -0
- package/lib/models/Site.js +276 -0
- package/lib/models/SsoStrategy.js +49 -0
- package/lib/models/Status.js +7 -0
- package/lib/models/Style.js +9 -0
- package/lib/models/UsageDailySnapshot.js +21 -0
- package/lib/models/UsageSnapshot.js +18 -0
- package/lib/models/User.js +183 -0
- package/lib/models/UserCipherUse.js +10 -0
- package/lib/models/UserRequest.js +13 -0
- package/lib/models/WebhookTest.js +24 -0
- package/package.json +1 -1
- package/src/models/RemoteServer.js +41 -0
@@ -31,372 +31,461 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Remote server ID
|
34
35
|
(0, _defineProperty2.default)(this, "getId", function () {
|
35
36
|
return _this.attributes.id;
|
36
37
|
});
|
37
38
|
(0, _defineProperty2.default)(this, "setId", function (value) {
|
38
39
|
_this.attributes.id = value;
|
39
40
|
});
|
41
|
+
// boolean # If true, this server has been disabled due to failures. Make any change or set disabled to false to clear this flag.
|
40
42
|
(0, _defineProperty2.default)(this, "getDisabled", function () {
|
41
43
|
return _this.attributes.disabled;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setDisabled", function (value) {
|
44
46
|
_this.attributes.disabled = value;
|
45
47
|
});
|
48
|
+
// string # Type of authentication method
|
46
49
|
(0, _defineProperty2.default)(this, "getAuthenticationMethod", function () {
|
47
50
|
return _this.attributes.authentication_method;
|
48
51
|
});
|
49
52
|
(0, _defineProperty2.default)(this, "setAuthenticationMethod", function (value) {
|
50
53
|
_this.attributes.authentication_method = value;
|
51
54
|
});
|
55
|
+
// string # Hostname or IP address
|
52
56
|
(0, _defineProperty2.default)(this, "getHostname", function () {
|
53
57
|
return _this.attributes.hostname;
|
54
58
|
});
|
55
59
|
(0, _defineProperty2.default)(this, "setHostname", function (value) {
|
56
60
|
_this.attributes.hostname = value;
|
57
61
|
});
|
62
|
+
// string # Initial home folder on remote server
|
58
63
|
(0, _defineProperty2.default)(this, "getRemoteHomePath", function () {
|
59
64
|
return _this.attributes.remote_home_path;
|
60
65
|
});
|
61
66
|
(0, _defineProperty2.default)(this, "setRemoteHomePath", function (value) {
|
62
67
|
_this.attributes.remote_home_path = value;
|
63
68
|
});
|
69
|
+
// string # Internal name for your reference
|
64
70
|
(0, _defineProperty2.default)(this, "getName", function () {
|
65
71
|
return _this.attributes.name;
|
66
72
|
});
|
67
73
|
(0, _defineProperty2.default)(this, "setName", function (value) {
|
68
74
|
_this.attributes.name = value;
|
69
75
|
});
|
76
|
+
// int64 # Port for remote server. Not needed for S3.
|
70
77
|
(0, _defineProperty2.default)(this, "getPort", function () {
|
71
78
|
return _this.attributes.port;
|
72
79
|
});
|
73
80
|
(0, _defineProperty2.default)(this, "setPort", function (value) {
|
74
81
|
_this.attributes.port = value;
|
75
82
|
});
|
83
|
+
// int64 # Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
76
84
|
(0, _defineProperty2.default)(this, "getMaxConnections", function () {
|
77
85
|
return _this.attributes.max_connections;
|
78
86
|
});
|
79
87
|
(0, _defineProperty2.default)(this, "setMaxConnections", function (value) {
|
80
88
|
_this.attributes.max_connections = value;
|
81
89
|
});
|
90
|
+
// 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 sitewide setting which will force it to true.
|
82
91
|
(0, _defineProperty2.default)(this, "getPinToSiteRegion", function () {
|
83
92
|
return _this.attributes.pin_to_site_region;
|
84
93
|
});
|
85
94
|
(0, _defineProperty2.default)(this, "setPinToSiteRegion", function (value) {
|
86
95
|
_this.attributes.pin_to_site_region = value;
|
87
96
|
});
|
97
|
+
// string # If set, all communciations with this remote server are made through the provided region.
|
88
98
|
(0, _defineProperty2.default)(this, "getPinnedRegion", function () {
|
89
99
|
return _this.attributes.pinned_region;
|
90
100
|
});
|
91
101
|
(0, _defineProperty2.default)(this, "setPinnedRegion", function (value) {
|
92
102
|
_this.attributes.pinned_region = value;
|
93
103
|
});
|
104
|
+
// string # S3 bucket name
|
94
105
|
(0, _defineProperty2.default)(this, "getS3Bucket", function () {
|
95
106
|
return _this.attributes.s3_bucket;
|
96
107
|
});
|
97
108
|
(0, _defineProperty2.default)(this, "setS3Bucket", function (value) {
|
98
109
|
_this.attributes.s3_bucket = value;
|
99
110
|
});
|
111
|
+
// string # S3 region
|
100
112
|
(0, _defineProperty2.default)(this, "getS3Region", function () {
|
101
113
|
return _this.attributes.s3_region;
|
102
114
|
});
|
103
115
|
(0, _defineProperty2.default)(this, "setS3Region", function (value) {
|
104
116
|
_this.attributes.s3_region = value;
|
105
117
|
});
|
118
|
+
// string # AWS Access Key.
|
106
119
|
(0, _defineProperty2.default)(this, "getAwsAccessKey", function () {
|
107
120
|
return _this.attributes.aws_access_key;
|
108
121
|
});
|
109
122
|
(0, _defineProperty2.default)(this, "setAwsAccessKey", function (value) {
|
110
123
|
_this.attributes.aws_access_key = value;
|
111
124
|
});
|
125
|
+
// string # Remote server certificate
|
112
126
|
(0, _defineProperty2.default)(this, "getServerCertificate", function () {
|
113
127
|
return _this.attributes.server_certificate;
|
114
128
|
});
|
115
129
|
(0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
|
116
130
|
_this.attributes.server_certificate = value;
|
117
131
|
});
|
132
|
+
// string # Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
118
133
|
(0, _defineProperty2.default)(this, "getServerHostKey", function () {
|
119
134
|
return _this.attributes.server_host_key;
|
120
135
|
});
|
121
136
|
(0, _defineProperty2.default)(this, "setServerHostKey", function (value) {
|
122
137
|
_this.attributes.server_host_key = value;
|
123
138
|
});
|
139
|
+
// string # Remote server type.
|
124
140
|
(0, _defineProperty2.default)(this, "getServerType", function () {
|
125
141
|
return _this.attributes.server_type;
|
126
142
|
});
|
127
143
|
(0, _defineProperty2.default)(this, "setServerType", function (value) {
|
128
144
|
_this.attributes.server_type = value;
|
129
145
|
});
|
146
|
+
// string # Should we require SSL?
|
130
147
|
(0, _defineProperty2.default)(this, "getSsl", function () {
|
131
148
|
return _this.attributes.ssl;
|
132
149
|
});
|
133
150
|
(0, _defineProperty2.default)(this, "setSsl", function (value) {
|
134
151
|
_this.attributes.ssl = value;
|
135
152
|
});
|
153
|
+
// string # Remote server username. Not needed for S3 buckets.
|
136
154
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
137
155
|
return _this.attributes.username;
|
138
156
|
});
|
139
157
|
(0, _defineProperty2.default)(this, "setUsername", function (value) {
|
140
158
|
_this.attributes.username = value;
|
141
159
|
});
|
160
|
+
// string # Google Cloud Storage bucket name
|
142
161
|
(0, _defineProperty2.default)(this, "getGoogleCloudStorageBucket", function () {
|
143
162
|
return _this.attributes.google_cloud_storage_bucket;
|
144
163
|
});
|
145
164
|
(0, _defineProperty2.default)(this, "setGoogleCloudStorageBucket", function (value) {
|
146
165
|
_this.attributes.google_cloud_storage_bucket = value;
|
147
166
|
});
|
167
|
+
// string # Google Cloud Project ID
|
148
168
|
(0, _defineProperty2.default)(this, "getGoogleCloudStorageProjectId", function () {
|
149
169
|
return _this.attributes.google_cloud_storage_project_id;
|
150
170
|
});
|
151
171
|
(0, _defineProperty2.default)(this, "setGoogleCloudStorageProjectId", function (value) {
|
152
172
|
_this.attributes.google_cloud_storage_project_id = value;
|
153
173
|
});
|
174
|
+
// string # Backblaze B2 Cloud Storage S3 Endpoint
|
154
175
|
(0, _defineProperty2.default)(this, "getBackblazeB2S3Endpoint", function () {
|
155
176
|
return _this.attributes.backblaze_b2_s3_endpoint;
|
156
177
|
});
|
157
178
|
(0, _defineProperty2.default)(this, "setBackblazeB2S3Endpoint", function (value) {
|
158
179
|
_this.attributes.backblaze_b2_s3_endpoint = value;
|
159
180
|
});
|
181
|
+
// string # Backblaze B2 Cloud Storage Bucket name
|
160
182
|
(0, _defineProperty2.default)(this, "getBackblazeB2Bucket", function () {
|
161
183
|
return _this.attributes.backblaze_b2_bucket;
|
162
184
|
});
|
163
185
|
(0, _defineProperty2.default)(this, "setBackblazeB2Bucket", function (value) {
|
164
186
|
_this.attributes.backblaze_b2_bucket = value;
|
165
187
|
});
|
188
|
+
// string # Wasabi Bucket name
|
166
189
|
(0, _defineProperty2.default)(this, "getWasabiBucket", function () {
|
167
190
|
return _this.attributes.wasabi_bucket;
|
168
191
|
});
|
169
192
|
(0, _defineProperty2.default)(this, "setWasabiBucket", function (value) {
|
170
193
|
_this.attributes.wasabi_bucket = value;
|
171
194
|
});
|
195
|
+
// string # Wasabi region
|
172
196
|
(0, _defineProperty2.default)(this, "getWasabiRegion", function () {
|
173
197
|
return _this.attributes.wasabi_region;
|
174
198
|
});
|
175
199
|
(0, _defineProperty2.default)(this, "setWasabiRegion", function (value) {
|
176
200
|
_this.attributes.wasabi_region = value;
|
177
201
|
});
|
202
|
+
// string # Wasabi access key.
|
178
203
|
(0, _defineProperty2.default)(this, "getWasabiAccessKey", function () {
|
179
204
|
return _this.attributes.wasabi_access_key;
|
180
205
|
});
|
181
206
|
(0, _defineProperty2.default)(this, "setWasabiAccessKey", function (value) {
|
182
207
|
_this.attributes.wasabi_access_key = value;
|
183
208
|
});
|
209
|
+
// string # Rackspace username used to login to the Rackspace Cloud Control Panel.
|
184
210
|
(0, _defineProperty2.default)(this, "getRackspaceUsername", function () {
|
185
211
|
return _this.attributes.rackspace_username;
|
186
212
|
});
|
187
213
|
(0, _defineProperty2.default)(this, "setRackspaceUsername", function (value) {
|
188
214
|
_this.attributes.rackspace_username = value;
|
189
215
|
});
|
216
|
+
// string # Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
190
217
|
(0, _defineProperty2.default)(this, "getRackspaceRegion", function () {
|
191
218
|
return _this.attributes.rackspace_region;
|
192
219
|
});
|
193
220
|
(0, _defineProperty2.default)(this, "setRackspaceRegion", function (value) {
|
194
221
|
_this.attributes.rackspace_region = value;
|
195
222
|
});
|
223
|
+
// string # The name of the container (top level directory) where files will sync.
|
196
224
|
(0, _defineProperty2.default)(this, "getRackspaceContainer", function () {
|
197
225
|
return _this.attributes.rackspace_container;
|
198
226
|
});
|
199
227
|
(0, _defineProperty2.default)(this, "setRackspaceContainer", function (value) {
|
200
228
|
_this.attributes.rackspace_container = value;
|
201
229
|
});
|
230
|
+
// string # Returns link to login with an Oauth provider
|
202
231
|
(0, _defineProperty2.default)(this, "getAuthSetupLink", function () {
|
203
232
|
return _this.attributes.auth_setup_link;
|
204
233
|
});
|
205
234
|
(0, _defineProperty2.default)(this, "setAuthSetupLink", function (value) {
|
206
235
|
_this.attributes.auth_setup_link = value;
|
207
236
|
});
|
237
|
+
// string # Either `in_setup` or `complete`
|
208
238
|
(0, _defineProperty2.default)(this, "getAuthStatus", function () {
|
209
239
|
return _this.attributes.auth_status;
|
210
240
|
});
|
211
241
|
(0, _defineProperty2.default)(this, "setAuthStatus", function (value) {
|
212
242
|
_this.attributes.auth_status = value;
|
213
243
|
});
|
244
|
+
// string # Describes the authorized account
|
214
245
|
(0, _defineProperty2.default)(this, "getAuthAccountName", function () {
|
215
246
|
return _this.attributes.auth_account_name;
|
216
247
|
});
|
217
248
|
(0, _defineProperty2.default)(this, "setAuthAccountName", function (value) {
|
218
249
|
_this.attributes.auth_account_name = value;
|
219
250
|
});
|
251
|
+
// string # Either personal or business_other account types
|
220
252
|
(0, _defineProperty2.default)(this, "getOneDriveAccountType", function () {
|
221
253
|
return _this.attributes.one_drive_account_type;
|
222
254
|
});
|
223
255
|
(0, _defineProperty2.default)(this, "setOneDriveAccountType", function (value) {
|
224
256
|
_this.attributes.one_drive_account_type = value;
|
225
257
|
});
|
258
|
+
// string # Azure Blob Storage Account name
|
226
259
|
(0, _defineProperty2.default)(this, "getAzureBlobStorageAccount", function () {
|
227
260
|
return _this.attributes.azure_blob_storage_account;
|
228
261
|
});
|
229
262
|
(0, _defineProperty2.default)(this, "setAzureBlobStorageAccount", function (value) {
|
230
263
|
_this.attributes.azure_blob_storage_account = value;
|
231
264
|
});
|
265
|
+
// string # Shared Access Signature (SAS) token
|
232
266
|
(0, _defineProperty2.default)(this, "getAzureBlobStorageSasToken", function () {
|
233
267
|
return _this.attributes.azure_blob_storage_sas_token;
|
234
268
|
});
|
235
269
|
(0, _defineProperty2.default)(this, "setAzureBlobStorageSasToken", function (value) {
|
236
270
|
_this.attributes.azure_blob_storage_sas_token = value;
|
237
271
|
});
|
272
|
+
// string # Azure Blob Storage Container name
|
238
273
|
(0, _defineProperty2.default)(this, "getAzureBlobStorageContainer", function () {
|
239
274
|
return _this.attributes.azure_blob_storage_container;
|
240
275
|
});
|
241
276
|
(0, _defineProperty2.default)(this, "setAzureBlobStorageContainer", function (value) {
|
242
277
|
_this.attributes.azure_blob_storage_container = value;
|
243
278
|
});
|
279
|
+
// string # Azure File Storage Account name
|
244
280
|
(0, _defineProperty2.default)(this, "getAzureFilesStorageAccount", function () {
|
245
281
|
return _this.attributes.azure_files_storage_account;
|
246
282
|
});
|
247
283
|
(0, _defineProperty2.default)(this, "setAzureFilesStorageAccount", function (value) {
|
248
284
|
_this.attributes.azure_files_storage_account = value;
|
249
285
|
});
|
286
|
+
// string # Shared Access Signature (SAS) token
|
250
287
|
(0, _defineProperty2.default)(this, "getAzureFilesStorageSasToken", function () {
|
251
288
|
return _this.attributes.azure_files_storage_sas_token;
|
252
289
|
});
|
253
290
|
(0, _defineProperty2.default)(this, "setAzureFilesStorageSasToken", function (value) {
|
254
291
|
_this.attributes.azure_files_storage_sas_token = value;
|
255
292
|
});
|
293
|
+
// string # Azure File Storage Share name
|
256
294
|
(0, _defineProperty2.default)(this, "getAzureFilesStorageShareName", function () {
|
257
295
|
return _this.attributes.azure_files_storage_share_name;
|
258
296
|
});
|
259
297
|
(0, _defineProperty2.default)(this, "setAzureFilesStorageShareName", function (value) {
|
260
298
|
_this.attributes.azure_files_storage_share_name = value;
|
261
299
|
});
|
300
|
+
// string # S3-compatible Bucket name
|
262
301
|
(0, _defineProperty2.default)(this, "getS3CompatibleBucket", function () {
|
263
302
|
return _this.attributes.s3_compatible_bucket;
|
264
303
|
});
|
265
304
|
(0, _defineProperty2.default)(this, "setS3CompatibleBucket", function (value) {
|
266
305
|
_this.attributes.s3_compatible_bucket = value;
|
267
306
|
});
|
307
|
+
// string # S3-compatible endpoint
|
268
308
|
(0, _defineProperty2.default)(this, "getS3CompatibleEndpoint", function () {
|
269
309
|
return _this.attributes.s3_compatible_endpoint;
|
270
310
|
});
|
271
311
|
(0, _defineProperty2.default)(this, "setS3CompatibleEndpoint", function (value) {
|
272
312
|
_this.attributes.s3_compatible_endpoint = value;
|
273
313
|
});
|
314
|
+
// string # S3-compatible endpoint
|
274
315
|
(0, _defineProperty2.default)(this, "getS3CompatibleRegion", function () {
|
275
316
|
return _this.attributes.s3_compatible_region;
|
276
317
|
});
|
277
318
|
(0, _defineProperty2.default)(this, "setS3CompatibleRegion", function (value) {
|
278
319
|
_this.attributes.s3_compatible_region = value;
|
279
320
|
});
|
321
|
+
// string # S3-compatible Access Key.
|
280
322
|
(0, _defineProperty2.default)(this, "getS3CompatibleAccessKey", function () {
|
281
323
|
return _this.attributes.s3_compatible_access_key;
|
282
324
|
});
|
283
325
|
(0, _defineProperty2.default)(this, "setS3CompatibleAccessKey", function (value) {
|
284
326
|
_this.attributes.s3_compatible_access_key = value;
|
285
327
|
});
|
328
|
+
// boolean # `true` if remote server only accepts connections from dedicated IPs
|
286
329
|
(0, _defineProperty2.default)(this, "getEnableDedicatedIps", function () {
|
287
330
|
return _this.attributes.enable_dedicated_ips;
|
288
331
|
});
|
289
332
|
(0, _defineProperty2.default)(this, "setEnableDedicatedIps", function (value) {
|
290
333
|
_this.attributes.enable_dedicated_ips = value;
|
291
334
|
});
|
335
|
+
// string # Local permissions for files agent. read_only, write_only, or read_write
|
292
336
|
(0, _defineProperty2.default)(this, "getFilesAgentPermissionSet", function () {
|
293
337
|
return _this.attributes.files_agent_permission_set;
|
294
338
|
});
|
295
339
|
(0, _defineProperty2.default)(this, "setFilesAgentPermissionSet", function (value) {
|
296
340
|
_this.attributes.files_agent_permission_set = value;
|
297
341
|
});
|
342
|
+
// string # Agent local root path
|
298
343
|
(0, _defineProperty2.default)(this, "getFilesAgentRoot", function () {
|
299
344
|
return _this.attributes.files_agent_root;
|
300
345
|
});
|
301
346
|
(0, _defineProperty2.default)(this, "setFilesAgentRoot", function (value) {
|
302
347
|
_this.attributes.files_agent_root = value;
|
303
348
|
});
|
349
|
+
// string # Files Agent API Token
|
304
350
|
(0, _defineProperty2.default)(this, "getFilesAgentApiToken", function () {
|
305
351
|
return _this.attributes.files_agent_api_token;
|
306
352
|
});
|
307
353
|
(0, _defineProperty2.default)(this, "setFilesAgentApiToken", function (value) {
|
308
354
|
_this.attributes.files_agent_api_token = value;
|
309
355
|
});
|
356
|
+
// string # Filebase Bucket name
|
310
357
|
(0, _defineProperty2.default)(this, "getFilebaseBucket", function () {
|
311
358
|
return _this.attributes.filebase_bucket;
|
312
359
|
});
|
313
360
|
(0, _defineProperty2.default)(this, "setFilebaseBucket", function (value) {
|
314
361
|
_this.attributes.filebase_bucket = value;
|
315
362
|
});
|
363
|
+
// string # Filebase Access Key.
|
364
|
+
(0, _defineProperty2.default)(this, "getFilebaseAccessKey", function () {
|
365
|
+
return _this.attributes.filebase_access_key;
|
366
|
+
});
|
367
|
+
(0, _defineProperty2.default)(this, "setFilebaseAccessKey", function (value) {
|
368
|
+
_this.attributes.filebase_access_key = value;
|
369
|
+
});
|
370
|
+
// string # AWS secret key.
|
316
371
|
(0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
|
317
372
|
return _this.attributes.aws_secret_key;
|
318
373
|
});
|
319
374
|
(0, _defineProperty2.default)(this, "setAwsSecretKey", function (value) {
|
320
375
|
_this.attributes.aws_secret_key = value;
|
321
376
|
});
|
377
|
+
// string # Password if needed.
|
322
378
|
(0, _defineProperty2.default)(this, "getPassword", function () {
|
323
379
|
return _this.attributes.password;
|
324
380
|
});
|
325
381
|
(0, _defineProperty2.default)(this, "setPassword", function (value) {
|
326
382
|
_this.attributes.password = value;
|
327
383
|
});
|
384
|
+
// string # Private key if needed.
|
328
385
|
(0, _defineProperty2.default)(this, "getPrivateKey", function () {
|
329
386
|
return _this.attributes.private_key;
|
330
387
|
});
|
331
388
|
(0, _defineProperty2.default)(this, "setPrivateKey", function (value) {
|
332
389
|
_this.attributes.private_key = value;
|
333
390
|
});
|
391
|
+
// string # Passphrase for private key if needed.
|
334
392
|
(0, _defineProperty2.default)(this, "getPrivateKeyPassphrase", function () {
|
335
393
|
return _this.attributes.private_key_passphrase;
|
336
394
|
});
|
337
395
|
(0, _defineProperty2.default)(this, "setPrivateKeyPassphrase", function (value) {
|
338
396
|
_this.attributes.private_key_passphrase = value;
|
339
397
|
});
|
398
|
+
// string # SSL client certificate.
|
340
399
|
(0, _defineProperty2.default)(this, "getSslCertificate", function () {
|
341
400
|
return _this.attributes.ssl_certificate;
|
342
401
|
});
|
343
402
|
(0, _defineProperty2.default)(this, "setSslCertificate", function (value) {
|
344
403
|
_this.attributes.ssl_certificate = value;
|
345
404
|
});
|
405
|
+
// string # A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
346
406
|
(0, _defineProperty2.default)(this, "getGoogleCloudStorageCredentialsJson", function () {
|
347
407
|
return _this.attributes.google_cloud_storage_credentials_json;
|
348
408
|
});
|
349
409
|
(0, _defineProperty2.default)(this, "setGoogleCloudStorageCredentialsJson", function (value) {
|
350
410
|
_this.attributes.google_cloud_storage_credentials_json = value;
|
351
411
|
});
|
412
|
+
// string # Wasabi secret key.
|
352
413
|
(0, _defineProperty2.default)(this, "getWasabiSecretKey", function () {
|
353
414
|
return _this.attributes.wasabi_secret_key;
|
354
415
|
});
|
355
416
|
(0, _defineProperty2.default)(this, "setWasabiSecretKey", function (value) {
|
356
417
|
_this.attributes.wasabi_secret_key = value;
|
357
418
|
});
|
419
|
+
// string # Backblaze B2 Cloud Storage keyID.
|
358
420
|
(0, _defineProperty2.default)(this, "getBackblazeB2KeyId", function () {
|
359
421
|
return _this.attributes.backblaze_b2_key_id;
|
360
422
|
});
|
361
423
|
(0, _defineProperty2.default)(this, "setBackblazeB2KeyId", function (value) {
|
362
424
|
_this.attributes.backblaze_b2_key_id = value;
|
363
425
|
});
|
426
|
+
// string # Backblaze B2 Cloud Storage applicationKey.
|
364
427
|
(0, _defineProperty2.default)(this, "getBackblazeB2ApplicationKey", function () {
|
365
428
|
return _this.attributes.backblaze_b2_application_key;
|
366
429
|
});
|
367
430
|
(0, _defineProperty2.default)(this, "setBackblazeB2ApplicationKey", function (value) {
|
368
431
|
_this.attributes.backblaze_b2_application_key = value;
|
369
432
|
});
|
433
|
+
// string # Rackspace API key from the Rackspace Cloud Control Panel.
|
370
434
|
(0, _defineProperty2.default)(this, "getRackspaceApiKey", function () {
|
371
435
|
return _this.attributes.rackspace_api_key;
|
372
436
|
});
|
373
437
|
(0, _defineProperty2.default)(this, "setRackspaceApiKey", function (value) {
|
374
438
|
_this.attributes.rackspace_api_key = value;
|
375
439
|
});
|
440
|
+
// boolean # Reset authenticated account
|
376
441
|
(0, _defineProperty2.default)(this, "getResetAuthentication", function () {
|
377
442
|
return _this.attributes.reset_authentication;
|
378
443
|
});
|
379
444
|
(0, _defineProperty2.default)(this, "setResetAuthentication", function (value) {
|
380
445
|
_this.attributes.reset_authentication = value;
|
381
446
|
});
|
447
|
+
// string # Azure Blob Storage secret key.
|
382
448
|
(0, _defineProperty2.default)(this, "getAzureBlobStorageAccessKey", function () {
|
383
449
|
return _this.attributes.azure_blob_storage_access_key;
|
384
450
|
});
|
385
451
|
(0, _defineProperty2.default)(this, "setAzureBlobStorageAccessKey", function (value) {
|
386
452
|
_this.attributes.azure_blob_storage_access_key = value;
|
387
453
|
});
|
454
|
+
// string # Azure File Storage access key.
|
388
455
|
(0, _defineProperty2.default)(this, "getAzureFilesStorageAccessKey", function () {
|
389
456
|
return _this.attributes.azure_files_storage_access_key;
|
390
457
|
});
|
391
458
|
(0, _defineProperty2.default)(this, "setAzureFilesStorageAccessKey", function (value) {
|
392
459
|
_this.attributes.azure_files_storage_access_key = value;
|
393
460
|
});
|
461
|
+
// string # S3-compatible secret key
|
394
462
|
(0, _defineProperty2.default)(this, "getS3CompatibleSecretKey", function () {
|
395
463
|
return _this.attributes.s3_compatible_secret_key;
|
396
464
|
});
|
397
465
|
(0, _defineProperty2.default)(this, "setS3CompatibleSecretKey", function (value) {
|
398
466
|
_this.attributes.s3_compatible_secret_key = value;
|
399
467
|
});
|
468
|
+
// string # Filebase secret key
|
469
|
+
(0, _defineProperty2.default)(this, "getFilebaseSecretKey", function () {
|
470
|
+
return _this.attributes.filebase_secret_key;
|
471
|
+
});
|
472
|
+
(0, _defineProperty2.default)(this, "setFilebaseSecretKey", function (value) {
|
473
|
+
_this.attributes.filebase_secret_key = value;
|
474
|
+
});
|
475
|
+
// Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
476
|
+
//
|
477
|
+
// Parameters:
|
478
|
+
// api_token - string - Files Agent API Token
|
479
|
+
// permission_set - string -
|
480
|
+
// root - string - Agent local root path
|
481
|
+
// hostname - string
|
482
|
+
// port - int64 - Incoming port for files agent connections
|
483
|
+
// status - string - either running or shutdown
|
484
|
+
// config_version - string - agent config version
|
485
|
+
// private_key - string - private key
|
486
|
+
// public_key - string - public key
|
487
|
+
// server_host_key - string
|
488
|
+
// subdomain - string
|
400
489
|
(0, _defineProperty2.default)(this, "configurationFile", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
401
490
|
var params,
|
402
491
|
response,
|
@@ -515,6 +604,61 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
515
604
|
}
|
516
605
|
}, _callee);
|
517
606
|
})));
|
607
|
+
// Parameters:
|
608
|
+
// aws_access_key - string - AWS Access Key.
|
609
|
+
// aws_secret_key - string - AWS secret key.
|
610
|
+
// password - string - Password if needed.
|
611
|
+
// private_key - string - Private key if needed.
|
612
|
+
// private_key_passphrase - string - Passphrase for private key if needed.
|
613
|
+
// ssl_certificate - string - SSL client certificate.
|
614
|
+
// google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
615
|
+
// wasabi_access_key - string - Wasabi access key.
|
616
|
+
// wasabi_secret_key - string - Wasabi secret key.
|
617
|
+
// backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
618
|
+
// backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
619
|
+
// rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
620
|
+
// reset_authentication - boolean - Reset authenticated account
|
621
|
+
// azure_blob_storage_access_key - string - Azure Blob Storage secret key.
|
622
|
+
// azure_files_storage_access_key - string - Azure File Storage access key.
|
623
|
+
// hostname - string - Hostname or IP address
|
624
|
+
// name - string - Internal name for your reference
|
625
|
+
// max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
626
|
+
// 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 sitewide setting which will force it to true.
|
627
|
+
// port - int64 - Port for remote server. Not needed for S3.
|
628
|
+
// s3_bucket - string - S3 bucket name
|
629
|
+
// s3_region - string - S3 region
|
630
|
+
// server_certificate - string - Remote server certificate
|
631
|
+
// server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
632
|
+
// server_type - string - Remote server type.
|
633
|
+
// ssl - string - Should we require SSL?
|
634
|
+
// username - string - Remote server username. Not needed for S3 buckets.
|
635
|
+
// google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
636
|
+
// google_cloud_storage_project_id - string - Google Cloud Project ID
|
637
|
+
// backblaze_b2_bucket - string - Backblaze B2 Cloud Storage Bucket name
|
638
|
+
// backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
639
|
+
// wasabi_bucket - string - Wasabi Bucket name
|
640
|
+
// wasabi_region - string - Wasabi region
|
641
|
+
// rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
642
|
+
// rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
643
|
+
// rackspace_container - string - The name of the container (top level directory) where files will sync.
|
644
|
+
// one_drive_account_type - string - Either personal or business_other account types
|
645
|
+
// azure_blob_storage_account - string - Azure Blob Storage Account name
|
646
|
+
// azure_blob_storage_container - string - Azure Blob Storage Container name
|
647
|
+
// azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
648
|
+
// azure_files_storage_account - string - Azure File Storage Account name
|
649
|
+
// azure_files_storage_share_name - string - Azure File Storage Share name
|
650
|
+
// azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
651
|
+
// s3_compatible_bucket - string - S3-compatible Bucket name
|
652
|
+
// s3_compatible_endpoint - string - S3-compatible endpoint
|
653
|
+
// s3_compatible_region - string - S3-compatible endpoint
|
654
|
+
// enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
655
|
+
// s3_compatible_access_key - string - S3-compatible Access Key.
|
656
|
+
// s3_compatible_secret_key - string - S3-compatible secret key
|
657
|
+
// files_agent_root - string - Agent local root path
|
658
|
+
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
659
|
+
// filebase_access_key - string - Filebase Access Key.
|
660
|
+
// filebase_secret_key - string - Filebase secret key
|
661
|
+
// filebase_bucket - string - Filebase Bucket name
|
518
662
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
519
663
|
var params,
|
520
664
|
response,
|
@@ -830,26 +974,44 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
830
974
|
}
|
831
975
|
throw new errors.InvalidParameterError("Bad parameter: files_agent_permission_set must be of type String, received ".concat((0, _utils.getType)(files_agent_permission_set)));
|
832
976
|
case 104:
|
833
|
-
if (params['
|
977
|
+
if (!(params['filebase_access_key'] && !(0, _utils.isString)(params['filebase_access_key']))) {
|
978
|
+
_context2.next = 106;
|
979
|
+
break;
|
980
|
+
}
|
981
|
+
throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(filebase_access_key)));
|
982
|
+
case 106:
|
983
|
+
if (!(params['filebase_secret_key'] && !(0, _utils.isString)(params['filebase_secret_key']))) {
|
984
|
+
_context2.next = 108;
|
985
|
+
break;
|
986
|
+
}
|
987
|
+
throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(filebase_secret_key)));
|
988
|
+
case 108:
|
989
|
+
if (!(params['filebase_bucket'] && !(0, _utils.isString)(params['filebase_bucket']))) {
|
834
990
|
_context2.next = 110;
|
835
991
|
break;
|
836
992
|
}
|
993
|
+
throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(filebase_bucket)));
|
994
|
+
case 110:
|
995
|
+
if (params['id']) {
|
996
|
+
_context2.next = 116;
|
997
|
+
break;
|
998
|
+
}
|
837
999
|
if (!_this.attributes.id) {
|
838
|
-
_context2.next =
|
1000
|
+
_context2.next = 115;
|
839
1001
|
break;
|
840
1002
|
}
|
841
1003
|
params['id'] = _this.id;
|
842
|
-
_context2.next =
|
1004
|
+
_context2.next = 116;
|
843
1005
|
break;
|
844
|
-
case
|
1006
|
+
case 115:
|
845
1007
|
throw new errors.MissingParameterError('Parameter missing: id');
|
846
|
-
case
|
847
|
-
_context2.next =
|
1008
|
+
case 116:
|
1009
|
+
_context2.next = 118;
|
848
1010
|
return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
849
|
-
case
|
1011
|
+
case 118:
|
850
1012
|
response = _context2.sent;
|
851
1013
|
return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
852
|
-
case
|
1014
|
+
case 120:
|
853
1015
|
case "end":
|
854
1016
|
return _context2.stop();
|
855
1017
|
}
|
@@ -933,6 +1095,9 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
933
1095
|
});
|
934
1096
|
this.options = _objectSpread({}, options);
|
935
1097
|
});
|
1098
|
+
// Parameters:
|
1099
|
+
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
1100
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
936
1101
|
(0, _defineProperty2.default)(RemoteServer, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
937
1102
|
var _response$data;
|
938
1103
|
var params,
|
@@ -974,6 +1139,8 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
974
1139
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
975
1140
|
return RemoteServer.list(params, options);
|
976
1141
|
});
|
1142
|
+
// Parameters:
|
1143
|
+
// id (required) - int64 - Remote Server ID.
|
977
1144
|
(0, _defineProperty2.default)(RemoteServer, "find", /*#__PURE__*/function () {
|
978
1145
|
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(id) {
|
979
1146
|
var params,
|
@@ -1024,6 +1191,8 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1024
1191
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
1025
1192
|
return RemoteServer.find(id, params, options);
|
1026
1193
|
});
|
1194
|
+
// Parameters:
|
1195
|
+
// id (required) - int64 - Remote Server ID.
|
1027
1196
|
(0, _defineProperty2.default)(RemoteServer, "findConfigurationFile", /*#__PURE__*/function () {
|
1028
1197
|
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(id) {
|
1029
1198
|
var params,
|
@@ -1069,6 +1238,61 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1069
1238
|
return _ref8.apply(this, arguments);
|
1070
1239
|
};
|
1071
1240
|
}());
|
1241
|
+
// Parameters:
|
1242
|
+
// aws_access_key - string - AWS Access Key.
|
1243
|
+
// aws_secret_key - string - AWS secret key.
|
1244
|
+
// password - string - Password if needed.
|
1245
|
+
// private_key - string - Private key if needed.
|
1246
|
+
// private_key_passphrase - string - Passphrase for private key if needed.
|
1247
|
+
// ssl_certificate - string - SSL client certificate.
|
1248
|
+
// google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
1249
|
+
// wasabi_access_key - string - Wasabi access key.
|
1250
|
+
// wasabi_secret_key - string - Wasabi secret key.
|
1251
|
+
// backblaze_b2_key_id - string - Backblaze B2 Cloud Storage keyID.
|
1252
|
+
// backblaze_b2_application_key - string - Backblaze B2 Cloud Storage applicationKey.
|
1253
|
+
// rackspace_api_key - string - Rackspace API key from the Rackspace Cloud Control Panel.
|
1254
|
+
// reset_authentication - boolean - Reset authenticated account
|
1255
|
+
// azure_blob_storage_access_key - string - Azure Blob Storage secret key.
|
1256
|
+
// azure_files_storage_access_key - string - Azure File Storage access key.
|
1257
|
+
// hostname - string - Hostname or IP address
|
1258
|
+
// name - string - Internal name for your reference
|
1259
|
+
// max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
1260
|
+
// 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 sitewide setting which will force it to true.
|
1261
|
+
// port - int64 - Port for remote server. Not needed for S3.
|
1262
|
+
// s3_bucket - string - S3 bucket name
|
1263
|
+
// s3_region - string - S3 region
|
1264
|
+
// server_certificate - string - Remote server certificate
|
1265
|
+
// server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
1266
|
+
// server_type - string - Remote server type.
|
1267
|
+
// ssl - string - Should we require SSL?
|
1268
|
+
// username - string - Remote server username. Not needed for S3 buckets.
|
1269
|
+
// google_cloud_storage_bucket - string - Google Cloud Storage bucket name
|
1270
|
+
// google_cloud_storage_project_id - string - Google Cloud Project ID
|
1271
|
+
// backblaze_b2_bucket - string - Backblaze B2 Cloud Storage Bucket name
|
1272
|
+
// backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
1273
|
+
// wasabi_bucket - string - Wasabi Bucket name
|
1274
|
+
// wasabi_region - string - Wasabi region
|
1275
|
+
// rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
1276
|
+
// rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
1277
|
+
// rackspace_container - string - The name of the container (top level directory) where files will sync.
|
1278
|
+
// one_drive_account_type - string - Either personal or business_other account types
|
1279
|
+
// azure_blob_storage_account - string - Azure Blob Storage Account name
|
1280
|
+
// azure_blob_storage_container - string - Azure Blob Storage Container name
|
1281
|
+
// azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
1282
|
+
// azure_files_storage_account - string - Azure File Storage Account name
|
1283
|
+
// azure_files_storage_share_name - string - Azure File Storage Share name
|
1284
|
+
// azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
1285
|
+
// s3_compatible_bucket - string - S3-compatible Bucket name
|
1286
|
+
// s3_compatible_endpoint - string - S3-compatible endpoint
|
1287
|
+
// s3_compatible_region - string - S3-compatible endpoint
|
1288
|
+
// enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
1289
|
+
// s3_compatible_access_key - string - S3-compatible Access Key.
|
1290
|
+
// s3_compatible_secret_key - string - S3-compatible secret key
|
1291
|
+
// files_agent_root - string - Agent local root path
|
1292
|
+
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
1293
|
+
// filebase_access_key - string - Filebase Access Key.
|
1294
|
+
// filebase_secret_key - string - Filebase secret key
|
1295
|
+
// filebase_bucket - string - Filebase Bucket name
|
1072
1296
|
(0, _defineProperty2.default)(RemoteServer, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
1073
1297
|
var params,
|
1074
1298
|
options,
|
@@ -1367,12 +1591,30 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
1367
1591
|
}
|
1368
1592
|
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'])));
|
1369
1593
|
case 98:
|
1370
|
-
|
1371
|
-
|
1594
|
+
if (!(params['filebase_access_key'] && !(0, _utils.isString)(params['filebase_access_key']))) {
|
1595
|
+
_context7.next = 100;
|
1596
|
+
break;
|
1597
|
+
}
|
1598
|
+
throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params['filebase_access_key'])));
|
1372
1599
|
case 100:
|
1600
|
+
if (!(params['filebase_secret_key'] && !(0, _utils.isString)(params['filebase_secret_key']))) {
|
1601
|
+
_context7.next = 102;
|
1602
|
+
break;
|
1603
|
+
}
|
1604
|
+
throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params['filebase_secret_key'])));
|
1605
|
+
case 102:
|
1606
|
+
if (!(params['filebase_bucket'] && !(0, _utils.isString)(params['filebase_bucket']))) {
|
1607
|
+
_context7.next = 104;
|
1608
|
+
break;
|
1609
|
+
}
|
1610
|
+
throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params['filebase_bucket'])));
|
1611
|
+
case 104:
|
1612
|
+
_context7.next = 106;
|
1613
|
+
return _Api.default.sendRequest("/remote_servers", 'POST', params, options);
|
1614
|
+
case 106:
|
1373
1615
|
response = _context7.sent;
|
1374
1616
|
return _context7.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
|
1375
|
-
case
|
1617
|
+
case 108:
|
1376
1618
|
case "end":
|
1377
1619
|
return _context7.stop();
|
1378
1620
|
}
|