files.com 1.2.200 → 1.2.202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.200
1
+ 1.2.202
@@ -43,6 +43,8 @@
43
43
  "path": "example",
44
44
  "path_time_zone": "Eastern Time (US & Canada)",
45
45
  "recurring_day": 25,
46
+ "retry_on_failure_interval_in_minutes": 60,
47
+ "retry_on_failure_number_of_attempts": 10,
46
48
  "schedule": "example",
47
49
  "human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
48
50
  "schedule_days_of_week": [
@@ -98,6 +100,8 @@
98
100
  * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
99
101
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
100
102
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
103
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
104
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
101
105
  * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
102
106
  * `human_readable_schedule` (string): If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
103
107
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
@@ -174,6 +178,8 @@ await Automation.create({
174
178
  'name': "example",
175
179
  'overwrite_files': true,
176
180
  'path_time_zone': "Eastern Time (US & Canada)",
181
+ 'retry_on_failure_interval_in_minutes': 60,
182
+ 'retry_on_failure_number_of_attempts': 10,
177
183
  'trigger': "daily",
178
184
  'trigger_actions': ["create"],
179
185
  'value': {"limit":"1"},
@@ -208,6 +214,8 @@ await Automation.create({
208
214
  * `name` (string): Name for this automation.
209
215
  * `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
210
216
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
217
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
218
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
211
219
  * `trigger` (string): How this automation is triggered to run.
212
220
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
213
221
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -260,6 +268,8 @@ await automation.update({
260
268
  'name': "example",
261
269
  'overwrite_files': true,
262
270
  'path_time_zone': "Eastern Time (US & Canada)",
271
+ 'retry_on_failure_interval_in_minutes': 60,
272
+ 'retry_on_failure_number_of_attempts': 10,
263
273
  'trigger': "daily",
264
274
  'trigger_actions': ["create"],
265
275
  'value': {"limit":"1"},
@@ -294,6 +304,8 @@ await automation.update({
294
304
  * `name` (string): Name for this automation.
295
305
  * `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
296
306
  * `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
307
+ * `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes).
308
+ * `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times.
297
309
  * `trigger` (string): How this automation is triggered to run.
298
310
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
299
311
  * `value` (object): A Hash of attributes specific to the automation type.
@@ -343,6 +355,8 @@ await automation.update({
343
355
  "path": "example",
344
356
  "path_time_zone": "Eastern Time (US & Canada)",
345
357
  "recurring_day": 25,
358
+ "retry_on_failure_interval_in_minutes": 60,
359
+ "retry_on_failure_number_of_attempts": 10,
346
360
  "schedule": "example",
347
361
  "human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
348
362
  "schedule_days_of_week": [
@@ -8,6 +8,9 @@
8
8
  "automation_id": 1,
9
9
  "completed_at": "2000-01-01T01:00:00Z",
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
+ "retried_at": "2000-01-01T01:00:00Z",
12
+ "retry_of_run_id": 1,
13
+ "retried_in_run_id": 1,
11
14
  "runtime": 1.0,
12
15
  "status": "success",
13
16
  "successful_operations": 1,
@@ -20,6 +23,9 @@
20
23
  * `automation_id` (int64): ID of the associated Automation.
21
24
  * `completed_at` (date-time): Automation run completion/failure date/time.
22
25
  * `created_at` (date-time): Automation run start date/time.
26
+ * `retried_at` (date-time): If set, this Automation run was retried due to `failure` or `partial_failure`.
27
+ * `retry_of_run_id` (int64): ID of the original run that this run is retrying.
28
+ * `retried_in_run_id` (int64): ID of the run that is or will be retrying this run.
23
29
  * `runtime` (double): Automation run runtime.
24
30
  * `status` (string): The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
25
31
  * `successful_operations` (int64): Count of successful operations.
@@ -41,6 +41,7 @@
41
41
  "azure_blob_storage_hierarchical_namespace": true,
42
42
  "azure_files_storage_account": "storage-account-name",
43
43
  "azure_files_storage_share_name": "share-name",
44
+ "azure_files_storage_dns_suffix": "file.core.windows.net",
44
45
  "s3_compatible_bucket": "my-bucket",
45
46
  "s3_compatible_endpoint": "mys3platform.com",
46
47
  "s3_compatible_region": "us-east-1",
@@ -100,6 +101,7 @@
100
101
  * `azure_blob_storage_hierarchical_namespace` (boolean): Enable when storage account has hierarchical namespace feature enabled
101
102
  * `azure_files_storage_account` (string): Azure File Storage Account name
102
103
  * `azure_files_storage_share_name` (string): Azure File Storage Share name
104
+ * `azure_files_storage_dns_suffix` (string): Custom DNS suffix
103
105
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
104
106
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
105
107
  * `s3_compatible_region` (string): S3-compatible endpoint
@@ -218,6 +220,7 @@ await RemoteServer.create({
218
220
  'azure_blob_storage_hierarchical_namespace': true,
219
221
  'azure_files_storage_account': "storage-account-name",
220
222
  'azure_files_storage_share_name': "share-name",
223
+ 'azure_files_storage_dns_suffix': "file.core.windows.net",
221
224
  's3_compatible_bucket': "my-bucket",
222
225
  's3_compatible_endpoint': "mys3platform.com",
223
226
  's3_compatible_region': "us-east-1",
@@ -284,6 +287,7 @@ await RemoteServer.create({
284
287
  * `azure_blob_storage_sas_token` (string): Shared Access Signature (SAS) token
285
288
  * `azure_files_storage_account` (string): Azure File Storage Account name
286
289
  * `azure_files_storage_share_name` (string): Azure File Storage Share name
290
+ * `azure_files_storage_dns_suffix` (string): Custom DNS suffix
287
291
  * `azure_files_storage_sas_token` (string): Shared Access Signature (SAS) token
288
292
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
289
293
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
@@ -413,6 +417,7 @@ await remote_server.update({
413
417
  'azure_blob_storage_hierarchical_namespace': true,
414
418
  'azure_files_storage_account': "storage-account-name",
415
419
  'azure_files_storage_share_name': "share-name",
420
+ 'azure_files_storage_dns_suffix': "file.core.windows.net",
416
421
  's3_compatible_bucket': "my-bucket",
417
422
  's3_compatible_endpoint': "mys3platform.com",
418
423
  's3_compatible_region': "us-east-1",
@@ -479,6 +484,7 @@ await remote_server.update({
479
484
  * `azure_blob_storage_sas_token` (string): Shared Access Signature (SAS) token
480
485
  * `azure_files_storage_account` (string): Azure File Storage Account name
481
486
  * `azure_files_storage_share_name` (string): Azure File Storage Share name
487
+ * `azure_files_storage_dns_suffix` (string): Custom DNS suffix
482
488
  * `azure_files_storage_sas_token` (string): Shared Access Signature (SAS) token
483
489
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
484
490
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
@@ -543,6 +549,7 @@ await remote_server.update({
543
549
  "azure_blob_storage_hierarchical_namespace": true,
544
550
  "azure_files_storage_account": "storage-account-name",
545
551
  "azure_files_storage_share_name": "share-name",
552
+ "azure_files_storage_dns_suffix": "file.core.windows.net",
546
553
  "s3_compatible_bucket": "my-bucket",
547
554
  "s3_compatible_endpoint": "mys3platform.com",
548
555
  "s3_compatible_region": "us-east-1",
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.200';
14
+ var version = '1.2.202';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -187,6 +187,20 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
187
187
  (0, _defineProperty2.default)(this, "setRecurringDay", function (value) {
188
188
  _this.attributes.recurring_day = value;
189
189
  });
190
+ // int64 # If the Automation fails, retry at this interval (in minutes).
191
+ (0, _defineProperty2.default)(this, "getRetryOnFailureIntervalInMinutes", function () {
192
+ return _this.attributes.retry_on_failure_interval_in_minutes;
193
+ });
194
+ (0, _defineProperty2.default)(this, "setRetryOnFailureIntervalInMinutes", function (value) {
195
+ _this.attributes.retry_on_failure_interval_in_minutes = value;
196
+ });
197
+ // int64 # If the Automation fails, retry at most this many times.
198
+ (0, _defineProperty2.default)(this, "getRetryOnFailureNumberOfAttempts", function () {
199
+ return _this.attributes.retry_on_failure_number_of_attempts;
200
+ });
201
+ (0, _defineProperty2.default)(this, "setRetryOnFailureNumberOfAttempts", function (value) {
202
+ _this.attributes.retry_on_failure_number_of_attempts = value;
203
+ });
190
204
  // object # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
191
205
  (0, _defineProperty2.default)(this, "getSchedule", function () {
192
206
  return _this.attributes.schedule;
@@ -351,6 +365,8 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
351
365
  // name - string - Name for this automation.
352
366
  // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
353
367
  // path_time_zone - string - Timezone to use when rendering timestamps in paths.
368
+ // retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
369
+ // retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
354
370
  // trigger - string - How this automation is triggered to run.
355
371
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
356
372
  // value - object - A Hash of attributes specific to the automation type.
@@ -485,50 +501,62 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
485
501
  }
486
502
  throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
487
503
  case 42:
488
- if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
504
+ if (!(params.retry_on_failure_interval_in_minutes && !(0, _utils.isInt)(params.retry_on_failure_interval_in_minutes))) {
489
505
  _context2.next = 44;
490
506
  break;
491
507
  }
492
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
508
+ throw new errors.InvalidParameterError("Bad parameter: retry_on_failure_interval_in_minutes must be of type Int, received ".concat((0, _utils.getType)(params.retry_on_failure_interval_in_minutes)));
493
509
  case 44:
494
- if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
510
+ if (!(params.retry_on_failure_number_of_attempts && !(0, _utils.isInt)(params.retry_on_failure_number_of_attempts))) {
495
511
  _context2.next = 46;
496
512
  break;
497
513
  }
498
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
514
+ throw new errors.InvalidParameterError("Bad parameter: retry_on_failure_number_of_attempts must be of type Int, received ".concat((0, _utils.getType)(params.retry_on_failure_number_of_attempts)));
499
515
  case 46:
500
- if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
516
+ if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
501
517
  _context2.next = 48;
502
518
  break;
503
519
  }
504
- throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
520
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
505
521
  case 48:
506
- if (!(params.automation && !(0, _utils.isString)(params.automation))) {
522
+ if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
507
523
  _context2.next = 50;
508
524
  break;
509
525
  }
510
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
526
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
511
527
  case 50:
528
+ if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
529
+ _context2.next = 52;
530
+ break;
531
+ }
532
+ throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
533
+ case 52:
534
+ if (!(params.automation && !(0, _utils.isString)(params.automation))) {
535
+ _context2.next = 54;
536
+ break;
537
+ }
538
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
539
+ case 54:
512
540
  if (params.id) {
513
- _context2.next = 56;
541
+ _context2.next = 60;
514
542
  break;
515
543
  }
516
544
  if (!_this.attributes.id) {
517
- _context2.next = 55;
545
+ _context2.next = 59;
518
546
  break;
519
547
  }
520
548
  params.id = _this.id;
521
- _context2.next = 56;
549
+ _context2.next = 60;
522
550
  break;
523
- case 55:
551
+ case 59:
524
552
  throw new errors.MissingParameterError('Parameter missing: id');
525
- case 56:
526
- _context2.next = 58;
553
+ case 60:
554
+ _context2.next = 62;
527
555
  return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
528
- case 58:
556
+ case 62:
529
557
  response = _context2.sent;
530
558
  return _context2.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
531
- case 60:
559
+ case 64:
532
560
  case "end":
533
561
  return _context2.stop();
534
562
  }
@@ -754,6 +782,8 @@ _Automation = Automation;
754
782
  // name - string - Name for this automation.
755
783
  // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
756
784
  // path_time_zone - string - Timezone to use when rendering timestamps in paths.
785
+ // retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
786
+ // retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
757
787
  // trigger - string - How this automation is triggered to run.
758
788
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
759
789
  // value - object - A Hash of attributes specific to the automation type.
@@ -877,36 +907,48 @@ _Automation = Automation;
877
907
  }
878
908
  throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
879
909
  case 38:
880
- if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
910
+ if (!(params.retry_on_failure_interval_in_minutes && !(0, _utils.isInt)(params.retry_on_failure_interval_in_minutes))) {
881
911
  _context7.next = 40;
882
912
  break;
883
913
  }
884
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
914
+ throw new errors.InvalidParameterError("Bad parameter: retry_on_failure_interval_in_minutes must be of type Int, received ".concat((0, _utils.getType)(params.retry_on_failure_interval_in_minutes)));
885
915
  case 40:
886
- if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
916
+ if (!(params.retry_on_failure_number_of_attempts && !(0, _utils.isInt)(params.retry_on_failure_number_of_attempts))) {
887
917
  _context7.next = 42;
888
918
  break;
889
919
  }
890
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
920
+ throw new errors.InvalidParameterError("Bad parameter: retry_on_failure_number_of_attempts must be of type Int, received ".concat((0, _utils.getType)(params.retry_on_failure_number_of_attempts)));
891
921
  case 42:
892
- if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
922
+ if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
893
923
  _context7.next = 44;
894
924
  break;
895
925
  }
896
- throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
926
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
897
927
  case 44:
898
- if (!(params.automation && !(0, _utils.isString)(params.automation))) {
928
+ if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
899
929
  _context7.next = 46;
900
930
  break;
901
931
  }
902
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
932
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
903
933
  case 46:
904
- _context7.next = 48;
905
- return _Api.default.sendRequest('/automations', 'POST', params, options);
934
+ if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
935
+ _context7.next = 48;
936
+ break;
937
+ }
938
+ throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
906
939
  case 48:
940
+ if (!(params.automation && !(0, _utils.isString)(params.automation))) {
941
+ _context7.next = 50;
942
+ break;
943
+ }
944
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
945
+ case 50:
946
+ _context7.next = 52;
947
+ return _Api.default.sendRequest('/automations', 'POST', params, options);
948
+ case 52:
907
949
  response = _context7.sent;
908
950
  return _context7.abrupt("return", new _Automation(response === null || response === void 0 ? void 0 : response.data, options));
909
- case 50:
951
+ case 54:
910
952
  case "end":
911
953
  return _context7.stop();
912
954
  }
@@ -49,6 +49,18 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
49
49
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
50
50
  return _this.attributes.created_at;
51
51
  });
52
+ // date-time # If set, this Automation run was retried due to `failure` or `partial_failure`.
53
+ (0, _defineProperty2.default)(this, "getRetriedAt", function () {
54
+ return _this.attributes.retried_at;
55
+ });
56
+ // int64 # ID of the original run that this run is retrying.
57
+ (0, _defineProperty2.default)(this, "getRetryOfRunId", function () {
58
+ return _this.attributes.retry_of_run_id;
59
+ });
60
+ // int64 # ID of the run that is or will be retrying this run.
61
+ (0, _defineProperty2.default)(this, "getRetriedInRunId", function () {
62
+ return _this.attributes.retried_in_run_id;
63
+ });
52
64
  // double # Automation run runtime.
53
65
  (0, _defineProperty2.default)(this, "getRuntime", function () {
54
66
  return _this.attributes.runtime;
@@ -292,6 +292,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
292
292
  (0, _defineProperty2.default)(this, "setAzureFilesStorageShareName", function (value) {
293
293
  _this.attributes.azure_files_storage_share_name = value;
294
294
  });
295
+ // string # Custom DNS suffix
296
+ (0, _defineProperty2.default)(this, "getAzureFilesStorageDnsSuffix", function () {
297
+ return _this.attributes.azure_files_storage_dns_suffix;
298
+ });
299
+ (0, _defineProperty2.default)(this, "setAzureFilesStorageDnsSuffix", function (value) {
300
+ _this.attributes.azure_files_storage_dns_suffix = value;
301
+ });
295
302
  // string # S3-compatible Bucket name
296
303
  (0, _defineProperty2.default)(this, "getS3CompatibleBucket", function () {
297
304
  return _this.attributes.s3_compatible_bucket;
@@ -736,6 +743,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
736
743
  // azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
737
744
  // azure_files_storage_account - string - Azure File Storage Account name
738
745
  // azure_files_storage_share_name - string - Azure File Storage Share name
746
+ // azure_files_storage_dns_suffix - string - Custom DNS suffix
739
747
  // azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
740
748
  // s3_compatible_bucket - string - S3-compatible Bucket name
741
749
  // s3_compatible_endpoint - string - S3-compatible endpoint
@@ -1025,146 +1033,152 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1025
1033
  }
1026
1034
  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)));
1027
1035
  case 88:
1028
- if (!(params.azure_files_storage_sas_token && !(0, _utils.isString)(params.azure_files_storage_sas_token))) {
1036
+ if (!(params.azure_files_storage_dns_suffix && !(0, _utils.isString)(params.azure_files_storage_dns_suffix))) {
1029
1037
  _context2.next = 90;
1030
1038
  break;
1031
1039
  }
1032
- throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_sas_token)));
1040
+ 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)));
1033
1041
  case 90:
1034
- if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1042
+ if (!(params.azure_files_storage_sas_token && !(0, _utils.isString)(params.azure_files_storage_sas_token))) {
1035
1043
  _context2.next = 92;
1036
1044
  break;
1037
1045
  }
1038
- throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1046
+ throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_sas_token)));
1039
1047
  case 92:
1040
- if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1048
+ if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1041
1049
  _context2.next = 94;
1042
1050
  break;
1043
1051
  }
1044
- throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1052
+ throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1045
1053
  case 94:
1046
- if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1054
+ if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1047
1055
  _context2.next = 96;
1048
1056
  break;
1049
1057
  }
1050
- throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1058
+ throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1051
1059
  case 96:
1052
- if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1060
+ if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1053
1061
  _context2.next = 98;
1054
1062
  break;
1055
1063
  }
1056
- 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)));
1064
+ throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1057
1065
  case 98:
1058
- if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
1066
+ if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1059
1067
  _context2.next = 100;
1060
1068
  break;
1061
1069
  }
1062
- 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)));
1070
+ 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)));
1063
1071
  case 100:
1064
- if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
1072
+ if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
1065
1073
  _context2.next = 102;
1066
1074
  break;
1067
1075
  }
1068
- throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
1076
+ 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)));
1069
1077
  case 102:
1070
- if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
1078
+ if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
1071
1079
  _context2.next = 104;
1072
1080
  break;
1073
1081
  }
1074
- 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)));
1082
+ throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
1075
1083
  case 104:
1076
- if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
1084
+ if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
1077
1085
  _context2.next = 106;
1078
1086
  break;
1079
1087
  }
1080
- throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
1088
+ 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)));
1081
1089
  case 106:
1082
- if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
1090
+ if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
1083
1091
  _context2.next = 108;
1084
1092
  break;
1085
1093
  }
1086
- throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
1094
+ throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
1087
1095
  case 108:
1088
- if (!(params.filebase_secret_key && !(0, _utils.isString)(params.filebase_secret_key))) {
1096
+ if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
1089
1097
  _context2.next = 110;
1090
1098
  break;
1091
1099
  }
1092
- throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_secret_key)));
1100
+ throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
1093
1101
  case 110:
1094
- if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
1102
+ if (!(params.filebase_secret_key && !(0, _utils.isString)(params.filebase_secret_key))) {
1095
1103
  _context2.next = 112;
1096
1104
  break;
1097
1105
  }
1098
- throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
1106
+ throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_secret_key)));
1099
1107
  case 112:
1100
- if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
1108
+ if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
1101
1109
  _context2.next = 114;
1102
1110
  break;
1103
1111
  }
1104
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
1112
+ throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
1105
1113
  case 114:
1106
- if (!(params.cloudflare_secret_key && !(0, _utils.isString)(params.cloudflare_secret_key))) {
1114
+ if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
1107
1115
  _context2.next = 116;
1108
1116
  break;
1109
1117
  }
1110
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_secret_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_secret_key)));
1118
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
1111
1119
  case 116:
1112
- if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
1120
+ if (!(params.cloudflare_secret_key && !(0, _utils.isString)(params.cloudflare_secret_key))) {
1113
1121
  _context2.next = 118;
1114
1122
  break;
1115
1123
  }
1116
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
1124
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_secret_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_secret_key)));
1117
1125
  case 118:
1118
- if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
1126
+ if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
1119
1127
  _context2.next = 120;
1120
1128
  break;
1121
1129
  }
1122
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
1130
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
1123
1131
  case 120:
1124
- if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1132
+ if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
1125
1133
  _context2.next = 122;
1126
1134
  break;
1127
1135
  }
1128
- throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1136
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
1129
1137
  case 122:
1130
- if (!(params.linode_secret_key && !(0, _utils.isString)(params.linode_secret_key))) {
1138
+ if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1131
1139
  _context2.next = 124;
1132
1140
  break;
1133
1141
  }
1134
- throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
1142
+ throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1135
1143
  case 124:
1136
- if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1144
+ if (!(params.linode_secret_key && !(0, _utils.isString)(params.linode_secret_key))) {
1137
1145
  _context2.next = 126;
1138
1146
  break;
1139
1147
  }
1140
- throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1148
+ throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
1141
1149
  case 126:
1142
- if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1150
+ if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1143
1151
  _context2.next = 128;
1144
1152
  break;
1145
1153
  }
1146
- throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1154
+ throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1147
1155
  case 128:
1156
+ if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1157
+ _context2.next = 130;
1158
+ break;
1159
+ }
1160
+ throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1161
+ case 130:
1148
1162
  if (params.id) {
1149
- _context2.next = 134;
1163
+ _context2.next = 136;
1150
1164
  break;
1151
1165
  }
1152
1166
  if (!_this.attributes.id) {
1153
- _context2.next = 133;
1167
+ _context2.next = 135;
1154
1168
  break;
1155
1169
  }
1156
1170
  params.id = _this.id;
1157
- _context2.next = 134;
1171
+ _context2.next = 136;
1158
1172
  break;
1159
- case 133:
1173
+ case 135:
1160
1174
  throw new errors.MissingParameterError('Parameter missing: id');
1161
- case 134:
1162
- _context2.next = 136;
1163
- return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
1164
1175
  case 136:
1176
+ _context2.next = 138;
1177
+ return _Api.default.sendRequest("/remote_servers/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
1178
+ case 138:
1165
1179
  response = _context2.sent;
1166
1180
  return _context2.abrupt("return", new RemoteServer(response === null || response === void 0 ? void 0 : response.data, _this.options));
1167
- case 138:
1181
+ case 140:
1168
1182
  case "end":
1169
1183
  return _context2.stop();
1170
1184
  }
@@ -1456,6 +1470,7 @@ _RemoteServer = RemoteServer;
1456
1470
  // azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
1457
1471
  // azure_files_storage_account - string - Azure File Storage Account name
1458
1472
  // azure_files_storage_share_name - string - Azure File Storage Share name
1473
+ // azure_files_storage_dns_suffix - string - Custom DNS suffix
1459
1474
  // azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
1460
1475
  // s3_compatible_bucket - string - S3-compatible Bucket name
1461
1476
  // s3_compatible_endpoint - string - S3-compatible endpoint
@@ -1728,132 +1743,138 @@ _RemoteServer = RemoteServer;
1728
1743
  }
1729
1744
  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)));
1730
1745
  case 82:
1731
- if (!(params.azure_files_storage_sas_token && !(0, _utils.isString)(params.azure_files_storage_sas_token))) {
1746
+ if (!(params.azure_files_storage_dns_suffix && !(0, _utils.isString)(params.azure_files_storage_dns_suffix))) {
1732
1747
  _context8.next = 84;
1733
1748
  break;
1734
1749
  }
1735
- throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_sas_token)));
1750
+ 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)));
1736
1751
  case 84:
1737
- if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1752
+ if (!(params.azure_files_storage_sas_token && !(0, _utils.isString)(params.azure_files_storage_sas_token))) {
1738
1753
  _context8.next = 86;
1739
1754
  break;
1740
1755
  }
1741
- throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1756
+ throw new errors.InvalidParameterError("Bad parameter: azure_files_storage_sas_token must be of type String, received ".concat((0, _utils.getType)(params.azure_files_storage_sas_token)));
1742
1757
  case 86:
1743
- if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1758
+ if (!(params.s3_compatible_bucket && !(0, _utils.isString)(params.s3_compatible_bucket))) {
1744
1759
  _context8.next = 88;
1745
1760
  break;
1746
1761
  }
1747
- throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1762
+ throw new errors.InvalidParameterError("Bad parameter: s3_compatible_bucket must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_bucket)));
1748
1763
  case 88:
1749
- if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1764
+ if (!(params.s3_compatible_endpoint && !(0, _utils.isString)(params.s3_compatible_endpoint))) {
1750
1765
  _context8.next = 90;
1751
1766
  break;
1752
1767
  }
1753
- throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1768
+ throw new errors.InvalidParameterError("Bad parameter: s3_compatible_endpoint must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_endpoint)));
1754
1769
  case 90:
1755
- if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1770
+ if (!(params.s3_compatible_region && !(0, _utils.isString)(params.s3_compatible_region))) {
1756
1771
  _context8.next = 92;
1757
1772
  break;
1758
1773
  }
1759
- 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)));
1774
+ throw new errors.InvalidParameterError("Bad parameter: s3_compatible_region must be of type String, received ".concat((0, _utils.getType)(params.s3_compatible_region)));
1760
1775
  case 92:
1761
- if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
1776
+ if (!(params.s3_compatible_access_key && !(0, _utils.isString)(params.s3_compatible_access_key))) {
1762
1777
  _context8.next = 94;
1763
1778
  break;
1764
1779
  }
1765
- 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)));
1780
+ 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)));
1766
1781
  case 94:
1767
- if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
1782
+ if (!(params.s3_compatible_secret_key && !(0, _utils.isString)(params.s3_compatible_secret_key))) {
1768
1783
  _context8.next = 96;
1769
1784
  break;
1770
1785
  }
1771
- throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
1786
+ 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)));
1772
1787
  case 96:
1773
- if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
1788
+ if (!(params.files_agent_root && !(0, _utils.isString)(params.files_agent_root))) {
1774
1789
  _context8.next = 98;
1775
1790
  break;
1776
1791
  }
1777
- 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)));
1792
+ throw new errors.InvalidParameterError("Bad parameter: files_agent_root must be of type String, received ".concat((0, _utils.getType)(params.files_agent_root)));
1778
1793
  case 98:
1779
- if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
1794
+ if (!(params.files_agent_permission_set && !(0, _utils.isString)(params.files_agent_permission_set))) {
1780
1795
  _context8.next = 100;
1781
1796
  break;
1782
1797
  }
1783
- throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
1798
+ 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)));
1784
1799
  case 100:
1785
- if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
1800
+ if (!(params.files_agent_version && !(0, _utils.isString)(params.files_agent_version))) {
1786
1801
  _context8.next = 102;
1787
1802
  break;
1788
1803
  }
1789
- throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
1804
+ throw new errors.InvalidParameterError("Bad parameter: files_agent_version must be of type String, received ".concat((0, _utils.getType)(params.files_agent_version)));
1790
1805
  case 102:
1791
- if (!(params.filebase_secret_key && !(0, _utils.isString)(params.filebase_secret_key))) {
1806
+ if (!(params.filebase_access_key && !(0, _utils.isString)(params.filebase_access_key))) {
1792
1807
  _context8.next = 104;
1793
1808
  break;
1794
1809
  }
1795
- throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_secret_key)));
1810
+ throw new errors.InvalidParameterError("Bad parameter: filebase_access_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_access_key)));
1796
1811
  case 104:
1797
- if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
1812
+ if (!(params.filebase_secret_key && !(0, _utils.isString)(params.filebase_secret_key))) {
1798
1813
  _context8.next = 106;
1799
1814
  break;
1800
1815
  }
1801
- throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
1816
+ throw new errors.InvalidParameterError("Bad parameter: filebase_secret_key must be of type String, received ".concat((0, _utils.getType)(params.filebase_secret_key)));
1802
1817
  case 106:
1803
- if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
1818
+ if (!(params.filebase_bucket && !(0, _utils.isString)(params.filebase_bucket))) {
1804
1819
  _context8.next = 108;
1805
1820
  break;
1806
1821
  }
1807
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
1822
+ throw new errors.InvalidParameterError("Bad parameter: filebase_bucket must be of type String, received ".concat((0, _utils.getType)(params.filebase_bucket)));
1808
1823
  case 108:
1809
- if (!(params.cloudflare_secret_key && !(0, _utils.isString)(params.cloudflare_secret_key))) {
1824
+ if (!(params.cloudflare_access_key && !(0, _utils.isString)(params.cloudflare_access_key))) {
1810
1825
  _context8.next = 110;
1811
1826
  break;
1812
1827
  }
1813
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_secret_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_secret_key)));
1828
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_access_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_access_key)));
1814
1829
  case 110:
1815
- if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
1830
+ if (!(params.cloudflare_secret_key && !(0, _utils.isString)(params.cloudflare_secret_key))) {
1816
1831
  _context8.next = 112;
1817
1832
  break;
1818
1833
  }
1819
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
1834
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_secret_key must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_secret_key)));
1820
1835
  case 112:
1821
- if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
1836
+ if (!(params.cloudflare_bucket && !(0, _utils.isString)(params.cloudflare_bucket))) {
1822
1837
  _context8.next = 114;
1823
1838
  break;
1824
1839
  }
1825
- throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
1840
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_bucket must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_bucket)));
1826
1841
  case 114:
1827
- if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1842
+ if (!(params.cloudflare_endpoint && !(0, _utils.isString)(params.cloudflare_endpoint))) {
1828
1843
  _context8.next = 116;
1829
1844
  break;
1830
1845
  }
1831
- throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1846
+ throw new errors.InvalidParameterError("Bad parameter: cloudflare_endpoint must be of type String, received ".concat((0, _utils.getType)(params.cloudflare_endpoint)));
1832
1847
  case 116:
1833
- if (!(params.linode_secret_key && !(0, _utils.isString)(params.linode_secret_key))) {
1848
+ if (!(params.linode_access_key && !(0, _utils.isString)(params.linode_access_key))) {
1834
1849
  _context8.next = 118;
1835
1850
  break;
1836
1851
  }
1837
- throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
1852
+ throw new errors.InvalidParameterError("Bad parameter: linode_access_key must be of type String, received ".concat((0, _utils.getType)(params.linode_access_key)));
1838
1853
  case 118:
1839
- if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1854
+ if (!(params.linode_secret_key && !(0, _utils.isString)(params.linode_secret_key))) {
1840
1855
  _context8.next = 120;
1841
1856
  break;
1842
1857
  }
1843
- throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1858
+ throw new errors.InvalidParameterError("Bad parameter: linode_secret_key must be of type String, received ".concat((0, _utils.getType)(params.linode_secret_key)));
1844
1859
  case 120:
1845
- if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1860
+ if (!(params.linode_bucket && !(0, _utils.isString)(params.linode_bucket))) {
1846
1861
  _context8.next = 122;
1847
1862
  break;
1848
1863
  }
1849
- throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1864
+ throw new errors.InvalidParameterError("Bad parameter: linode_bucket must be of type String, received ".concat((0, _utils.getType)(params.linode_bucket)));
1850
1865
  case 122:
1851
- _context8.next = 124;
1852
- return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
1866
+ if (!(params.linode_region && !(0, _utils.isString)(params.linode_region))) {
1867
+ _context8.next = 124;
1868
+ break;
1869
+ }
1870
+ throw new errors.InvalidParameterError("Bad parameter: linode_region must be of type String, received ".concat((0, _utils.getType)(params.linode_region)));
1853
1871
  case 124:
1872
+ _context8.next = 126;
1873
+ return _Api.default.sendRequest('/remote_servers', 'POST', params, options);
1874
+ case 126:
1854
1875
  response = _context8.sent;
1855
1876
  return _context8.abrupt("return", new _RemoteServer(response === null || response === void 0 ? void 0 : response.data, options));
1856
- case 126:
1877
+ case 128:
1857
1878
  case "end":
1858
1879
  return _context8.stop();
1859
1880
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.200",
3
+ "version": "1.2.202",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.200'
8
+ const version = '1.2.202'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -182,6 +182,20 @@ class Automation {
182
182
  this.attributes.recurring_day = value
183
183
  }
184
184
 
185
+ // int64 # If the Automation fails, retry at this interval (in minutes).
186
+ getRetryOnFailureIntervalInMinutes = () => this.attributes.retry_on_failure_interval_in_minutes
187
+
188
+ setRetryOnFailureIntervalInMinutes = value => {
189
+ this.attributes.retry_on_failure_interval_in_minutes = value
190
+ }
191
+
192
+ // int64 # If the Automation fails, retry at most this many times.
193
+ getRetryOnFailureNumberOfAttempts = () => this.attributes.retry_on_failure_number_of_attempts
194
+
195
+ setRetryOnFailureNumberOfAttempts = value => {
196
+ this.attributes.retry_on_failure_number_of_attempts = value
197
+ }
198
+
185
199
  // object # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
186
200
  getSchedule = () => this.attributes.schedule
187
201
 
@@ -323,6 +337,8 @@ class Automation {
323
337
  // name - string - Name for this automation.
324
338
  // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
325
339
  // path_time_zone - string - Timezone to use when rendering timestamps in paths.
340
+ // retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
341
+ // retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
326
342
  // trigger - string - How this automation is triggered to run.
327
343
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
328
344
  // value - object - A Hash of attributes specific to the automation type.
@@ -410,6 +426,14 @@ class Automation {
410
426
  throw new errors.InvalidParameterError(`Bad parameter: path_time_zone must be of type String, received ${getType(params.path_time_zone)}`)
411
427
  }
412
428
 
429
+ if (params.retry_on_failure_interval_in_minutes && !isInt(params.retry_on_failure_interval_in_minutes)) {
430
+ throw new errors.InvalidParameterError(`Bad parameter: retry_on_failure_interval_in_minutes must be of type Int, received ${getType(params.retry_on_failure_interval_in_minutes)}`)
431
+ }
432
+
433
+ if (params.retry_on_failure_number_of_attempts && !isInt(params.retry_on_failure_number_of_attempts)) {
434
+ throw new errors.InvalidParameterError(`Bad parameter: retry_on_failure_number_of_attempts must be of type Int, received ${getType(params.retry_on_failure_number_of_attempts)}`)
435
+ }
436
+
413
437
  if (params.trigger && !isString(params.trigger)) {
414
438
  throw new errors.InvalidParameterError(`Bad parameter: trigger must be of type String, received ${getType(params.trigger)}`)
415
439
  }
@@ -554,6 +578,8 @@ class Automation {
554
578
  // name - string - Name for this automation.
555
579
  // overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
556
580
  // path_time_zone - string - Timezone to use when rendering timestamps in paths.
581
+ // retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes).
582
+ // retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times.
557
583
  // trigger - string - How this automation is triggered to run.
558
584
  // trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
559
585
  // value - object - A Hash of attributes specific to the automation type.
@@ -632,6 +658,14 @@ class Automation {
632
658
  throw new errors.InvalidParameterError(`Bad parameter: path_time_zone must be of type String, received ${getType(params.path_time_zone)}`)
633
659
  }
634
660
 
661
+ if (params.retry_on_failure_interval_in_minutes && !isInt(params.retry_on_failure_interval_in_minutes)) {
662
+ throw new errors.InvalidParameterError(`Bad parameter: retry_on_failure_interval_in_minutes must be of type Int, received ${getType(params.retry_on_failure_interval_in_minutes)}`)
663
+ }
664
+
665
+ if (params.retry_on_failure_number_of_attempts && !isInt(params.retry_on_failure_number_of_attempts)) {
666
+ throw new errors.InvalidParameterError(`Bad parameter: retry_on_failure_number_of_attempts must be of type Int, received ${getType(params.retry_on_failure_number_of_attempts)}`)
667
+ }
668
+
635
669
  if (params.trigger && !isString(params.trigger)) {
636
670
  throw new errors.InvalidParameterError(`Bad parameter: trigger must be of type String, received ${getType(params.trigger)}`)
637
671
  }
@@ -40,6 +40,15 @@ class AutomationRun {
40
40
  // date-time # Automation run start date/time.
41
41
  getCreatedAt = () => this.attributes.created_at
42
42
 
43
+ // date-time # If set, this Automation run was retried due to `failure` or `partial_failure`.
44
+ getRetriedAt = () => this.attributes.retried_at
45
+
46
+ // int64 # ID of the original run that this run is retrying.
47
+ getRetryOfRunId = () => this.attributes.retry_of_run_id
48
+
49
+ // int64 # ID of the run that is or will be retrying this run.
50
+ getRetriedInRunId = () => this.attributes.retried_in_run_id
51
+
43
52
  // double # Automation run runtime.
44
53
  getRuntime = () => this.attributes.runtime
45
54
 
@@ -287,6 +287,13 @@ class RemoteServer {
287
287
  this.attributes.azure_files_storage_share_name = value
288
288
  }
289
289
 
290
+ // string # Custom DNS suffix
291
+ getAzureFilesStorageDnsSuffix = () => this.attributes.azure_files_storage_dns_suffix
292
+
293
+ setAzureFilesStorageDnsSuffix = value => {
294
+ this.attributes.azure_files_storage_dns_suffix = value
295
+ }
296
+
290
297
  // string # S3-compatible Bucket name
291
298
  getS3CompatibleBucket = () => this.attributes.s3_compatible_bucket
292
299
 
@@ -683,6 +690,7 @@ class RemoteServer {
683
690
  // azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
684
691
  // azure_files_storage_account - string - Azure File Storage Account name
685
692
  // azure_files_storage_share_name - string - Azure File Storage Share name
693
+ // azure_files_storage_dns_suffix - string - Custom DNS suffix
686
694
  // azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
687
695
  // s3_compatible_bucket - string - S3-compatible Bucket name
688
696
  // s3_compatible_endpoint - string - S3-compatible endpoint
@@ -879,6 +887,10 @@ class RemoteServer {
879
887
  throw new errors.InvalidParameterError(`Bad parameter: azure_files_storage_share_name must be of type String, received ${getType(params.azure_files_storage_share_name)}`)
880
888
  }
881
889
 
890
+ if (params.azure_files_storage_dns_suffix && !isString(params.azure_files_storage_dns_suffix)) {
891
+ throw new errors.InvalidParameterError(`Bad parameter: azure_files_storage_dns_suffix must be of type String, received ${getType(params.azure_files_storage_dns_suffix)}`)
892
+ }
893
+
882
894
  if (params.azure_files_storage_sas_token && !isString(params.azure_files_storage_sas_token)) {
883
895
  throw new errors.InvalidParameterError(`Bad parameter: azure_files_storage_sas_token must be of type String, received ${getType(params.azure_files_storage_sas_token)}`)
884
896
  }
@@ -1127,6 +1139,7 @@ class RemoteServer {
1127
1139
  // azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
1128
1140
  // azure_files_storage_account - string - Azure File Storage Account name
1129
1141
  // azure_files_storage_share_name - string - Azure File Storage Share name
1142
+ // azure_files_storage_dns_suffix - string - Custom DNS suffix
1130
1143
  // azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
1131
1144
  // s3_compatible_bucket - string - S3-compatible Bucket name
1132
1145
  // s3_compatible_endpoint - string - S3-compatible endpoint
@@ -1310,6 +1323,10 @@ class RemoteServer {
1310
1323
  throw new errors.InvalidParameterError(`Bad parameter: azure_files_storage_share_name must be of type String, received ${getType(params.azure_files_storage_share_name)}`)
1311
1324
  }
1312
1325
 
1326
+ if (params.azure_files_storage_dns_suffix && !isString(params.azure_files_storage_dns_suffix)) {
1327
+ throw new errors.InvalidParameterError(`Bad parameter: azure_files_storage_dns_suffix must be of type String, received ${getType(params.azure_files_storage_dns_suffix)}`)
1328
+ }
1329
+
1313
1330
  if (params.azure_files_storage_sas_token && !isString(params.azure_files_storage_sas_token)) {
1314
1331
  throw new errors.InvalidParameterError(`Bad parameter: azure_files_storage_sas_token must be of type String, received ${getType(params.azure_files_storage_sas_token)}`)
1315
1332
  }