files-com 1.6.101__py3-none-any.whl → 1.6.164__py3-none-any.whl
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.
- README.md +1 -0
- _VERSION +1 -1
- {files_com-1.6.101.dist-info → files_com-1.6.164.dist-info}/METADATA +2 -1
- {files_com-1.6.101.dist-info → files_com-1.6.164.dist-info}/RECORD +35 -31
- files_sdk/__init__.py +9 -1
- files_sdk/error.py +15 -0
- files_sdk/models/__init__.py +4 -0
- files_sdk/models/agent_push_update.py +44 -0
- files_sdk/models/as2_incoming_message.py +1 -8
- files_sdk/models/as2_outgoing_message.py +1 -8
- files_sdk/models/as2_partner.py +6 -0
- files_sdk/models/automation_log.py +1 -1
- files_sdk/models/behavior.py +1 -1
- files_sdk/models/bundle.py +1 -1
- files_sdk/models/email_log.py +0 -7
- files_sdk/models/file.py +2 -2
- files_sdk/models/file_migration_log.py +0 -7
- files_sdk/models/folder.py +2 -2
- files_sdk/models/ftp_action_log.py +1 -1
- files_sdk/models/gpg_key.py +23 -23
- files_sdk/models/inbound_s3_log.py +95 -0
- files_sdk/models/key_lifecycle_rule.py +240 -0
- files_sdk/models/outbound_connection_log.py +1 -1
- files_sdk/models/remote_server.py +130 -18
- files_sdk/models/remote_server_credential.py +844 -0
- files_sdk/models/sftp_action_log.py +1 -1
- files_sdk/models/siem_http_destination.py +82 -3
- files_sdk/models/site.py +12 -12
- files_sdk/models/sync.py +6 -0
- files_sdk/models/sync_log.py +0 -7
- files_sdk/models/user.py +2 -2
- files_sdk/models/web_dav_action_log.py +1 -1
- {files_com-1.6.101.dist-info → files_com-1.6.164.dist-info}/WHEEL +0 -0
- {files_com-1.6.101.dist-info → files_com-1.6.164.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.101.dist-info → files_com-1.6.164.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.models.agent_push_update import AgentPushUpdate
|
|
2
3
|
from files_sdk.models.remote_server_configuration_file import (
|
|
3
4
|
RemoteServerConfigurationFile,
|
|
4
5
|
)
|
|
@@ -19,11 +20,13 @@ class RemoteServer:
|
|
|
19
20
|
"hostname": None, # string - Hostname or IP address
|
|
20
21
|
"remote_home_path": None, # string - Initial home folder on remote server
|
|
21
22
|
"name": None, # string - Internal name for your reference
|
|
22
|
-
"
|
|
23
|
-
"
|
|
23
|
+
"description": None, # string - Internal description for your reference
|
|
24
|
+
"port": None, # int64 - Port for remote server.
|
|
25
|
+
"buffer_uploads": None, # string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
|
|
24
26
|
"max_connections": None, # int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
25
27
|
"pin_to_site_region": None, # boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
26
28
|
"pinned_region": None, # string - If set, all communications with this remote server are made through the provided region.
|
|
29
|
+
"remote_server_credential_id": None, # int64 - ID of Remote Server Credential, if applicable.
|
|
27
30
|
"s3_bucket": None, # string - S3 bucket name
|
|
28
31
|
"s3_region": None, # string - S3 region
|
|
29
32
|
"aws_access_key": None, # string - AWS Access Key.
|
|
@@ -31,7 +34,7 @@ class RemoteServer:
|
|
|
31
34
|
"server_host_key": None, # 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
|
|
32
35
|
"server_type": None, # string - Remote server type.
|
|
33
36
|
"ssl": None, # string - Should we require SSL?
|
|
34
|
-
"username": None, # string - Remote server username.
|
|
37
|
+
"username": None, # string - Remote server username.
|
|
35
38
|
"google_cloud_storage_bucket": None, # string - Google Cloud Storage: Bucket Name
|
|
36
39
|
"google_cloud_storage_project_id": None, # string - Google Cloud Storage: Project ID
|
|
37
40
|
"google_cloud_storage_s3_compatible_access_key": None, # string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -59,6 +62,9 @@ class RemoteServer:
|
|
|
59
62
|
"files_agent_root": None, # string - Agent local root path
|
|
60
63
|
"files_agent_api_token": None, # string - Files Agent API Token
|
|
61
64
|
"files_agent_version": None, # string - Files Agent version
|
|
65
|
+
"files_agent_up_to_date": None, # boolean - If true, the Files Agent is up to date.
|
|
66
|
+
"files_agent_latest_version": None, # string - Latest available Files Agent version
|
|
67
|
+
"outbound_agent_id": None, # int64 - Route traffic to outbound on a files-agent
|
|
62
68
|
"filebase_bucket": None, # string - Filebase: Bucket name
|
|
63
69
|
"filebase_access_key": None, # string - Filebase: Access Key.
|
|
64
70
|
"cloudflare_bucket": None, # string - Cloudflare: Bucket name
|
|
@@ -112,6 +118,27 @@ class RemoteServer:
|
|
|
112
118
|
if getattr(self, k, None) is not None
|
|
113
119
|
}
|
|
114
120
|
|
|
121
|
+
# Push update to Files Agent
|
|
122
|
+
def agent_push_update(self, params=None):
|
|
123
|
+
if not isinstance(params, dict):
|
|
124
|
+
params = {}
|
|
125
|
+
|
|
126
|
+
if hasattr(self, "id") and self.id:
|
|
127
|
+
params["id"] = self.id
|
|
128
|
+
else:
|
|
129
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
130
|
+
if "id" not in params:
|
|
131
|
+
raise MissingParameterError("Parameter missing: id")
|
|
132
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
133
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
134
|
+
response, _options = Api.send_request(
|
|
135
|
+
"POST",
|
|
136
|
+
"/remote_servers/{id}/agent_push_update".format(id=params["id"]),
|
|
137
|
+
params,
|
|
138
|
+
self.options,
|
|
139
|
+
)
|
|
140
|
+
return response.data
|
|
141
|
+
|
|
115
142
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
116
143
|
#
|
|
117
144
|
# Parameters:
|
|
@@ -224,10 +251,11 @@ class RemoteServer:
|
|
|
224
251
|
# azure_files_storage_share_name - string - Azure Files: Storage Share name
|
|
225
252
|
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
|
|
226
253
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
227
|
-
#
|
|
254
|
+
# buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
|
|
228
255
|
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
229
256
|
# cloudflare_bucket - string - Cloudflare: Bucket name
|
|
230
257
|
# cloudflare_endpoint - string - Cloudflare: endpoint
|
|
258
|
+
# description - string - Internal description for your reference
|
|
231
259
|
# dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
|
|
232
260
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
233
261
|
# filebase_access_key - string - Filebase: Access Key.
|
|
@@ -235,6 +263,7 @@ class RemoteServer:
|
|
|
235
263
|
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
236
264
|
# files_agent_root - string - Agent local root path
|
|
237
265
|
# files_agent_version - string - Files Agent version
|
|
266
|
+
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
238
267
|
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
239
268
|
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
240
269
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -246,7 +275,8 @@ class RemoteServer:
|
|
|
246
275
|
# name - string - Internal name for your reference
|
|
247
276
|
# one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
248
277
|
# pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
249
|
-
# port - int64 - Port for remote server.
|
|
278
|
+
# port - int64 - Port for remote server.
|
|
279
|
+
# remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
|
|
250
280
|
# s3_bucket - string - S3 bucket name
|
|
251
281
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
252
282
|
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -257,7 +287,7 @@ class RemoteServer:
|
|
|
257
287
|
# 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
|
|
258
288
|
# server_type - string - Remote server type.
|
|
259
289
|
# ssl - string - Should we require SSL?
|
|
260
|
-
# username - string - Remote server username.
|
|
290
|
+
# username - string - Remote server username.
|
|
261
291
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
262
292
|
# wasabi_bucket - string - Wasabi: Bucket name
|
|
263
293
|
# wasabi_region - string - Wasabi: Region
|
|
@@ -439,6 +469,12 @@ class RemoteServer:
|
|
|
439
469
|
raise InvalidParameterError(
|
|
440
470
|
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
441
471
|
)
|
|
472
|
+
if "buffer_uploads" in params and not isinstance(
|
|
473
|
+
params["buffer_uploads"], str
|
|
474
|
+
):
|
|
475
|
+
raise InvalidParameterError(
|
|
476
|
+
"Bad parameter: buffer_uploads must be an str"
|
|
477
|
+
)
|
|
442
478
|
if "cloudflare_access_key" in params and not isinstance(
|
|
443
479
|
params["cloudflare_access_key"], str
|
|
444
480
|
):
|
|
@@ -457,6 +493,12 @@ class RemoteServer:
|
|
|
457
493
|
raise InvalidParameterError(
|
|
458
494
|
"Bad parameter: cloudflare_endpoint must be an str"
|
|
459
495
|
)
|
|
496
|
+
if "description" in params and not isinstance(
|
|
497
|
+
params["description"], str
|
|
498
|
+
):
|
|
499
|
+
raise InvalidParameterError(
|
|
500
|
+
"Bad parameter: description must be an str"
|
|
501
|
+
)
|
|
460
502
|
if "filebase_access_key" in params and not isinstance(
|
|
461
503
|
params["filebase_access_key"], str
|
|
462
504
|
):
|
|
@@ -487,6 +529,12 @@ class RemoteServer:
|
|
|
487
529
|
raise InvalidParameterError(
|
|
488
530
|
"Bad parameter: files_agent_version must be an str"
|
|
489
531
|
)
|
|
532
|
+
if "outbound_agent_id" in params and not isinstance(
|
|
533
|
+
params["outbound_agent_id"], int
|
|
534
|
+
):
|
|
535
|
+
raise InvalidParameterError(
|
|
536
|
+
"Bad parameter: outbound_agent_id must be an int"
|
|
537
|
+
)
|
|
490
538
|
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
491
539
|
params["google_cloud_storage_bucket"], str
|
|
492
540
|
):
|
|
@@ -546,6 +594,12 @@ class RemoteServer:
|
|
|
546
594
|
)
|
|
547
595
|
if "port" in params and not isinstance(params["port"], int):
|
|
548
596
|
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
597
|
+
if "remote_server_credential_id" in params and not isinstance(
|
|
598
|
+
params["remote_server_credential_id"], int
|
|
599
|
+
):
|
|
600
|
+
raise InvalidParameterError(
|
|
601
|
+
"Bad parameter: remote_server_credential_id must be an int"
|
|
602
|
+
)
|
|
549
603
|
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
550
604
|
raise InvalidParameterError(
|
|
551
605
|
"Bad parameter: s3_bucket must be an str"
|
|
@@ -766,10 +820,11 @@ def find_configuration_file(id, params=None, options=None):
|
|
|
766
820
|
# azure_files_storage_share_name - string - Azure Files: Storage Share name
|
|
767
821
|
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
|
|
768
822
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
769
|
-
#
|
|
823
|
+
# buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
|
|
770
824
|
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
771
825
|
# cloudflare_bucket - string - Cloudflare: Bucket name
|
|
772
826
|
# cloudflare_endpoint - string - Cloudflare: endpoint
|
|
827
|
+
# description - string - Internal description for your reference
|
|
773
828
|
# dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
|
|
774
829
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
775
830
|
# filebase_access_key - string - Filebase: Access Key.
|
|
@@ -777,6 +832,7 @@ def find_configuration_file(id, params=None, options=None):
|
|
|
777
832
|
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
778
833
|
# files_agent_root - string - Agent local root path
|
|
779
834
|
# files_agent_version - string - Files Agent version
|
|
835
|
+
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
780
836
|
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
781
837
|
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
782
838
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -788,7 +844,8 @@ def find_configuration_file(id, params=None, options=None):
|
|
|
788
844
|
# name - string - Internal name for your reference
|
|
789
845
|
# one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
790
846
|
# pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
791
|
-
# port - int64 - Port for remote server.
|
|
847
|
+
# port - int64 - Port for remote server.
|
|
848
|
+
# remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
|
|
792
849
|
# s3_bucket - string - S3 bucket name
|
|
793
850
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
794
851
|
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -799,7 +856,7 @@ def find_configuration_file(id, params=None, options=None):
|
|
|
799
856
|
# 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
|
|
800
857
|
# server_type - string - Remote server type.
|
|
801
858
|
# ssl - string - Should we require SSL?
|
|
802
|
-
# username - string - Remote server username.
|
|
859
|
+
# username - string - Remote server username.
|
|
803
860
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
804
861
|
# wasabi_bucket - string - Wasabi: Bucket name
|
|
805
862
|
# wasabi_region - string - Wasabi: Region
|
|
@@ -982,11 +1039,11 @@ def create(params=None, options=None):
|
|
|
982
1039
|
raise InvalidParameterError(
|
|
983
1040
|
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
984
1041
|
)
|
|
985
|
-
if "
|
|
986
|
-
params["
|
|
1042
|
+
if "buffer_uploads" in params and not isinstance(
|
|
1043
|
+
params["buffer_uploads"], str
|
|
987
1044
|
):
|
|
988
1045
|
raise InvalidParameterError(
|
|
989
|
-
"Bad parameter:
|
|
1046
|
+
"Bad parameter: buffer_uploads must be an str"
|
|
990
1047
|
)
|
|
991
1048
|
if "cloudflare_access_key" in params and not isinstance(
|
|
992
1049
|
params["cloudflare_access_key"], str
|
|
@@ -1006,6 +1063,10 @@ def create(params=None, options=None):
|
|
|
1006
1063
|
raise InvalidParameterError(
|
|
1007
1064
|
"Bad parameter: cloudflare_endpoint must be an str"
|
|
1008
1065
|
)
|
|
1066
|
+
if "description" in params and not isinstance(params["description"], str):
|
|
1067
|
+
raise InvalidParameterError(
|
|
1068
|
+
"Bad parameter: description must be an str"
|
|
1069
|
+
)
|
|
1009
1070
|
if "dropbox_teams" in params and not isinstance(
|
|
1010
1071
|
params["dropbox_teams"], bool
|
|
1011
1072
|
):
|
|
@@ -1048,6 +1109,12 @@ def create(params=None, options=None):
|
|
|
1048
1109
|
raise InvalidParameterError(
|
|
1049
1110
|
"Bad parameter: files_agent_version must be an str"
|
|
1050
1111
|
)
|
|
1112
|
+
if "outbound_agent_id" in params and not isinstance(
|
|
1113
|
+
params["outbound_agent_id"], int
|
|
1114
|
+
):
|
|
1115
|
+
raise InvalidParameterError(
|
|
1116
|
+
"Bad parameter: outbound_agent_id must be an int"
|
|
1117
|
+
)
|
|
1051
1118
|
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
1052
1119
|
params["google_cloud_storage_bucket"], str
|
|
1053
1120
|
):
|
|
@@ -1111,6 +1178,12 @@ def create(params=None, options=None):
|
|
|
1111
1178
|
)
|
|
1112
1179
|
if "port" in params and not isinstance(params["port"], int):
|
|
1113
1180
|
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
1181
|
+
if "remote_server_credential_id" in params and not isinstance(
|
|
1182
|
+
params["remote_server_credential_id"], int
|
|
1183
|
+
):
|
|
1184
|
+
raise InvalidParameterError(
|
|
1185
|
+
"Bad parameter: remote_server_credential_id must be an int"
|
|
1186
|
+
)
|
|
1114
1187
|
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
1115
1188
|
raise InvalidParameterError("Bad parameter: s3_bucket must be an str")
|
|
1116
1189
|
if "s3_compatible_access_key" in params and not isinstance(
|
|
@@ -1183,6 +1256,26 @@ def create(params=None, options=None):
|
|
|
1183
1256
|
return RemoteServer(response.data, options)
|
|
1184
1257
|
|
|
1185
1258
|
|
|
1259
|
+
# Push update to Files Agent
|
|
1260
|
+
def agent_push_update(id, params=None, options=None):
|
|
1261
|
+
if not isinstance(params, dict):
|
|
1262
|
+
params = {}
|
|
1263
|
+
if not isinstance(options, dict):
|
|
1264
|
+
options = {}
|
|
1265
|
+
params["id"] = id
|
|
1266
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
1267
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
1268
|
+
if "id" not in params:
|
|
1269
|
+
raise MissingParameterError("Parameter missing: id")
|
|
1270
|
+
response, options = Api.send_request(
|
|
1271
|
+
"POST",
|
|
1272
|
+
"/remote_servers/{id}/agent_push_update".format(id=params["id"]),
|
|
1273
|
+
params,
|
|
1274
|
+
options,
|
|
1275
|
+
)
|
|
1276
|
+
return AgentPushUpdate(response.data, options)
|
|
1277
|
+
|
|
1278
|
+
|
|
1186
1279
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
1187
1280
|
#
|
|
1188
1281
|
# Parameters:
|
|
@@ -1282,10 +1375,11 @@ def configuration_file(id, params=None, options=None):
|
|
|
1282
1375
|
# azure_files_storage_share_name - string - Azure Files: Storage Share name
|
|
1283
1376
|
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
|
|
1284
1377
|
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
1285
|
-
#
|
|
1378
|
+
# buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
|
|
1286
1379
|
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
1287
1380
|
# cloudflare_bucket - string - Cloudflare: Bucket name
|
|
1288
1381
|
# cloudflare_endpoint - string - Cloudflare: endpoint
|
|
1382
|
+
# description - string - Internal description for your reference
|
|
1289
1383
|
# dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
|
|
1290
1384
|
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
1291
1385
|
# filebase_access_key - string - Filebase: Access Key.
|
|
@@ -1293,6 +1387,7 @@ def configuration_file(id, params=None, options=None):
|
|
|
1293
1387
|
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
1294
1388
|
# files_agent_root - string - Agent local root path
|
|
1295
1389
|
# files_agent_version - string - Files Agent version
|
|
1390
|
+
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
1296
1391
|
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1297
1392
|
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1298
1393
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -1304,7 +1399,8 @@ def configuration_file(id, params=None, options=None):
|
|
|
1304
1399
|
# name - string - Internal name for your reference
|
|
1305
1400
|
# one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
1306
1401
|
# pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
1307
|
-
# port - int64 - Port for remote server.
|
|
1402
|
+
# port - int64 - Port for remote server.
|
|
1403
|
+
# remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
|
|
1308
1404
|
# s3_bucket - string - S3 bucket name
|
|
1309
1405
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
1310
1406
|
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -1315,7 +1411,7 @@ def configuration_file(id, params=None, options=None):
|
|
|
1315
1411
|
# 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
|
|
1316
1412
|
# server_type - string - Remote server type.
|
|
1317
1413
|
# ssl - string - Should we require SSL?
|
|
1318
|
-
# username - string - Remote server username.
|
|
1414
|
+
# username - string - Remote server username.
|
|
1319
1415
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
1320
1416
|
# wasabi_bucket - string - Wasabi: Bucket name
|
|
1321
1417
|
# wasabi_region - string - Wasabi: Region
|
|
@@ -1501,11 +1597,11 @@ def update(id, params=None, options=None):
|
|
|
1501
1597
|
raise InvalidParameterError(
|
|
1502
1598
|
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
1503
1599
|
)
|
|
1504
|
-
if "
|
|
1505
|
-
params["
|
|
1600
|
+
if "buffer_uploads" in params and not isinstance(
|
|
1601
|
+
params["buffer_uploads"], str
|
|
1506
1602
|
):
|
|
1507
1603
|
raise InvalidParameterError(
|
|
1508
|
-
"Bad parameter:
|
|
1604
|
+
"Bad parameter: buffer_uploads must be an str"
|
|
1509
1605
|
)
|
|
1510
1606
|
if "cloudflare_access_key" in params and not isinstance(
|
|
1511
1607
|
params["cloudflare_access_key"], str
|
|
@@ -1525,6 +1621,10 @@ def update(id, params=None, options=None):
|
|
|
1525
1621
|
raise InvalidParameterError(
|
|
1526
1622
|
"Bad parameter: cloudflare_endpoint must be an str"
|
|
1527
1623
|
)
|
|
1624
|
+
if "description" in params and not isinstance(params["description"], str):
|
|
1625
|
+
raise InvalidParameterError(
|
|
1626
|
+
"Bad parameter: description must be an str"
|
|
1627
|
+
)
|
|
1528
1628
|
if "dropbox_teams" in params and not isinstance(
|
|
1529
1629
|
params["dropbox_teams"], bool
|
|
1530
1630
|
):
|
|
@@ -1567,6 +1667,12 @@ def update(id, params=None, options=None):
|
|
|
1567
1667
|
raise InvalidParameterError(
|
|
1568
1668
|
"Bad parameter: files_agent_version must be an str"
|
|
1569
1669
|
)
|
|
1670
|
+
if "outbound_agent_id" in params and not isinstance(
|
|
1671
|
+
params["outbound_agent_id"], int
|
|
1672
|
+
):
|
|
1673
|
+
raise InvalidParameterError(
|
|
1674
|
+
"Bad parameter: outbound_agent_id must be an int"
|
|
1675
|
+
)
|
|
1570
1676
|
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
1571
1677
|
params["google_cloud_storage_bucket"], str
|
|
1572
1678
|
):
|
|
@@ -1630,6 +1736,12 @@ def update(id, params=None, options=None):
|
|
|
1630
1736
|
)
|
|
1631
1737
|
if "port" in params and not isinstance(params["port"], int):
|
|
1632
1738
|
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
1739
|
+
if "remote_server_credential_id" in params and not isinstance(
|
|
1740
|
+
params["remote_server_credential_id"], int
|
|
1741
|
+
):
|
|
1742
|
+
raise InvalidParameterError(
|
|
1743
|
+
"Bad parameter: remote_server_credential_id must be an int"
|
|
1744
|
+
)
|
|
1633
1745
|
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
1634
1746
|
raise InvalidParameterError("Bad parameter: s3_bucket must be an str")
|
|
1635
1747
|
if "s3_compatible_access_key" in params and not isinstance(
|