files-com 1.5.1__py3-none-any.whl → 1.5.3__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.
Potentially problematic release.
This version of files-com might be problematic. Click here for more details.
- _VERSION +1 -1
- {files_com-1.5.1.dist-info → files_com-1.5.3.dist-info}/METADATA +1 -1
- {files_com-1.5.1.dist-info → files_com-1.5.3.dist-info}/RECORD +10 -10
- files_sdk/__init__.py +1 -1
- files_sdk/models/remote_server.py +814 -730
- files_sdk/models/settings_change.py +4 -4
- files_sdk/models/siem_http_destination.py +6 -0
- {files_com-1.5.1.dist-info → files_com-1.5.3.dist-info}/WHEEL +0 -0
- {files_com-1.5.1.dist-info → files_com-1.5.3.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.5.1.dist-info → files_com-1.5.3.dist-info}/top_level.txt +0 -0
|
@@ -31,64 +31,67 @@ class RemoteServer:
|
|
|
31
31
|
"server_type": None, # string - Remote server type.
|
|
32
32
|
"ssl": None, # string - Should we require SSL?
|
|
33
33
|
"username": None, # string - Remote server username. Not needed for S3 buckets.
|
|
34
|
-
"google_cloud_storage_bucket": None, # string - Google Cloud Storage
|
|
35
|
-
"google_cloud_storage_project_id": None, # string - Google Cloud Project ID
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
34
|
+
"google_cloud_storage_bucket": None, # string - Google Cloud Storage: Bucket Name
|
|
35
|
+
"google_cloud_storage_project_id": None, # string - Google Cloud Storage: Project ID
|
|
36
|
+
"google_cloud_storage_region": None, # string - Google Cloud Storage: Region
|
|
37
|
+
"google_cloud_storage_s3_compatible_access_key": None, # string - Google Cloud Storage: S3-compatible Access Key.
|
|
38
|
+
"backblaze_b2_s3_endpoint": None, # string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
39
|
+
"backblaze_b2_bucket": None, # string - Backblaze B2 Cloud Storage: Bucket name
|
|
40
|
+
"wasabi_bucket": None, # string - Wasabi: Bucket name
|
|
41
|
+
"wasabi_region": None, # string - Wasabi: Region
|
|
42
|
+
"wasabi_access_key": None, # string - Wasabi: Access Key.
|
|
43
|
+
"rackspace_username": None, # string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
44
|
+
"rackspace_region": None, # string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
45
|
+
"rackspace_container": None, # string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
44
46
|
"auth_status": None, # string - Either `in_setup` or `complete`
|
|
45
47
|
"auth_account_name": None, # string - Describes the authorized account
|
|
46
|
-
"one_drive_account_type": None, # string - Either personal or business_other account types
|
|
47
|
-
"azure_blob_storage_account": None, # string - Azure Blob Storage Account name
|
|
48
|
-
"azure_blob_storage_container": None, # string - Azure Blob Storage Container name
|
|
49
|
-
"azure_blob_storage_hierarchical_namespace": None, # boolean -
|
|
50
|
-
"azure_blob_storage_dns_suffix": None, # string - Custom DNS suffix
|
|
51
|
-
"azure_files_storage_account": None, # string - Azure
|
|
52
|
-
"azure_files_storage_share_name": None, # string - Azure
|
|
53
|
-
"azure_files_storage_dns_suffix": None, # string - Custom DNS suffix
|
|
54
|
-
"s3_compatible_bucket": None, # string - S3-compatible Bucket name
|
|
55
|
-
"s3_compatible_endpoint": None, # string - S3-compatible endpoint
|
|
56
|
-
"s3_compatible_region": None, # string - S3-compatible
|
|
57
|
-
"s3_compatible_access_key": None, # string - S3-compatible Access Key
|
|
48
|
+
"one_drive_account_type": None, # string - OneDrive: Either personal or business_other account types
|
|
49
|
+
"azure_blob_storage_account": None, # string - Azure Blob Storage: Account name
|
|
50
|
+
"azure_blob_storage_container": None, # string - Azure Blob Storage: Container name
|
|
51
|
+
"azure_blob_storage_hierarchical_namespace": None, # boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
|
|
52
|
+
"azure_blob_storage_dns_suffix": None, # string - Azure Blob Storage: Custom DNS suffix
|
|
53
|
+
"azure_files_storage_account": None, # string - Azure Files: Storage Account name
|
|
54
|
+
"azure_files_storage_share_name": None, # string - Azure Files: Storage Share name
|
|
55
|
+
"azure_files_storage_dns_suffix": None, # string - Azure Files: Custom DNS suffix
|
|
56
|
+
"s3_compatible_bucket": None, # string - S3-compatible: Bucket name
|
|
57
|
+
"s3_compatible_endpoint": None, # string - S3-compatible: endpoint
|
|
58
|
+
"s3_compatible_region": None, # string - S3-compatible: region
|
|
59
|
+
"s3_compatible_access_key": None, # string - S3-compatible: Access Key
|
|
58
60
|
"enable_dedicated_ips": None, # boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
59
61
|
"files_agent_permission_set": None, # string - Local permissions for files agent. read_only, write_only, or read_write
|
|
60
62
|
"files_agent_root": None, # string - Agent local root path
|
|
61
63
|
"files_agent_api_token": None, # string - Files Agent API Token
|
|
62
64
|
"files_agent_version": None, # string - Files Agent version
|
|
63
|
-
"filebase_bucket": None, # string - Filebase Bucket name
|
|
64
|
-
"filebase_access_key": None, # string - Filebase Access Key.
|
|
65
|
-
"cloudflare_bucket": None, # string - Cloudflare Bucket name
|
|
66
|
-
"cloudflare_access_key": None, # string - Cloudflare Access Key.
|
|
67
|
-
"cloudflare_endpoint": None, # string - Cloudflare endpoint
|
|
68
|
-
"dropbox_teams": None, # boolean -
|
|
69
|
-
"linode_bucket": None, # string - Linode Bucket name
|
|
70
|
-
"linode_access_key": None, # string - Linode Access Key
|
|
71
|
-
"linode_region": None, # string - Linode region
|
|
65
|
+
"filebase_bucket": None, # string - Filebase: Bucket name
|
|
66
|
+
"filebase_access_key": None, # string - Filebase: Access Key.
|
|
67
|
+
"cloudflare_bucket": None, # string - Cloudflare: Bucket name
|
|
68
|
+
"cloudflare_access_key": None, # string - Cloudflare: Access Key.
|
|
69
|
+
"cloudflare_endpoint": None, # string - Cloudflare: endpoint
|
|
70
|
+
"dropbox_teams": None, # boolean - Dropbox: If true, list Team folders in root?
|
|
71
|
+
"linode_bucket": None, # string - Linode: Bucket name
|
|
72
|
+
"linode_access_key": None, # string - Linode: Access Key
|
|
73
|
+
"linode_region": None, # string - Linode: region
|
|
72
74
|
"supports_versioning": None, # boolean - If true, this remote server supports file versioning. This value is determined automatically by Files.com.
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"private_key": None, # string - Private key if needed.
|
|
75
|
+
"password": None, # string - Password, if needed.
|
|
76
|
+
"private_key": None, # string - Private key, if needed.
|
|
76
77
|
"private_key_passphrase": None, # string - Passphrase for private key if needed.
|
|
78
|
+
"reset_authentication": None, # boolean - Reset authenticated account?
|
|
77
79
|
"ssl_certificate": None, # string - SSL client certificate.
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
80
|
+
"aws_secret_key": None, # string - AWS: secret key.
|
|
81
|
+
"azure_blob_storage_access_key": None, # string - Azure Blob Storage: Access Key
|
|
82
|
+
"azure_blob_storage_sas_token": None, # string - Azure Blob Storage: Shared Access Signature (SAS) token
|
|
83
|
+
"azure_files_storage_access_key": None, # string - Azure File Storage: Access Key
|
|
84
|
+
"azure_files_storage_sas_token": None, # string - Azure File Storage: Shared Access Signature (SAS) token
|
|
85
|
+
"backblaze_b2_application_key": None, # string - Backblaze B2 Cloud Storage: applicationKey
|
|
86
|
+
"backblaze_b2_key_id": None, # string - Backblaze B2 Cloud Storage: keyID
|
|
87
|
+
"cloudflare_secret_key": None, # string - Cloudflare: Secret Key
|
|
88
|
+
"filebase_secret_key": None, # string - Filebase: Secret Key
|
|
89
|
+
"google_cloud_storage_credentials_json": None, # string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
90
|
+
"google_cloud_storage_s3_compatible_secret_key": None, # string - Google Cloud Storage: S3-compatible secret key
|
|
91
|
+
"linode_secret_key": None, # string - Linode: Secret Key
|
|
92
|
+
"rackspace_api_key": None, # string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
93
|
+
"s3_compatible_secret_key": None, # string - S3-compatible: Secret Key
|
|
94
|
+
"wasabi_secret_key": None, # string - Wasabi: Secret Key
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
def __init__(self, attributes=None, options=None):
|
|
@@ -196,73 +199,76 @@ class RemoteServer:
|
|
|
196
199
|
return response.data
|
|
197
200
|
|
|
198
201
|
# Parameters:
|
|
199
|
-
#
|
|
200
|
-
#
|
|
201
|
-
# password - string - Password if needed.
|
|
202
|
-
# private_key - string - Private key if needed.
|
|
202
|
+
# password - string - Password, if needed.
|
|
203
|
+
# private_key - string - Private key, if needed.
|
|
203
204
|
# private_key_passphrase - string - Passphrase for private key if needed.
|
|
205
|
+
# reset_authentication - boolean - Reset authenticated account?
|
|
204
206
|
# ssl_certificate - string - SSL client certificate.
|
|
205
|
-
#
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
#
|
|
209
|
-
#
|
|
210
|
-
#
|
|
211
|
-
#
|
|
212
|
-
#
|
|
213
|
-
#
|
|
207
|
+
# aws_secret_key - string - AWS: secret key.
|
|
208
|
+
# azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
|
|
209
|
+
# azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
|
|
210
|
+
# azure_files_storage_access_key - string - Azure File Storage: Access Key
|
|
211
|
+
# azure_files_storage_sas_token - string - Azure File Storage: Shared Access Signature (SAS) token
|
|
212
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
|
|
213
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
|
|
214
|
+
# cloudflare_secret_key - string - Cloudflare: Secret Key
|
|
215
|
+
# filebase_secret_key - string - Filebase: Secret Key
|
|
216
|
+
# google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
217
|
+
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
218
|
+
# linode_secret_key - string - Linode: Secret Key
|
|
219
|
+
# rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
220
|
+
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
221
|
+
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
222
|
+
# aws_access_key - string - AWS Access Key.
|
|
223
|
+
# azure_blob_storage_account - string - Azure Blob Storage: Account name
|
|
224
|
+
# azure_blob_storage_container - string - Azure Blob Storage: Container name
|
|
225
|
+
# azure_blob_storage_dns_suffix - string - Azure Blob Storage: Custom DNS suffix
|
|
226
|
+
# azure_blob_storage_hierarchical_namespace - boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
|
|
227
|
+
# azure_files_storage_account - string - Azure Files: Storage Account name
|
|
228
|
+
# azure_files_storage_dns_suffix - string - Azure Files: Custom DNS suffix
|
|
229
|
+
# azure_files_storage_share_name - string - Azure Files: Storage Share name
|
|
230
|
+
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
|
|
231
|
+
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
232
|
+
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
233
|
+
# cloudflare_bucket - string - Cloudflare: Bucket name
|
|
234
|
+
# cloudflare_endpoint - string - Cloudflare: endpoint
|
|
235
|
+
# dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
|
|
236
|
+
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
237
|
+
# filebase_access_key - string - Filebase: Access Key.
|
|
238
|
+
# filebase_bucket - string - Filebase: Bucket name
|
|
239
|
+
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
240
|
+
# files_agent_root - string - Agent local root path
|
|
241
|
+
# files_agent_version - string - Files Agent version
|
|
242
|
+
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
243
|
+
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
244
|
+
# google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
245
|
+
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
214
246
|
# hostname - string - Hostname or IP address
|
|
215
|
-
#
|
|
247
|
+
# linode_access_key - string - Linode: Access Key
|
|
248
|
+
# linode_bucket - string - Linode: Bucket name
|
|
249
|
+
# linode_region - string - Linode: region
|
|
216
250
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
251
|
+
# name - string - Internal name for your reference
|
|
252
|
+
# one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
217
253
|
# 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.
|
|
218
254
|
# port - int64 - Port for remote server. Not needed for S3.
|
|
255
|
+
# rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
256
|
+
# rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
257
|
+
# rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
219
258
|
# s3_bucket - string - S3 bucket name
|
|
259
|
+
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
260
|
+
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
261
|
+
# s3_compatible_endpoint - string - S3-compatible: endpoint
|
|
262
|
+
# s3_compatible_region - string - S3-compatible: region
|
|
220
263
|
# s3_region - string - S3 region
|
|
221
264
|
# server_certificate - string - Remote server certificate
|
|
222
265
|
# 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
|
|
223
266
|
# server_type - string - Remote server type.
|
|
224
267
|
# ssl - string - Should we require SSL?
|
|
225
268
|
# username - string - Remote server username. Not needed for S3 buckets.
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
|
230
|
-
# wasabi_bucket - string - Wasabi Bucket name
|
|
231
|
-
# wasabi_region - string - Wasabi region
|
|
232
|
-
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
233
|
-
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
234
|
-
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
|
235
|
-
# one_drive_account_type - string - Either personal or business_other account types
|
|
236
|
-
# azure_blob_storage_account - string - Azure Blob Storage Account name
|
|
237
|
-
# azure_blob_storage_container - string - Azure Blob Storage Container name
|
|
238
|
-
# azure_blob_storage_hierarchical_namespace - boolean - Enable when storage account has hierarchical namespace feature enabled
|
|
239
|
-
# azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
|
240
|
-
# azure_blob_storage_dns_suffix - string - Custom DNS suffix
|
|
241
|
-
# azure_files_storage_account - string - Azure File Storage Account name
|
|
242
|
-
# azure_files_storage_share_name - string - Azure File Storage Share name
|
|
243
|
-
# azure_files_storage_dns_suffix - string - Custom DNS suffix
|
|
244
|
-
# azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
|
245
|
-
# s3_compatible_bucket - string - S3-compatible Bucket name
|
|
246
|
-
# s3_compatible_endpoint - string - S3-compatible endpoint
|
|
247
|
-
# s3_compatible_region - string - S3-compatible endpoint
|
|
248
|
-
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
249
|
-
# s3_compatible_access_key - string - S3-compatible Access Key.
|
|
250
|
-
# s3_compatible_secret_key - string - S3-compatible secret key
|
|
251
|
-
# files_agent_root - string - Agent local root path
|
|
252
|
-
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
253
|
-
# files_agent_version - string - Files Agent version
|
|
254
|
-
# filebase_access_key - string - Filebase Access Key.
|
|
255
|
-
# filebase_secret_key - string - Filebase secret key
|
|
256
|
-
# filebase_bucket - string - Filebase Bucket name
|
|
257
|
-
# cloudflare_access_key - string - Cloudflare Access Key.
|
|
258
|
-
# cloudflare_secret_key - string - Cloudflare secret key
|
|
259
|
-
# cloudflare_bucket - string - Cloudflare Bucket name
|
|
260
|
-
# cloudflare_endpoint - string - Cloudflare endpoint
|
|
261
|
-
# dropbox_teams - boolean - List Team folders in root
|
|
262
|
-
# linode_access_key - string - Linode Access Key.
|
|
263
|
-
# linode_secret_key - string - Linode secret key
|
|
264
|
-
# linode_bucket - string - Linode Bucket name
|
|
265
|
-
# linode_region - string - Linode region
|
|
269
|
+
# wasabi_access_key - string - Wasabi: Access Key.
|
|
270
|
+
# wasabi_bucket - string - Wasabi: Bucket name
|
|
271
|
+
# wasabi_region - string - Wasabi: Region
|
|
266
272
|
def update(self, params=None):
|
|
267
273
|
if not isinstance(params, dict):
|
|
268
274
|
params = {}
|
|
@@ -275,18 +281,6 @@ class RemoteServer:
|
|
|
275
281
|
raise MissingParameterError("Parameter missing: id")
|
|
276
282
|
if "id" in params and not isinstance(params["id"], int):
|
|
277
283
|
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
278
|
-
if "aws_access_key" in params and not isinstance(
|
|
279
|
-
params["aws_access_key"], str
|
|
280
|
-
):
|
|
281
|
-
raise InvalidParameterError(
|
|
282
|
-
"Bad parameter: aws_access_key must be an str"
|
|
283
|
-
)
|
|
284
|
-
if "aws_secret_key" in params and not isinstance(
|
|
285
|
-
params["aws_secret_key"], str
|
|
286
|
-
):
|
|
287
|
-
raise InvalidParameterError(
|
|
288
|
-
"Bad parameter: aws_secret_key must be an str"
|
|
289
|
-
)
|
|
290
284
|
if "password" in params and not isinstance(params["password"], str):
|
|
291
285
|
raise InvalidParameterError(
|
|
292
286
|
"Bad parameter: password must be an str"
|
|
@@ -309,44 +303,11 @@ class RemoteServer:
|
|
|
309
303
|
raise InvalidParameterError(
|
|
310
304
|
"Bad parameter: ssl_certificate must be an str"
|
|
311
305
|
)
|
|
312
|
-
if (
|
|
313
|
-
"
|
|
314
|
-
and not isinstance(
|
|
315
|
-
params["google_cloud_storage_credentials_json"], str
|
|
316
|
-
)
|
|
317
|
-
):
|
|
318
|
-
raise InvalidParameterError(
|
|
319
|
-
"Bad parameter: google_cloud_storage_credentials_json must be an str"
|
|
320
|
-
)
|
|
321
|
-
if "wasabi_access_key" in params and not isinstance(
|
|
322
|
-
params["wasabi_access_key"], str
|
|
323
|
-
):
|
|
324
|
-
raise InvalidParameterError(
|
|
325
|
-
"Bad parameter: wasabi_access_key must be an str"
|
|
326
|
-
)
|
|
327
|
-
if "wasabi_secret_key" in params and not isinstance(
|
|
328
|
-
params["wasabi_secret_key"], str
|
|
329
|
-
):
|
|
330
|
-
raise InvalidParameterError(
|
|
331
|
-
"Bad parameter: wasabi_secret_key must be an str"
|
|
332
|
-
)
|
|
333
|
-
if "backblaze_b2_key_id" in params and not isinstance(
|
|
334
|
-
params["backblaze_b2_key_id"], str
|
|
335
|
-
):
|
|
336
|
-
raise InvalidParameterError(
|
|
337
|
-
"Bad parameter: backblaze_b2_key_id must be an str"
|
|
338
|
-
)
|
|
339
|
-
if "backblaze_b2_application_key" in params and not isinstance(
|
|
340
|
-
params["backblaze_b2_application_key"], str
|
|
341
|
-
):
|
|
342
|
-
raise InvalidParameterError(
|
|
343
|
-
"Bad parameter: backblaze_b2_application_key must be an str"
|
|
344
|
-
)
|
|
345
|
-
if "rackspace_api_key" in params and not isinstance(
|
|
346
|
-
params["rackspace_api_key"], str
|
|
306
|
+
if "aws_secret_key" in params and not isinstance(
|
|
307
|
+
params["aws_secret_key"], str
|
|
347
308
|
):
|
|
348
309
|
raise InvalidParameterError(
|
|
349
|
-
"Bad parameter:
|
|
310
|
+
"Bad parameter: aws_secret_key must be an str"
|
|
350
311
|
)
|
|
351
312
|
if "azure_blob_storage_access_key" in params and not isinstance(
|
|
352
313
|
params["azure_blob_storage_access_key"], str
|
|
@@ -354,117 +315,95 @@ class RemoteServer:
|
|
|
354
315
|
raise InvalidParameterError(
|
|
355
316
|
"Bad parameter: azure_blob_storage_access_key must be an str"
|
|
356
317
|
)
|
|
318
|
+
if "azure_blob_storage_sas_token" in params and not isinstance(
|
|
319
|
+
params["azure_blob_storage_sas_token"], str
|
|
320
|
+
):
|
|
321
|
+
raise InvalidParameterError(
|
|
322
|
+
"Bad parameter: azure_blob_storage_sas_token must be an str"
|
|
323
|
+
)
|
|
357
324
|
if "azure_files_storage_access_key" in params and not isinstance(
|
|
358
325
|
params["azure_files_storage_access_key"], str
|
|
359
326
|
):
|
|
360
327
|
raise InvalidParameterError(
|
|
361
328
|
"Bad parameter: azure_files_storage_access_key must be an str"
|
|
362
329
|
)
|
|
363
|
-
if "
|
|
364
|
-
|
|
365
|
-
"Bad parameter: hostname must be an str"
|
|
366
|
-
)
|
|
367
|
-
if "name" in params and not isinstance(params["name"], str):
|
|
368
|
-
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
369
|
-
if "max_connections" in params and not isinstance(
|
|
370
|
-
params["max_connections"], int
|
|
330
|
+
if "azure_files_storage_sas_token" in params and not isinstance(
|
|
331
|
+
params["azure_files_storage_sas_token"], str
|
|
371
332
|
):
|
|
372
333
|
raise InvalidParameterError(
|
|
373
|
-
"Bad parameter:
|
|
374
|
-
)
|
|
375
|
-
if "port" in params and not isinstance(params["port"], int):
|
|
376
|
-
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
377
|
-
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
378
|
-
raise InvalidParameterError(
|
|
379
|
-
"Bad parameter: s3_bucket must be an str"
|
|
380
|
-
)
|
|
381
|
-
if "s3_region" in params and not isinstance(params["s3_region"], str):
|
|
382
|
-
raise InvalidParameterError(
|
|
383
|
-
"Bad parameter: s3_region must be an str"
|
|
334
|
+
"Bad parameter: azure_files_storage_sas_token must be an str"
|
|
384
335
|
)
|
|
385
|
-
if "
|
|
386
|
-
params["
|
|
336
|
+
if "backblaze_b2_application_key" in params and not isinstance(
|
|
337
|
+
params["backblaze_b2_application_key"], str
|
|
387
338
|
):
|
|
388
339
|
raise InvalidParameterError(
|
|
389
|
-
"Bad parameter:
|
|
340
|
+
"Bad parameter: backblaze_b2_application_key must be an str"
|
|
390
341
|
)
|
|
391
|
-
if "
|
|
392
|
-
params["
|
|
342
|
+
if "backblaze_b2_key_id" in params and not isinstance(
|
|
343
|
+
params["backblaze_b2_key_id"], str
|
|
393
344
|
):
|
|
394
345
|
raise InvalidParameterError(
|
|
395
|
-
"Bad parameter:
|
|
346
|
+
"Bad parameter: backblaze_b2_key_id must be an str"
|
|
396
347
|
)
|
|
397
|
-
if "
|
|
398
|
-
params["
|
|
348
|
+
if "cloudflare_secret_key" in params and not isinstance(
|
|
349
|
+
params["cloudflare_secret_key"], str
|
|
399
350
|
):
|
|
400
351
|
raise InvalidParameterError(
|
|
401
|
-
"Bad parameter:
|
|
402
|
-
)
|
|
403
|
-
if "ssl" in params and not isinstance(params["ssl"], str):
|
|
404
|
-
raise InvalidParameterError("Bad parameter: ssl must be an str")
|
|
405
|
-
if "username" in params and not isinstance(params["username"], str):
|
|
406
|
-
raise InvalidParameterError(
|
|
407
|
-
"Bad parameter: username must be an str"
|
|
352
|
+
"Bad parameter: cloudflare_secret_key must be an str"
|
|
408
353
|
)
|
|
409
|
-
if "
|
|
410
|
-
params["
|
|
354
|
+
if "filebase_secret_key" in params and not isinstance(
|
|
355
|
+
params["filebase_secret_key"], str
|
|
411
356
|
):
|
|
412
357
|
raise InvalidParameterError(
|
|
413
|
-
"Bad parameter:
|
|
358
|
+
"Bad parameter: filebase_secret_key must be an str"
|
|
414
359
|
)
|
|
415
|
-
if
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
"Bad parameter: google_cloud_storage_project_id must be an str"
|
|
360
|
+
if (
|
|
361
|
+
"google_cloud_storage_credentials_json" in params
|
|
362
|
+
and not isinstance(
|
|
363
|
+
params["google_cloud_storage_credentials_json"], str
|
|
420
364
|
)
|
|
421
|
-
if "backblaze_b2_bucket" in params and not isinstance(
|
|
422
|
-
params["backblaze_b2_bucket"], str
|
|
423
365
|
):
|
|
424
366
|
raise InvalidParameterError(
|
|
425
|
-
"Bad parameter:
|
|
367
|
+
"Bad parameter: google_cloud_storage_credentials_json must be an str"
|
|
426
368
|
)
|
|
427
|
-
if
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
369
|
+
if (
|
|
370
|
+
"google_cloud_storage_s3_compatible_secret_key" in params
|
|
371
|
+
and not isinstance(
|
|
372
|
+
params["google_cloud_storage_s3_compatible_secret_key"], str
|
|
432
373
|
)
|
|
433
|
-
if "wasabi_bucket" in params and not isinstance(
|
|
434
|
-
params["wasabi_bucket"], str
|
|
435
374
|
):
|
|
436
375
|
raise InvalidParameterError(
|
|
437
|
-
"Bad parameter:
|
|
376
|
+
"Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an str"
|
|
438
377
|
)
|
|
439
|
-
if "
|
|
440
|
-
params["
|
|
378
|
+
if "linode_secret_key" in params and not isinstance(
|
|
379
|
+
params["linode_secret_key"], str
|
|
441
380
|
):
|
|
442
381
|
raise InvalidParameterError(
|
|
443
|
-
"Bad parameter:
|
|
382
|
+
"Bad parameter: linode_secret_key must be an str"
|
|
444
383
|
)
|
|
445
|
-
if "
|
|
446
|
-
params["
|
|
384
|
+
if "rackspace_api_key" in params and not isinstance(
|
|
385
|
+
params["rackspace_api_key"], str
|
|
447
386
|
):
|
|
448
387
|
raise InvalidParameterError(
|
|
449
|
-
"Bad parameter:
|
|
388
|
+
"Bad parameter: rackspace_api_key must be an str"
|
|
450
389
|
)
|
|
451
|
-
if "
|
|
452
|
-
params["
|
|
390
|
+
if "s3_compatible_secret_key" in params and not isinstance(
|
|
391
|
+
params["s3_compatible_secret_key"], str
|
|
453
392
|
):
|
|
454
393
|
raise InvalidParameterError(
|
|
455
|
-
"Bad parameter:
|
|
394
|
+
"Bad parameter: s3_compatible_secret_key must be an str"
|
|
456
395
|
)
|
|
457
|
-
if "
|
|
458
|
-
params["
|
|
396
|
+
if "wasabi_secret_key" in params and not isinstance(
|
|
397
|
+
params["wasabi_secret_key"], str
|
|
459
398
|
):
|
|
460
399
|
raise InvalidParameterError(
|
|
461
|
-
"Bad parameter:
|
|
400
|
+
"Bad parameter: wasabi_secret_key must be an str"
|
|
462
401
|
)
|
|
463
|
-
if "
|
|
464
|
-
params["
|
|
402
|
+
if "aws_access_key" in params and not isinstance(
|
|
403
|
+
params["aws_access_key"], str
|
|
465
404
|
):
|
|
466
405
|
raise InvalidParameterError(
|
|
467
|
-
"Bad parameter:
|
|
406
|
+
"Bad parameter: aws_access_key must be an str"
|
|
468
407
|
)
|
|
469
408
|
if "azure_blob_storage_account" in params and not isinstance(
|
|
470
409
|
params["azure_blob_storage_account"], str
|
|
@@ -478,12 +417,6 @@ class RemoteServer:
|
|
|
478
417
|
raise InvalidParameterError(
|
|
479
418
|
"Bad parameter: azure_blob_storage_container must be an str"
|
|
480
419
|
)
|
|
481
|
-
if "azure_blob_storage_sas_token" in params and not isinstance(
|
|
482
|
-
params["azure_blob_storage_sas_token"], str
|
|
483
|
-
):
|
|
484
|
-
raise InvalidParameterError(
|
|
485
|
-
"Bad parameter: azure_blob_storage_sas_token must be an str"
|
|
486
|
-
)
|
|
487
420
|
if "azure_blob_storage_dns_suffix" in params and not isinstance(
|
|
488
421
|
params["azure_blob_storage_dns_suffix"], str
|
|
489
422
|
):
|
|
@@ -496,59 +429,59 @@ class RemoteServer:
|
|
|
496
429
|
raise InvalidParameterError(
|
|
497
430
|
"Bad parameter: azure_files_storage_account must be an str"
|
|
498
431
|
)
|
|
499
|
-
if "azure_files_storage_share_name" in params and not isinstance(
|
|
500
|
-
params["azure_files_storage_share_name"], str
|
|
501
|
-
):
|
|
502
|
-
raise InvalidParameterError(
|
|
503
|
-
"Bad parameter: azure_files_storage_share_name must be an str"
|
|
504
|
-
)
|
|
505
432
|
if "azure_files_storage_dns_suffix" in params and not isinstance(
|
|
506
433
|
params["azure_files_storage_dns_suffix"], str
|
|
507
434
|
):
|
|
508
435
|
raise InvalidParameterError(
|
|
509
436
|
"Bad parameter: azure_files_storage_dns_suffix must be an str"
|
|
510
437
|
)
|
|
511
|
-
if "
|
|
512
|
-
params["
|
|
438
|
+
if "azure_files_storage_share_name" in params and not isinstance(
|
|
439
|
+
params["azure_files_storage_share_name"], str
|
|
513
440
|
):
|
|
514
441
|
raise InvalidParameterError(
|
|
515
|
-
"Bad parameter:
|
|
442
|
+
"Bad parameter: azure_files_storage_share_name must be an str"
|
|
516
443
|
)
|
|
517
|
-
if "
|
|
518
|
-
params["
|
|
444
|
+
if "backblaze_b2_bucket" in params and not isinstance(
|
|
445
|
+
params["backblaze_b2_bucket"], str
|
|
519
446
|
):
|
|
520
447
|
raise InvalidParameterError(
|
|
521
|
-
"Bad parameter:
|
|
448
|
+
"Bad parameter: backblaze_b2_bucket must be an str"
|
|
522
449
|
)
|
|
523
|
-
if "
|
|
524
|
-
params["
|
|
450
|
+
if "backblaze_b2_s3_endpoint" in params and not isinstance(
|
|
451
|
+
params["backblaze_b2_s3_endpoint"], str
|
|
525
452
|
):
|
|
526
453
|
raise InvalidParameterError(
|
|
527
|
-
"Bad parameter:
|
|
454
|
+
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
528
455
|
)
|
|
529
|
-
if "
|
|
530
|
-
params["
|
|
456
|
+
if "cloudflare_access_key" in params and not isinstance(
|
|
457
|
+
params["cloudflare_access_key"], str
|
|
531
458
|
):
|
|
532
459
|
raise InvalidParameterError(
|
|
533
|
-
"Bad parameter:
|
|
460
|
+
"Bad parameter: cloudflare_access_key must be an str"
|
|
534
461
|
)
|
|
535
|
-
if "
|
|
536
|
-
params["
|
|
462
|
+
if "cloudflare_bucket" in params and not isinstance(
|
|
463
|
+
params["cloudflare_bucket"], str
|
|
537
464
|
):
|
|
538
465
|
raise InvalidParameterError(
|
|
539
|
-
"Bad parameter:
|
|
466
|
+
"Bad parameter: cloudflare_bucket must be an str"
|
|
540
467
|
)
|
|
541
|
-
if "
|
|
542
|
-
params["
|
|
468
|
+
if "cloudflare_endpoint" in params and not isinstance(
|
|
469
|
+
params["cloudflare_endpoint"], str
|
|
543
470
|
):
|
|
544
471
|
raise InvalidParameterError(
|
|
545
|
-
"Bad parameter:
|
|
472
|
+
"Bad parameter: cloudflare_endpoint must be an str"
|
|
546
473
|
)
|
|
547
|
-
if "
|
|
548
|
-
params["
|
|
474
|
+
if "filebase_access_key" in params and not isinstance(
|
|
475
|
+
params["filebase_access_key"], str
|
|
549
476
|
):
|
|
550
477
|
raise InvalidParameterError(
|
|
551
|
-
"Bad parameter:
|
|
478
|
+
"Bad parameter: filebase_access_key must be an str"
|
|
479
|
+
)
|
|
480
|
+
if "filebase_bucket" in params and not isinstance(
|
|
481
|
+
params["filebase_bucket"], str
|
|
482
|
+
):
|
|
483
|
+
raise InvalidParameterError(
|
|
484
|
+
"Bad parameter: filebase_bucket must be an str"
|
|
552
485
|
)
|
|
553
486
|
if "files_agent_permission_set" in params and not isinstance(
|
|
554
487
|
params["files_agent_permission_set"], str
|
|
@@ -556,53 +489,48 @@ class RemoteServer:
|
|
|
556
489
|
raise InvalidParameterError(
|
|
557
490
|
"Bad parameter: files_agent_permission_set must be an str"
|
|
558
491
|
)
|
|
492
|
+
if "files_agent_root" in params and not isinstance(
|
|
493
|
+
params["files_agent_root"], str
|
|
494
|
+
):
|
|
495
|
+
raise InvalidParameterError(
|
|
496
|
+
"Bad parameter: files_agent_root must be an str"
|
|
497
|
+
)
|
|
559
498
|
if "files_agent_version" in params and not isinstance(
|
|
560
499
|
params["files_agent_version"], str
|
|
561
500
|
):
|
|
562
501
|
raise InvalidParameterError(
|
|
563
502
|
"Bad parameter: files_agent_version must be an str"
|
|
564
503
|
)
|
|
565
|
-
if "
|
|
566
|
-
params["
|
|
504
|
+
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
505
|
+
params["google_cloud_storage_bucket"], str
|
|
567
506
|
):
|
|
568
507
|
raise InvalidParameterError(
|
|
569
|
-
"Bad parameter:
|
|
508
|
+
"Bad parameter: google_cloud_storage_bucket must be an str"
|
|
570
509
|
)
|
|
571
|
-
if "
|
|
572
|
-
params["
|
|
510
|
+
if "google_cloud_storage_project_id" in params and not isinstance(
|
|
511
|
+
params["google_cloud_storage_project_id"], str
|
|
573
512
|
):
|
|
574
513
|
raise InvalidParameterError(
|
|
575
|
-
"Bad parameter:
|
|
514
|
+
"Bad parameter: google_cloud_storage_project_id must be an str"
|
|
576
515
|
)
|
|
577
|
-
if "
|
|
578
|
-
params["
|
|
516
|
+
if "google_cloud_storage_region" in params and not isinstance(
|
|
517
|
+
params["google_cloud_storage_region"], str
|
|
579
518
|
):
|
|
580
519
|
raise InvalidParameterError(
|
|
581
|
-
"Bad parameter:
|
|
520
|
+
"Bad parameter: google_cloud_storage_region must be an str"
|
|
582
521
|
)
|
|
583
|
-
if
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
"Bad parameter: cloudflare_access_key must be an str"
|
|
588
|
-
)
|
|
589
|
-
if "cloudflare_secret_key" in params and not isinstance(
|
|
590
|
-
params["cloudflare_secret_key"], str
|
|
591
|
-
):
|
|
592
|
-
raise InvalidParameterError(
|
|
593
|
-
"Bad parameter: cloudflare_secret_key must be an str"
|
|
522
|
+
if (
|
|
523
|
+
"google_cloud_storage_s3_compatible_access_key" in params
|
|
524
|
+
and not isinstance(
|
|
525
|
+
params["google_cloud_storage_s3_compatible_access_key"], str
|
|
594
526
|
)
|
|
595
|
-
if "cloudflare_bucket" in params and not isinstance(
|
|
596
|
-
params["cloudflare_bucket"], str
|
|
597
527
|
):
|
|
598
528
|
raise InvalidParameterError(
|
|
599
|
-
"Bad parameter:
|
|
529
|
+
"Bad parameter: google_cloud_storage_s3_compatible_access_key must be an str"
|
|
600
530
|
)
|
|
601
|
-
if "
|
|
602
|
-
params["cloudflare_endpoint"], str
|
|
603
|
-
):
|
|
531
|
+
if "hostname" in params and not isinstance(params["hostname"], str):
|
|
604
532
|
raise InvalidParameterError(
|
|
605
|
-
"Bad parameter:
|
|
533
|
+
"Bad parameter: hostname must be an str"
|
|
606
534
|
)
|
|
607
535
|
if "linode_access_key" in params and not isinstance(
|
|
608
536
|
params["linode_access_key"], str
|
|
@@ -610,12 +538,6 @@ class RemoteServer:
|
|
|
610
538
|
raise InvalidParameterError(
|
|
611
539
|
"Bad parameter: linode_access_key must be an str"
|
|
612
540
|
)
|
|
613
|
-
if "linode_secret_key" in params and not isinstance(
|
|
614
|
-
params["linode_secret_key"], str
|
|
615
|
-
):
|
|
616
|
-
raise InvalidParameterError(
|
|
617
|
-
"Bad parameter: linode_secret_key must be an str"
|
|
618
|
-
)
|
|
619
541
|
if "linode_bucket" in params and not isinstance(
|
|
620
542
|
params["linode_bucket"], str
|
|
621
543
|
):
|
|
@@ -628,6 +550,114 @@ class RemoteServer:
|
|
|
628
550
|
raise InvalidParameterError(
|
|
629
551
|
"Bad parameter: linode_region must be an str"
|
|
630
552
|
)
|
|
553
|
+
if "max_connections" in params and not isinstance(
|
|
554
|
+
params["max_connections"], int
|
|
555
|
+
):
|
|
556
|
+
raise InvalidParameterError(
|
|
557
|
+
"Bad parameter: max_connections must be an int"
|
|
558
|
+
)
|
|
559
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
560
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
561
|
+
if "one_drive_account_type" in params and not isinstance(
|
|
562
|
+
params["one_drive_account_type"], str
|
|
563
|
+
):
|
|
564
|
+
raise InvalidParameterError(
|
|
565
|
+
"Bad parameter: one_drive_account_type must be an str"
|
|
566
|
+
)
|
|
567
|
+
if "port" in params and not isinstance(params["port"], int):
|
|
568
|
+
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
569
|
+
if "rackspace_container" in params and not isinstance(
|
|
570
|
+
params["rackspace_container"], str
|
|
571
|
+
):
|
|
572
|
+
raise InvalidParameterError(
|
|
573
|
+
"Bad parameter: rackspace_container must be an str"
|
|
574
|
+
)
|
|
575
|
+
if "rackspace_region" in params and not isinstance(
|
|
576
|
+
params["rackspace_region"], str
|
|
577
|
+
):
|
|
578
|
+
raise InvalidParameterError(
|
|
579
|
+
"Bad parameter: rackspace_region must be an str"
|
|
580
|
+
)
|
|
581
|
+
if "rackspace_username" in params and not isinstance(
|
|
582
|
+
params["rackspace_username"], str
|
|
583
|
+
):
|
|
584
|
+
raise InvalidParameterError(
|
|
585
|
+
"Bad parameter: rackspace_username must be an str"
|
|
586
|
+
)
|
|
587
|
+
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
588
|
+
raise InvalidParameterError(
|
|
589
|
+
"Bad parameter: s3_bucket must be an str"
|
|
590
|
+
)
|
|
591
|
+
if "s3_compatible_access_key" in params and not isinstance(
|
|
592
|
+
params["s3_compatible_access_key"], str
|
|
593
|
+
):
|
|
594
|
+
raise InvalidParameterError(
|
|
595
|
+
"Bad parameter: s3_compatible_access_key must be an str"
|
|
596
|
+
)
|
|
597
|
+
if "s3_compatible_bucket" in params and not isinstance(
|
|
598
|
+
params["s3_compatible_bucket"], str
|
|
599
|
+
):
|
|
600
|
+
raise InvalidParameterError(
|
|
601
|
+
"Bad parameter: s3_compatible_bucket must be an str"
|
|
602
|
+
)
|
|
603
|
+
if "s3_compatible_endpoint" in params and not isinstance(
|
|
604
|
+
params["s3_compatible_endpoint"], str
|
|
605
|
+
):
|
|
606
|
+
raise InvalidParameterError(
|
|
607
|
+
"Bad parameter: s3_compatible_endpoint must be an str"
|
|
608
|
+
)
|
|
609
|
+
if "s3_compatible_region" in params and not isinstance(
|
|
610
|
+
params["s3_compatible_region"], str
|
|
611
|
+
):
|
|
612
|
+
raise InvalidParameterError(
|
|
613
|
+
"Bad parameter: s3_compatible_region must be an str"
|
|
614
|
+
)
|
|
615
|
+
if "s3_region" in params and not isinstance(params["s3_region"], str):
|
|
616
|
+
raise InvalidParameterError(
|
|
617
|
+
"Bad parameter: s3_region must be an str"
|
|
618
|
+
)
|
|
619
|
+
if "server_certificate" in params and not isinstance(
|
|
620
|
+
params["server_certificate"], str
|
|
621
|
+
):
|
|
622
|
+
raise InvalidParameterError(
|
|
623
|
+
"Bad parameter: server_certificate must be an str"
|
|
624
|
+
)
|
|
625
|
+
if "server_host_key" in params and not isinstance(
|
|
626
|
+
params["server_host_key"], str
|
|
627
|
+
):
|
|
628
|
+
raise InvalidParameterError(
|
|
629
|
+
"Bad parameter: server_host_key must be an str"
|
|
630
|
+
)
|
|
631
|
+
if "server_type" in params and not isinstance(
|
|
632
|
+
params["server_type"], str
|
|
633
|
+
):
|
|
634
|
+
raise InvalidParameterError(
|
|
635
|
+
"Bad parameter: server_type must be an str"
|
|
636
|
+
)
|
|
637
|
+
if "ssl" in params and not isinstance(params["ssl"], str):
|
|
638
|
+
raise InvalidParameterError("Bad parameter: ssl must be an str")
|
|
639
|
+
if "username" in params and not isinstance(params["username"], str):
|
|
640
|
+
raise InvalidParameterError(
|
|
641
|
+
"Bad parameter: username must be an str"
|
|
642
|
+
)
|
|
643
|
+
if "wasabi_access_key" in params and not isinstance(
|
|
644
|
+
params["wasabi_access_key"], str
|
|
645
|
+
):
|
|
646
|
+
raise InvalidParameterError(
|
|
647
|
+
"Bad parameter: wasabi_access_key must be an str"
|
|
648
|
+
)
|
|
649
|
+
if "wasabi_bucket" in params and not isinstance(
|
|
650
|
+
params["wasabi_bucket"], str
|
|
651
|
+
):
|
|
652
|
+
raise InvalidParameterError(
|
|
653
|
+
"Bad parameter: wasabi_bucket must be an str"
|
|
654
|
+
)
|
|
655
|
+
if "wasabi_region" in params and not isinstance(
|
|
656
|
+
params["wasabi_region"], str
|
|
657
|
+
):
|
|
658
|
+
raise InvalidParameterError(
|
|
659
|
+
"Bad parameter: wasabi_region must be an str"
|
|
660
|
+
)
|
|
631
661
|
response, _options = Api.send_request(
|
|
632
662
|
"PATCH",
|
|
633
663
|
"/remote_servers/{id}".format(id=params["id"]),
|
|
@@ -745,90 +775,81 @@ def find_configuration_file(id, params=None, options=None):
|
|
|
745
775
|
|
|
746
776
|
|
|
747
777
|
# Parameters:
|
|
748
|
-
#
|
|
749
|
-
#
|
|
750
|
-
# password - string - Password if needed.
|
|
751
|
-
# private_key - string - Private key if needed.
|
|
778
|
+
# password - string - Password, if needed.
|
|
779
|
+
# private_key - string - Private key, if needed.
|
|
752
780
|
# private_key_passphrase - string - Passphrase for private key if needed.
|
|
781
|
+
# reset_authentication - boolean - Reset authenticated account?
|
|
753
782
|
# ssl_certificate - string - SSL client certificate.
|
|
754
|
-
#
|
|
755
|
-
#
|
|
756
|
-
#
|
|
757
|
-
#
|
|
758
|
-
#
|
|
759
|
-
#
|
|
760
|
-
#
|
|
761
|
-
#
|
|
762
|
-
#
|
|
783
|
+
# aws_secret_key - string - AWS: secret key.
|
|
784
|
+
# azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
|
|
785
|
+
# azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
|
|
786
|
+
# azure_files_storage_access_key - string - Azure File Storage: Access Key
|
|
787
|
+
# azure_files_storage_sas_token - string - Azure File Storage: Shared Access Signature (SAS) token
|
|
788
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
|
|
789
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
|
|
790
|
+
# cloudflare_secret_key - string - Cloudflare: Secret Key
|
|
791
|
+
# filebase_secret_key - string - Filebase: Secret Key
|
|
792
|
+
# google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
793
|
+
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
794
|
+
# linode_secret_key - string - Linode: Secret Key
|
|
795
|
+
# rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
796
|
+
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
797
|
+
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
798
|
+
# aws_access_key - string - AWS Access Key.
|
|
799
|
+
# azure_blob_storage_account - string - Azure Blob Storage: Account name
|
|
800
|
+
# azure_blob_storage_container - string - Azure Blob Storage: Container name
|
|
801
|
+
# azure_blob_storage_dns_suffix - string - Azure Blob Storage: Custom DNS suffix
|
|
802
|
+
# azure_blob_storage_hierarchical_namespace - boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
|
|
803
|
+
# azure_files_storage_account - string - Azure Files: Storage Account name
|
|
804
|
+
# azure_files_storage_dns_suffix - string - Azure Files: Custom DNS suffix
|
|
805
|
+
# azure_files_storage_share_name - string - Azure Files: Storage Share name
|
|
806
|
+
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
|
|
807
|
+
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
808
|
+
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
809
|
+
# cloudflare_bucket - string - Cloudflare: Bucket name
|
|
810
|
+
# cloudflare_endpoint - string - Cloudflare: endpoint
|
|
811
|
+
# dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
|
|
812
|
+
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
813
|
+
# filebase_access_key - string - Filebase: Access Key.
|
|
814
|
+
# filebase_bucket - string - Filebase: Bucket name
|
|
815
|
+
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
816
|
+
# files_agent_root - string - Agent local root path
|
|
817
|
+
# files_agent_version - string - Files Agent version
|
|
818
|
+
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
819
|
+
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
820
|
+
# google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
821
|
+
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
763
822
|
# hostname - string - Hostname or IP address
|
|
764
|
-
#
|
|
823
|
+
# linode_access_key - string - Linode: Access Key
|
|
824
|
+
# linode_bucket - string - Linode: Bucket name
|
|
825
|
+
# linode_region - string - Linode: region
|
|
765
826
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
827
|
+
# name - string - Internal name for your reference
|
|
828
|
+
# one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
766
829
|
# pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
|
|
767
830
|
# port - int64 - Port for remote server. Not needed for S3.
|
|
831
|
+
# rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
832
|
+
# rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
833
|
+
# rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
768
834
|
# s3_bucket - string - S3 bucket name
|
|
835
|
+
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
836
|
+
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
837
|
+
# s3_compatible_endpoint - string - S3-compatible: endpoint
|
|
838
|
+
# s3_compatible_region - string - S3-compatible: region
|
|
769
839
|
# s3_region - string - S3 region
|
|
770
840
|
# server_certificate - string - Remote server certificate
|
|
771
841
|
# 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
|
|
772
842
|
# server_type - string - Remote server type.
|
|
773
843
|
# ssl - string - Should we require SSL?
|
|
774
844
|
# username - string - Remote server username. Not needed for S3 buckets.
|
|
775
|
-
#
|
|
776
|
-
#
|
|
777
|
-
#
|
|
778
|
-
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
|
779
|
-
# wasabi_bucket - string - Wasabi Bucket name
|
|
780
|
-
# wasabi_region - string - Wasabi region
|
|
781
|
-
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
782
|
-
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
783
|
-
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
|
784
|
-
# one_drive_account_type - string - Either personal or business_other account types
|
|
785
|
-
# azure_blob_storage_account - string - Azure Blob Storage Account name
|
|
786
|
-
# azure_blob_storage_container - string - Azure Blob Storage Container name
|
|
787
|
-
# azure_blob_storage_hierarchical_namespace - boolean - Enable when storage account has hierarchical namespace feature enabled
|
|
788
|
-
# azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
|
789
|
-
# azure_blob_storage_dns_suffix - string - Custom DNS suffix
|
|
790
|
-
# azure_files_storage_account - string - Azure File Storage Account name
|
|
791
|
-
# azure_files_storage_share_name - string - Azure File Storage Share name
|
|
792
|
-
# azure_files_storage_dns_suffix - string - Custom DNS suffix
|
|
793
|
-
# azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
|
794
|
-
# s3_compatible_bucket - string - S3-compatible Bucket name
|
|
795
|
-
# s3_compatible_endpoint - string - S3-compatible endpoint
|
|
796
|
-
# s3_compatible_region - string - S3-compatible endpoint
|
|
797
|
-
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
798
|
-
# s3_compatible_access_key - string - S3-compatible Access Key.
|
|
799
|
-
# s3_compatible_secret_key - string - S3-compatible secret key
|
|
800
|
-
# files_agent_root - string - Agent local root path
|
|
801
|
-
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
802
|
-
# files_agent_version - string - Files Agent version
|
|
803
|
-
# filebase_access_key - string - Filebase Access Key.
|
|
804
|
-
# filebase_secret_key - string - Filebase secret key
|
|
805
|
-
# filebase_bucket - string - Filebase Bucket name
|
|
806
|
-
# cloudflare_access_key - string - Cloudflare Access Key.
|
|
807
|
-
# cloudflare_secret_key - string - Cloudflare secret key
|
|
808
|
-
# cloudflare_bucket - string - Cloudflare Bucket name
|
|
809
|
-
# cloudflare_endpoint - string - Cloudflare endpoint
|
|
810
|
-
# dropbox_teams - boolean - List Team folders in root
|
|
811
|
-
# linode_access_key - string - Linode Access Key.
|
|
812
|
-
# linode_secret_key - string - Linode secret key
|
|
813
|
-
# linode_bucket - string - Linode Bucket name
|
|
814
|
-
# linode_region - string - Linode region
|
|
845
|
+
# wasabi_access_key - string - Wasabi: Access Key.
|
|
846
|
+
# wasabi_bucket - string - Wasabi: Bucket name
|
|
847
|
+
# wasabi_region - string - Wasabi: Region
|
|
815
848
|
def create(params=None, options=None):
|
|
816
849
|
if not isinstance(params, dict):
|
|
817
850
|
params = {}
|
|
818
851
|
if not isinstance(options, dict):
|
|
819
852
|
options = {}
|
|
820
|
-
if "aws_access_key" in params and not isinstance(
|
|
821
|
-
params["aws_access_key"], str
|
|
822
|
-
):
|
|
823
|
-
raise InvalidParameterError(
|
|
824
|
-
"Bad parameter: aws_access_key must be an str"
|
|
825
|
-
)
|
|
826
|
-
if "aws_secret_key" in params and not isinstance(
|
|
827
|
-
params["aws_secret_key"], str
|
|
828
|
-
):
|
|
829
|
-
raise InvalidParameterError(
|
|
830
|
-
"Bad parameter: aws_secret_key must be an str"
|
|
831
|
-
)
|
|
832
853
|
if "password" in params and not isinstance(params["password"], str):
|
|
833
854
|
raise InvalidParameterError("Bad parameter: password must be an str")
|
|
834
855
|
if "private_key" in params and not isinstance(params["private_key"], str):
|
|
@@ -847,29 +868,35 @@ def create(params=None, options=None):
|
|
|
847
868
|
raise InvalidParameterError(
|
|
848
869
|
"Bad parameter: ssl_certificate must be an str"
|
|
849
870
|
)
|
|
850
|
-
if "
|
|
851
|
-
params["
|
|
871
|
+
if "aws_secret_key" in params and not isinstance(
|
|
872
|
+
params["aws_secret_key"], str
|
|
852
873
|
):
|
|
853
874
|
raise InvalidParameterError(
|
|
854
|
-
"Bad parameter:
|
|
875
|
+
"Bad parameter: aws_secret_key must be an str"
|
|
855
876
|
)
|
|
856
|
-
if "
|
|
857
|
-
params["
|
|
877
|
+
if "azure_blob_storage_access_key" in params and not isinstance(
|
|
878
|
+
params["azure_blob_storage_access_key"], str
|
|
858
879
|
):
|
|
859
880
|
raise InvalidParameterError(
|
|
860
|
-
"Bad parameter:
|
|
881
|
+
"Bad parameter: azure_blob_storage_access_key must be an str"
|
|
861
882
|
)
|
|
862
|
-
if "
|
|
863
|
-
params["
|
|
883
|
+
if "azure_blob_storage_sas_token" in params and not isinstance(
|
|
884
|
+
params["azure_blob_storage_sas_token"], str
|
|
864
885
|
):
|
|
865
886
|
raise InvalidParameterError(
|
|
866
|
-
"Bad parameter:
|
|
887
|
+
"Bad parameter: azure_blob_storage_sas_token must be an str"
|
|
867
888
|
)
|
|
868
|
-
if "
|
|
869
|
-
params["
|
|
889
|
+
if "azure_files_storage_access_key" in params and not isinstance(
|
|
890
|
+
params["azure_files_storage_access_key"], str
|
|
870
891
|
):
|
|
871
892
|
raise InvalidParameterError(
|
|
872
|
-
"Bad parameter:
|
|
893
|
+
"Bad parameter: azure_files_storage_access_key must be an str"
|
|
894
|
+
)
|
|
895
|
+
if "azure_files_storage_sas_token" in params and not isinstance(
|
|
896
|
+
params["azure_files_storage_sas_token"], str
|
|
897
|
+
):
|
|
898
|
+
raise InvalidParameterError(
|
|
899
|
+
"Bad parameter: azure_files_storage_sas_token must be an str"
|
|
873
900
|
)
|
|
874
901
|
if "backblaze_b2_application_key" in params and not isinstance(
|
|
875
902
|
params["backblaze_b2_application_key"], str
|
|
@@ -877,281 +904,311 @@ def create(params=None, options=None):
|
|
|
877
904
|
raise InvalidParameterError(
|
|
878
905
|
"Bad parameter: backblaze_b2_application_key must be an str"
|
|
879
906
|
)
|
|
880
|
-
if "
|
|
881
|
-
params["
|
|
907
|
+
if "backblaze_b2_key_id" in params and not isinstance(
|
|
908
|
+
params["backblaze_b2_key_id"], str
|
|
882
909
|
):
|
|
883
910
|
raise InvalidParameterError(
|
|
884
|
-
"Bad parameter:
|
|
911
|
+
"Bad parameter: backblaze_b2_key_id must be an str"
|
|
885
912
|
)
|
|
886
|
-
if "
|
|
887
|
-
params["
|
|
913
|
+
if "cloudflare_secret_key" in params and not isinstance(
|
|
914
|
+
params["cloudflare_secret_key"], str
|
|
888
915
|
):
|
|
889
916
|
raise InvalidParameterError(
|
|
890
|
-
"Bad parameter:
|
|
917
|
+
"Bad parameter: cloudflare_secret_key must be an str"
|
|
891
918
|
)
|
|
892
|
-
if "
|
|
893
|
-
params["
|
|
919
|
+
if "filebase_secret_key" in params and not isinstance(
|
|
920
|
+
params["filebase_secret_key"], str
|
|
894
921
|
):
|
|
895
922
|
raise InvalidParameterError(
|
|
896
|
-
"Bad parameter:
|
|
923
|
+
"Bad parameter: filebase_secret_key must be an str"
|
|
897
924
|
)
|
|
898
|
-
if "
|
|
899
|
-
|
|
900
|
-
if "name" in params and not isinstance(params["name"], str):
|
|
901
|
-
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
902
|
-
if "max_connections" in params and not isinstance(
|
|
903
|
-
params["max_connections"], int
|
|
925
|
+
if "google_cloud_storage_credentials_json" in params and not isinstance(
|
|
926
|
+
params["google_cloud_storage_credentials_json"], str
|
|
904
927
|
):
|
|
905
928
|
raise InvalidParameterError(
|
|
906
|
-
"Bad parameter:
|
|
929
|
+
"Bad parameter: google_cloud_storage_credentials_json must be an str"
|
|
930
|
+
)
|
|
931
|
+
if (
|
|
932
|
+
"google_cloud_storage_s3_compatible_secret_key" in params
|
|
933
|
+
and not isinstance(
|
|
934
|
+
params["google_cloud_storage_s3_compatible_secret_key"], str
|
|
907
935
|
)
|
|
908
|
-
if "port" in params and not isinstance(params["port"], int):
|
|
909
|
-
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
910
|
-
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
911
|
-
raise InvalidParameterError("Bad parameter: s3_bucket must be an str")
|
|
912
|
-
if "s3_region" in params and not isinstance(params["s3_region"], str):
|
|
913
|
-
raise InvalidParameterError("Bad parameter: s3_region must be an str")
|
|
914
|
-
if "server_certificate" in params and not isinstance(
|
|
915
|
-
params["server_certificate"], str
|
|
916
936
|
):
|
|
917
937
|
raise InvalidParameterError(
|
|
918
|
-
"Bad parameter:
|
|
938
|
+
"Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an str"
|
|
919
939
|
)
|
|
920
|
-
if "
|
|
921
|
-
params["
|
|
940
|
+
if "linode_secret_key" in params and not isinstance(
|
|
941
|
+
params["linode_secret_key"], str
|
|
922
942
|
):
|
|
923
943
|
raise InvalidParameterError(
|
|
924
|
-
"Bad parameter:
|
|
944
|
+
"Bad parameter: linode_secret_key must be an str"
|
|
925
945
|
)
|
|
926
|
-
if "
|
|
946
|
+
if "rackspace_api_key" in params and not isinstance(
|
|
947
|
+
params["rackspace_api_key"], str
|
|
948
|
+
):
|
|
927
949
|
raise InvalidParameterError(
|
|
928
|
-
"Bad parameter:
|
|
950
|
+
"Bad parameter: rackspace_api_key must be an str"
|
|
929
951
|
)
|
|
930
|
-
if "
|
|
931
|
-
|
|
932
|
-
if "username" in params and not isinstance(params["username"], str):
|
|
933
|
-
raise InvalidParameterError("Bad parameter: username must be an str")
|
|
934
|
-
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
935
|
-
params["google_cloud_storage_bucket"], str
|
|
952
|
+
if "s3_compatible_secret_key" in params and not isinstance(
|
|
953
|
+
params["s3_compatible_secret_key"], str
|
|
936
954
|
):
|
|
937
955
|
raise InvalidParameterError(
|
|
938
|
-
"Bad parameter:
|
|
956
|
+
"Bad parameter: s3_compatible_secret_key must be an str"
|
|
939
957
|
)
|
|
940
|
-
if "
|
|
941
|
-
params["
|
|
958
|
+
if "wasabi_secret_key" in params and not isinstance(
|
|
959
|
+
params["wasabi_secret_key"], str
|
|
942
960
|
):
|
|
943
961
|
raise InvalidParameterError(
|
|
944
|
-
"Bad parameter:
|
|
962
|
+
"Bad parameter: wasabi_secret_key must be an str"
|
|
945
963
|
)
|
|
946
|
-
if "
|
|
947
|
-
params["
|
|
964
|
+
if "aws_access_key" in params and not isinstance(
|
|
965
|
+
params["aws_access_key"], str
|
|
948
966
|
):
|
|
949
967
|
raise InvalidParameterError(
|
|
950
|
-
"Bad parameter:
|
|
968
|
+
"Bad parameter: aws_access_key must be an str"
|
|
951
969
|
)
|
|
952
|
-
if "
|
|
953
|
-
params["
|
|
970
|
+
if "azure_blob_storage_account" in params and not isinstance(
|
|
971
|
+
params["azure_blob_storage_account"], str
|
|
954
972
|
):
|
|
955
973
|
raise InvalidParameterError(
|
|
956
|
-
"Bad parameter:
|
|
974
|
+
"Bad parameter: azure_blob_storage_account must be an str"
|
|
957
975
|
)
|
|
958
|
-
if "
|
|
959
|
-
params["
|
|
976
|
+
if "azure_blob_storage_container" in params and not isinstance(
|
|
977
|
+
params["azure_blob_storage_container"], str
|
|
960
978
|
):
|
|
961
979
|
raise InvalidParameterError(
|
|
962
|
-
"Bad parameter:
|
|
980
|
+
"Bad parameter: azure_blob_storage_container must be an str"
|
|
963
981
|
)
|
|
964
|
-
if "
|
|
965
|
-
params["
|
|
982
|
+
if "azure_blob_storage_dns_suffix" in params and not isinstance(
|
|
983
|
+
params["azure_blob_storage_dns_suffix"], str
|
|
966
984
|
):
|
|
967
985
|
raise InvalidParameterError(
|
|
968
|
-
"Bad parameter:
|
|
986
|
+
"Bad parameter: azure_blob_storage_dns_suffix must be an str"
|
|
969
987
|
)
|
|
970
|
-
if "
|
|
971
|
-
params["
|
|
988
|
+
if "azure_files_storage_account" in params and not isinstance(
|
|
989
|
+
params["azure_files_storage_account"], str
|
|
972
990
|
):
|
|
973
991
|
raise InvalidParameterError(
|
|
974
|
-
"Bad parameter:
|
|
992
|
+
"Bad parameter: azure_files_storage_account must be an str"
|
|
975
993
|
)
|
|
976
|
-
if "
|
|
977
|
-
params["
|
|
994
|
+
if "azure_files_storage_dns_suffix" in params and not isinstance(
|
|
995
|
+
params["azure_files_storage_dns_suffix"], str
|
|
978
996
|
):
|
|
979
997
|
raise InvalidParameterError(
|
|
980
|
-
"Bad parameter:
|
|
998
|
+
"Bad parameter: azure_files_storage_dns_suffix must be an str"
|
|
981
999
|
)
|
|
982
|
-
if "
|
|
983
|
-
params["
|
|
1000
|
+
if "azure_files_storage_share_name" in params and not isinstance(
|
|
1001
|
+
params["azure_files_storage_share_name"], str
|
|
984
1002
|
):
|
|
985
1003
|
raise InvalidParameterError(
|
|
986
|
-
"Bad parameter:
|
|
1004
|
+
"Bad parameter: azure_files_storage_share_name must be an str"
|
|
987
1005
|
)
|
|
988
|
-
if "
|
|
989
|
-
params["
|
|
1006
|
+
if "backblaze_b2_bucket" in params and not isinstance(
|
|
1007
|
+
params["backblaze_b2_bucket"], str
|
|
990
1008
|
):
|
|
991
1009
|
raise InvalidParameterError(
|
|
992
|
-
"Bad parameter:
|
|
1010
|
+
"Bad parameter: backblaze_b2_bucket must be an str"
|
|
993
1011
|
)
|
|
994
|
-
if "
|
|
995
|
-
params["
|
|
1012
|
+
if "backblaze_b2_s3_endpoint" in params and not isinstance(
|
|
1013
|
+
params["backblaze_b2_s3_endpoint"], str
|
|
996
1014
|
):
|
|
997
1015
|
raise InvalidParameterError(
|
|
998
|
-
"Bad parameter:
|
|
1016
|
+
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
999
1017
|
)
|
|
1000
|
-
if "
|
|
1001
|
-
params["
|
|
1018
|
+
if "cloudflare_access_key" in params and not isinstance(
|
|
1019
|
+
params["cloudflare_access_key"], str
|
|
1002
1020
|
):
|
|
1003
1021
|
raise InvalidParameterError(
|
|
1004
|
-
"Bad parameter:
|
|
1022
|
+
"Bad parameter: cloudflare_access_key must be an str"
|
|
1005
1023
|
)
|
|
1006
|
-
if "
|
|
1007
|
-
params["
|
|
1024
|
+
if "cloudflare_bucket" in params and not isinstance(
|
|
1025
|
+
params["cloudflare_bucket"], str
|
|
1008
1026
|
):
|
|
1009
1027
|
raise InvalidParameterError(
|
|
1010
|
-
"Bad parameter:
|
|
1028
|
+
"Bad parameter: cloudflare_bucket must be an str"
|
|
1011
1029
|
)
|
|
1012
|
-
if "
|
|
1013
|
-
params["
|
|
1030
|
+
if "cloudflare_endpoint" in params and not isinstance(
|
|
1031
|
+
params["cloudflare_endpoint"], str
|
|
1014
1032
|
):
|
|
1015
1033
|
raise InvalidParameterError(
|
|
1016
|
-
"Bad parameter:
|
|
1034
|
+
"Bad parameter: cloudflare_endpoint must be an str"
|
|
1017
1035
|
)
|
|
1018
|
-
if "
|
|
1019
|
-
params["
|
|
1036
|
+
if "filebase_access_key" in params and not isinstance(
|
|
1037
|
+
params["filebase_access_key"], str
|
|
1020
1038
|
):
|
|
1021
1039
|
raise InvalidParameterError(
|
|
1022
|
-
"Bad parameter:
|
|
1040
|
+
"Bad parameter: filebase_access_key must be an str"
|
|
1023
1041
|
)
|
|
1024
|
-
if "
|
|
1025
|
-
params["
|
|
1042
|
+
if "filebase_bucket" in params and not isinstance(
|
|
1043
|
+
params["filebase_bucket"], str
|
|
1026
1044
|
):
|
|
1027
1045
|
raise InvalidParameterError(
|
|
1028
|
-
"Bad parameter:
|
|
1046
|
+
"Bad parameter: filebase_bucket must be an str"
|
|
1029
1047
|
)
|
|
1030
|
-
if "
|
|
1031
|
-
params["
|
|
1048
|
+
if "files_agent_permission_set" in params and not isinstance(
|
|
1049
|
+
params["files_agent_permission_set"], str
|
|
1032
1050
|
):
|
|
1033
1051
|
raise InvalidParameterError(
|
|
1034
|
-
"Bad parameter:
|
|
1052
|
+
"Bad parameter: files_agent_permission_set must be an str"
|
|
1035
1053
|
)
|
|
1036
|
-
if "
|
|
1037
|
-
params["
|
|
1054
|
+
if "files_agent_root" in params and not isinstance(
|
|
1055
|
+
params["files_agent_root"], str
|
|
1038
1056
|
):
|
|
1039
1057
|
raise InvalidParameterError(
|
|
1040
|
-
"Bad parameter:
|
|
1058
|
+
"Bad parameter: files_agent_root must be an str"
|
|
1041
1059
|
)
|
|
1042
|
-
if "
|
|
1043
|
-
params["
|
|
1060
|
+
if "files_agent_version" in params and not isinstance(
|
|
1061
|
+
params["files_agent_version"], str
|
|
1044
1062
|
):
|
|
1045
1063
|
raise InvalidParameterError(
|
|
1046
|
-
"Bad parameter:
|
|
1064
|
+
"Bad parameter: files_agent_version must be an str"
|
|
1047
1065
|
)
|
|
1048
|
-
if "
|
|
1049
|
-
params["
|
|
1066
|
+
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
1067
|
+
params["google_cloud_storage_bucket"], str
|
|
1050
1068
|
):
|
|
1051
1069
|
raise InvalidParameterError(
|
|
1052
|
-
"Bad parameter:
|
|
1070
|
+
"Bad parameter: google_cloud_storage_bucket must be an str"
|
|
1053
1071
|
)
|
|
1054
|
-
if "
|
|
1055
|
-
params["
|
|
1072
|
+
if "google_cloud_storage_project_id" in params and not isinstance(
|
|
1073
|
+
params["google_cloud_storage_project_id"], str
|
|
1056
1074
|
):
|
|
1057
1075
|
raise InvalidParameterError(
|
|
1058
|
-
"Bad parameter:
|
|
1076
|
+
"Bad parameter: google_cloud_storage_project_id must be an str"
|
|
1059
1077
|
)
|
|
1060
|
-
if "
|
|
1061
|
-
params["
|
|
1078
|
+
if "google_cloud_storage_region" in params and not isinstance(
|
|
1079
|
+
params["google_cloud_storage_region"], str
|
|
1062
1080
|
):
|
|
1063
1081
|
raise InvalidParameterError(
|
|
1064
|
-
"Bad parameter:
|
|
1082
|
+
"Bad parameter: google_cloud_storage_region must be an str"
|
|
1083
|
+
)
|
|
1084
|
+
if (
|
|
1085
|
+
"google_cloud_storage_s3_compatible_access_key" in params
|
|
1086
|
+
and not isinstance(
|
|
1087
|
+
params["google_cloud_storage_s3_compatible_access_key"], str
|
|
1065
1088
|
)
|
|
1066
|
-
if "s3_compatible_secret_key" in params and not isinstance(
|
|
1067
|
-
params["s3_compatible_secret_key"], str
|
|
1068
1089
|
):
|
|
1069
1090
|
raise InvalidParameterError(
|
|
1070
|
-
"Bad parameter:
|
|
1091
|
+
"Bad parameter: google_cloud_storage_s3_compatible_access_key must be an str"
|
|
1071
1092
|
)
|
|
1072
|
-
if "
|
|
1073
|
-
|
|
1093
|
+
if "hostname" in params and not isinstance(params["hostname"], str):
|
|
1094
|
+
raise InvalidParameterError("Bad parameter: hostname must be an str")
|
|
1095
|
+
if "linode_access_key" in params and not isinstance(
|
|
1096
|
+
params["linode_access_key"], str
|
|
1074
1097
|
):
|
|
1075
1098
|
raise InvalidParameterError(
|
|
1076
|
-
"Bad parameter:
|
|
1099
|
+
"Bad parameter: linode_access_key must be an str"
|
|
1077
1100
|
)
|
|
1078
|
-
if "
|
|
1079
|
-
params["
|
|
1101
|
+
if "linode_bucket" in params and not isinstance(
|
|
1102
|
+
params["linode_bucket"], str
|
|
1080
1103
|
):
|
|
1081
1104
|
raise InvalidParameterError(
|
|
1082
|
-
"Bad parameter:
|
|
1105
|
+
"Bad parameter: linode_bucket must be an str"
|
|
1083
1106
|
)
|
|
1084
|
-
if "
|
|
1085
|
-
params["
|
|
1107
|
+
if "linode_region" in params and not isinstance(
|
|
1108
|
+
params["linode_region"], str
|
|
1086
1109
|
):
|
|
1087
1110
|
raise InvalidParameterError(
|
|
1088
|
-
"Bad parameter:
|
|
1111
|
+
"Bad parameter: linode_region must be an str"
|
|
1089
1112
|
)
|
|
1090
|
-
if "
|
|
1091
|
-
params["
|
|
1113
|
+
if "max_connections" in params and not isinstance(
|
|
1114
|
+
params["max_connections"], int
|
|
1092
1115
|
):
|
|
1093
1116
|
raise InvalidParameterError(
|
|
1094
|
-
"Bad parameter:
|
|
1117
|
+
"Bad parameter: max_connections must be an int"
|
|
1095
1118
|
)
|
|
1096
|
-
if "
|
|
1097
|
-
|
|
1119
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
1120
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
1121
|
+
if "one_drive_account_type" in params and not isinstance(
|
|
1122
|
+
params["one_drive_account_type"], str
|
|
1098
1123
|
):
|
|
1099
1124
|
raise InvalidParameterError(
|
|
1100
|
-
"Bad parameter:
|
|
1125
|
+
"Bad parameter: one_drive_account_type must be an str"
|
|
1101
1126
|
)
|
|
1102
|
-
if "
|
|
1103
|
-
|
|
1127
|
+
if "port" in params and not isinstance(params["port"], int):
|
|
1128
|
+
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
1129
|
+
if "rackspace_container" in params and not isinstance(
|
|
1130
|
+
params["rackspace_container"], str
|
|
1104
1131
|
):
|
|
1105
1132
|
raise InvalidParameterError(
|
|
1106
|
-
"Bad parameter:
|
|
1133
|
+
"Bad parameter: rackspace_container must be an str"
|
|
1107
1134
|
)
|
|
1108
|
-
if "
|
|
1109
|
-
params["
|
|
1135
|
+
if "rackspace_region" in params and not isinstance(
|
|
1136
|
+
params["rackspace_region"], str
|
|
1110
1137
|
):
|
|
1111
1138
|
raise InvalidParameterError(
|
|
1112
|
-
"Bad parameter:
|
|
1139
|
+
"Bad parameter: rackspace_region must be an str"
|
|
1113
1140
|
)
|
|
1114
|
-
if "
|
|
1115
|
-
params["
|
|
1141
|
+
if "rackspace_username" in params and not isinstance(
|
|
1142
|
+
params["rackspace_username"], str
|
|
1116
1143
|
):
|
|
1117
1144
|
raise InvalidParameterError(
|
|
1118
|
-
"Bad parameter:
|
|
1145
|
+
"Bad parameter: rackspace_username must be an str"
|
|
1119
1146
|
)
|
|
1120
|
-
if "
|
|
1121
|
-
|
|
1147
|
+
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
1148
|
+
raise InvalidParameterError("Bad parameter: s3_bucket must be an str")
|
|
1149
|
+
if "s3_compatible_access_key" in params and not isinstance(
|
|
1150
|
+
params["s3_compatible_access_key"], str
|
|
1122
1151
|
):
|
|
1123
1152
|
raise InvalidParameterError(
|
|
1124
|
-
"Bad parameter:
|
|
1153
|
+
"Bad parameter: s3_compatible_access_key must be an str"
|
|
1125
1154
|
)
|
|
1126
|
-
if "
|
|
1127
|
-
params["
|
|
1155
|
+
if "s3_compatible_bucket" in params and not isinstance(
|
|
1156
|
+
params["s3_compatible_bucket"], str
|
|
1128
1157
|
):
|
|
1129
1158
|
raise InvalidParameterError(
|
|
1130
|
-
"Bad parameter:
|
|
1159
|
+
"Bad parameter: s3_compatible_bucket must be an str"
|
|
1131
1160
|
)
|
|
1132
|
-
if "
|
|
1133
|
-
params["
|
|
1161
|
+
if "s3_compatible_endpoint" in params and not isinstance(
|
|
1162
|
+
params["s3_compatible_endpoint"], str
|
|
1134
1163
|
):
|
|
1135
1164
|
raise InvalidParameterError(
|
|
1136
|
-
"Bad parameter:
|
|
1165
|
+
"Bad parameter: s3_compatible_endpoint must be an str"
|
|
1137
1166
|
)
|
|
1138
|
-
if "
|
|
1139
|
-
params["
|
|
1167
|
+
if "s3_compatible_region" in params and not isinstance(
|
|
1168
|
+
params["s3_compatible_region"], str
|
|
1140
1169
|
):
|
|
1141
1170
|
raise InvalidParameterError(
|
|
1142
|
-
"Bad parameter:
|
|
1171
|
+
"Bad parameter: s3_compatible_region must be an str"
|
|
1143
1172
|
)
|
|
1144
|
-
if "
|
|
1145
|
-
|
|
1173
|
+
if "s3_region" in params and not isinstance(params["s3_region"], str):
|
|
1174
|
+
raise InvalidParameterError("Bad parameter: s3_region must be an str")
|
|
1175
|
+
if "server_certificate" in params and not isinstance(
|
|
1176
|
+
params["server_certificate"], str
|
|
1146
1177
|
):
|
|
1147
1178
|
raise InvalidParameterError(
|
|
1148
|
-
"Bad parameter:
|
|
1179
|
+
"Bad parameter: server_certificate must be an str"
|
|
1149
1180
|
)
|
|
1150
|
-
if "
|
|
1151
|
-
params["
|
|
1181
|
+
if "server_host_key" in params and not isinstance(
|
|
1182
|
+
params["server_host_key"], str
|
|
1152
1183
|
):
|
|
1153
1184
|
raise InvalidParameterError(
|
|
1154
|
-
"Bad parameter:
|
|
1185
|
+
"Bad parameter: server_host_key must be an str"
|
|
1186
|
+
)
|
|
1187
|
+
if "server_type" in params and not isinstance(params["server_type"], str):
|
|
1188
|
+
raise InvalidParameterError(
|
|
1189
|
+
"Bad parameter: server_type must be an str"
|
|
1190
|
+
)
|
|
1191
|
+
if "ssl" in params and not isinstance(params["ssl"], str):
|
|
1192
|
+
raise InvalidParameterError("Bad parameter: ssl must be an str")
|
|
1193
|
+
if "username" in params and not isinstance(params["username"], str):
|
|
1194
|
+
raise InvalidParameterError("Bad parameter: username must be an str")
|
|
1195
|
+
if "wasabi_access_key" in params and not isinstance(
|
|
1196
|
+
params["wasabi_access_key"], str
|
|
1197
|
+
):
|
|
1198
|
+
raise InvalidParameterError(
|
|
1199
|
+
"Bad parameter: wasabi_access_key must be an str"
|
|
1200
|
+
)
|
|
1201
|
+
if "wasabi_bucket" in params and not isinstance(
|
|
1202
|
+
params["wasabi_bucket"], str
|
|
1203
|
+
):
|
|
1204
|
+
raise InvalidParameterError(
|
|
1205
|
+
"Bad parameter: wasabi_bucket must be an str"
|
|
1206
|
+
)
|
|
1207
|
+
if "wasabi_region" in params and not isinstance(
|
|
1208
|
+
params["wasabi_region"], str
|
|
1209
|
+
):
|
|
1210
|
+
raise InvalidParameterError(
|
|
1211
|
+
"Bad parameter: wasabi_region must be an str"
|
|
1155
1212
|
)
|
|
1156
1213
|
response, options = Api.send_request(
|
|
1157
1214
|
"POST", "/remote_servers", params, options
|
|
@@ -1229,73 +1286,76 @@ def configuration_file(id, params=None, options=None):
|
|
|
1229
1286
|
|
|
1230
1287
|
|
|
1231
1288
|
# Parameters:
|
|
1232
|
-
#
|
|
1233
|
-
#
|
|
1234
|
-
# password - string - Password if needed.
|
|
1235
|
-
# private_key - string - Private key if needed.
|
|
1289
|
+
# password - string - Password, if needed.
|
|
1290
|
+
# private_key - string - Private key, if needed.
|
|
1236
1291
|
# private_key_passphrase - string - Passphrase for private key if needed.
|
|
1292
|
+
# reset_authentication - boolean - Reset authenticated account?
|
|
1237
1293
|
# ssl_certificate - string - SSL client certificate.
|
|
1238
|
-
#
|
|
1239
|
-
#
|
|
1240
|
-
#
|
|
1241
|
-
#
|
|
1242
|
-
#
|
|
1243
|
-
#
|
|
1244
|
-
#
|
|
1245
|
-
#
|
|
1246
|
-
#
|
|
1294
|
+
# aws_secret_key - string - AWS: secret key.
|
|
1295
|
+
# azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
|
|
1296
|
+
# azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
|
|
1297
|
+
# azure_files_storage_access_key - string - Azure File Storage: Access Key
|
|
1298
|
+
# azure_files_storage_sas_token - string - Azure File Storage: Shared Access Signature (SAS) token
|
|
1299
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
|
|
1300
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
|
|
1301
|
+
# cloudflare_secret_key - string - Cloudflare: Secret Key
|
|
1302
|
+
# filebase_secret_key - string - Filebase: Secret Key
|
|
1303
|
+
# google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
1304
|
+
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
1305
|
+
# linode_secret_key - string - Linode: Secret Key
|
|
1306
|
+
# rackspace_api_key - string - Rackspace: API key from the Rackspace Cloud Control Panel
|
|
1307
|
+
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
1308
|
+
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
1309
|
+
# aws_access_key - string - AWS Access Key.
|
|
1310
|
+
# azure_blob_storage_account - string - Azure Blob Storage: Account name
|
|
1311
|
+
# azure_blob_storage_container - string - Azure Blob Storage: Container name
|
|
1312
|
+
# azure_blob_storage_dns_suffix - string - Azure Blob Storage: Custom DNS suffix
|
|
1313
|
+
# azure_blob_storage_hierarchical_namespace - boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
|
|
1314
|
+
# azure_files_storage_account - string - Azure Files: Storage Account name
|
|
1315
|
+
# azure_files_storage_dns_suffix - string - Azure Files: Custom DNS suffix
|
|
1316
|
+
# azure_files_storage_share_name - string - Azure Files: Storage Share name
|
|
1317
|
+
# backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
|
|
1318
|
+
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
|
|
1319
|
+
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
1320
|
+
# cloudflare_bucket - string - Cloudflare: Bucket name
|
|
1321
|
+
# cloudflare_endpoint - string - Cloudflare: endpoint
|
|
1322
|
+
# dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
|
|
1323
|
+
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
1324
|
+
# filebase_access_key - string - Filebase: Access Key.
|
|
1325
|
+
# filebase_bucket - string - Filebase: Bucket name
|
|
1326
|
+
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
1327
|
+
# files_agent_root - string - Agent local root path
|
|
1328
|
+
# files_agent_version - string - Files Agent version
|
|
1329
|
+
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1330
|
+
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1331
|
+
# google_cloud_storage_region - string - Google Cloud Storage: Region
|
|
1332
|
+
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
1247
1333
|
# hostname - string - Hostname or IP address
|
|
1248
|
-
#
|
|
1334
|
+
# linode_access_key - string - Linode: Access Key
|
|
1335
|
+
# linode_bucket - string - Linode: Bucket name
|
|
1336
|
+
# linode_region - string - Linode: region
|
|
1249
1337
|
# max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
|
1338
|
+
# name - string - Internal name for your reference
|
|
1339
|
+
# one_drive_account_type - string - OneDrive: Either personal or business_other account types
|
|
1250
1340
|
# 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.
|
|
1251
1341
|
# port - int64 - Port for remote server. Not needed for S3.
|
|
1342
|
+
# rackspace_container - string - Rackspace: The name of the container (top level directory) where files will sync.
|
|
1343
|
+
# rackspace_region - string - Rackspace: Three letter code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
1344
|
+
# rackspace_username - string - Rackspace: username used to login to the Rackspace Cloud Control Panel.
|
|
1252
1345
|
# s3_bucket - string - S3 bucket name
|
|
1346
|
+
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
1347
|
+
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
1348
|
+
# s3_compatible_endpoint - string - S3-compatible: endpoint
|
|
1349
|
+
# s3_compatible_region - string - S3-compatible: region
|
|
1253
1350
|
# s3_region - string - S3 region
|
|
1254
1351
|
# server_certificate - string - Remote server certificate
|
|
1255
1352
|
# 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
|
|
1256
1353
|
# server_type - string - Remote server type.
|
|
1257
1354
|
# ssl - string - Should we require SSL?
|
|
1258
1355
|
# username - string - Remote server username. Not needed for S3 buckets.
|
|
1259
|
-
#
|
|
1260
|
-
#
|
|
1261
|
-
#
|
|
1262
|
-
# backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage S3 Endpoint
|
|
1263
|
-
# wasabi_bucket - string - Wasabi Bucket name
|
|
1264
|
-
# wasabi_region - string - Wasabi region
|
|
1265
|
-
# rackspace_username - string - Rackspace username used to login to the Rackspace Cloud Control Panel.
|
|
1266
|
-
# rackspace_region - string - Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
|
1267
|
-
# rackspace_container - string - The name of the container (top level directory) where files will sync.
|
|
1268
|
-
# one_drive_account_type - string - Either personal or business_other account types
|
|
1269
|
-
# azure_blob_storage_account - string - Azure Blob Storage Account name
|
|
1270
|
-
# azure_blob_storage_container - string - Azure Blob Storage Container name
|
|
1271
|
-
# azure_blob_storage_hierarchical_namespace - boolean - Enable when storage account has hierarchical namespace feature enabled
|
|
1272
|
-
# azure_blob_storage_sas_token - string - Shared Access Signature (SAS) token
|
|
1273
|
-
# azure_blob_storage_dns_suffix - string - Custom DNS suffix
|
|
1274
|
-
# azure_files_storage_account - string - Azure File Storage Account name
|
|
1275
|
-
# azure_files_storage_share_name - string - Azure File Storage Share name
|
|
1276
|
-
# azure_files_storage_dns_suffix - string - Custom DNS suffix
|
|
1277
|
-
# azure_files_storage_sas_token - string - Shared Access Signature (SAS) token
|
|
1278
|
-
# s3_compatible_bucket - string - S3-compatible Bucket name
|
|
1279
|
-
# s3_compatible_endpoint - string - S3-compatible endpoint
|
|
1280
|
-
# s3_compatible_region - string - S3-compatible endpoint
|
|
1281
|
-
# enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
|
|
1282
|
-
# s3_compatible_access_key - string - S3-compatible Access Key.
|
|
1283
|
-
# s3_compatible_secret_key - string - S3-compatible secret key
|
|
1284
|
-
# files_agent_root - string - Agent local root path
|
|
1285
|
-
# files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
|
1286
|
-
# files_agent_version - string - Files Agent version
|
|
1287
|
-
# filebase_access_key - string - Filebase Access Key.
|
|
1288
|
-
# filebase_secret_key - string - Filebase secret key
|
|
1289
|
-
# filebase_bucket - string - Filebase Bucket name
|
|
1290
|
-
# cloudflare_access_key - string - Cloudflare Access Key.
|
|
1291
|
-
# cloudflare_secret_key - string - Cloudflare secret key
|
|
1292
|
-
# cloudflare_bucket - string - Cloudflare Bucket name
|
|
1293
|
-
# cloudflare_endpoint - string - Cloudflare endpoint
|
|
1294
|
-
# dropbox_teams - boolean - List Team folders in root
|
|
1295
|
-
# linode_access_key - string - Linode Access Key.
|
|
1296
|
-
# linode_secret_key - string - Linode secret key
|
|
1297
|
-
# linode_bucket - string - Linode Bucket name
|
|
1298
|
-
# linode_region - string - Linode region
|
|
1356
|
+
# wasabi_access_key - string - Wasabi: Access Key.
|
|
1357
|
+
# wasabi_bucket - string - Wasabi: Bucket name
|
|
1358
|
+
# wasabi_region - string - Wasabi: Region
|
|
1299
1359
|
def update(id, params=None, options=None):
|
|
1300
1360
|
if not isinstance(params, dict):
|
|
1301
1361
|
params = {}
|
|
@@ -1304,18 +1364,6 @@ def update(id, params=None, options=None):
|
|
|
1304
1364
|
params["id"] = id
|
|
1305
1365
|
if "id" in params and not isinstance(params["id"], int):
|
|
1306
1366
|
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
1307
|
-
if "aws_access_key" in params and not isinstance(
|
|
1308
|
-
params["aws_access_key"], str
|
|
1309
|
-
):
|
|
1310
|
-
raise InvalidParameterError(
|
|
1311
|
-
"Bad parameter: aws_access_key must be an str"
|
|
1312
|
-
)
|
|
1313
|
-
if "aws_secret_key" in params and not isinstance(
|
|
1314
|
-
params["aws_secret_key"], str
|
|
1315
|
-
):
|
|
1316
|
-
raise InvalidParameterError(
|
|
1317
|
-
"Bad parameter: aws_secret_key must be an str"
|
|
1318
|
-
)
|
|
1319
1367
|
if "password" in params and not isinstance(params["password"], str):
|
|
1320
1368
|
raise InvalidParameterError("Bad parameter: password must be an str")
|
|
1321
1369
|
if "private_key" in params and not isinstance(params["private_key"], str):
|
|
@@ -1334,29 +1382,35 @@ def update(id, params=None, options=None):
|
|
|
1334
1382
|
raise InvalidParameterError(
|
|
1335
1383
|
"Bad parameter: ssl_certificate must be an str"
|
|
1336
1384
|
)
|
|
1337
|
-
if "
|
|
1338
|
-
params["
|
|
1385
|
+
if "aws_secret_key" in params and not isinstance(
|
|
1386
|
+
params["aws_secret_key"], str
|
|
1339
1387
|
):
|
|
1340
1388
|
raise InvalidParameterError(
|
|
1341
|
-
"Bad parameter:
|
|
1389
|
+
"Bad parameter: aws_secret_key must be an str"
|
|
1342
1390
|
)
|
|
1343
|
-
if "
|
|
1344
|
-
params["
|
|
1391
|
+
if "azure_blob_storage_access_key" in params and not isinstance(
|
|
1392
|
+
params["azure_blob_storage_access_key"], str
|
|
1345
1393
|
):
|
|
1346
1394
|
raise InvalidParameterError(
|
|
1347
|
-
"Bad parameter:
|
|
1395
|
+
"Bad parameter: azure_blob_storage_access_key must be an str"
|
|
1348
1396
|
)
|
|
1349
|
-
if "
|
|
1350
|
-
params["
|
|
1397
|
+
if "azure_blob_storage_sas_token" in params and not isinstance(
|
|
1398
|
+
params["azure_blob_storage_sas_token"], str
|
|
1351
1399
|
):
|
|
1352
1400
|
raise InvalidParameterError(
|
|
1353
|
-
"Bad parameter:
|
|
1401
|
+
"Bad parameter: azure_blob_storage_sas_token must be an str"
|
|
1354
1402
|
)
|
|
1355
|
-
if "
|
|
1356
|
-
params["
|
|
1403
|
+
if "azure_files_storage_access_key" in params and not isinstance(
|
|
1404
|
+
params["azure_files_storage_access_key"], str
|
|
1357
1405
|
):
|
|
1358
1406
|
raise InvalidParameterError(
|
|
1359
|
-
"Bad parameter:
|
|
1407
|
+
"Bad parameter: azure_files_storage_access_key must be an str"
|
|
1408
|
+
)
|
|
1409
|
+
if "azure_files_storage_sas_token" in params and not isinstance(
|
|
1410
|
+
params["azure_files_storage_sas_token"], str
|
|
1411
|
+
):
|
|
1412
|
+
raise InvalidParameterError(
|
|
1413
|
+
"Bad parameter: azure_files_storage_sas_token must be an str"
|
|
1360
1414
|
)
|
|
1361
1415
|
if "backblaze_b2_application_key" in params and not isinstance(
|
|
1362
1416
|
params["backblaze_b2_application_key"], str
|
|
@@ -1364,281 +1418,311 @@ def update(id, params=None, options=None):
|
|
|
1364
1418
|
raise InvalidParameterError(
|
|
1365
1419
|
"Bad parameter: backblaze_b2_application_key must be an str"
|
|
1366
1420
|
)
|
|
1367
|
-
if "
|
|
1368
|
-
params["
|
|
1421
|
+
if "backblaze_b2_key_id" in params and not isinstance(
|
|
1422
|
+
params["backblaze_b2_key_id"], str
|
|
1369
1423
|
):
|
|
1370
1424
|
raise InvalidParameterError(
|
|
1371
|
-
"Bad parameter:
|
|
1425
|
+
"Bad parameter: backblaze_b2_key_id must be an str"
|
|
1372
1426
|
)
|
|
1373
|
-
if "
|
|
1374
|
-
params["
|
|
1427
|
+
if "cloudflare_secret_key" in params and not isinstance(
|
|
1428
|
+
params["cloudflare_secret_key"], str
|
|
1375
1429
|
):
|
|
1376
1430
|
raise InvalidParameterError(
|
|
1377
|
-
"Bad parameter:
|
|
1431
|
+
"Bad parameter: cloudflare_secret_key must be an str"
|
|
1378
1432
|
)
|
|
1379
|
-
if "
|
|
1380
|
-
params["
|
|
1433
|
+
if "filebase_secret_key" in params and not isinstance(
|
|
1434
|
+
params["filebase_secret_key"], str
|
|
1381
1435
|
):
|
|
1382
1436
|
raise InvalidParameterError(
|
|
1383
|
-
"Bad parameter:
|
|
1437
|
+
"Bad parameter: filebase_secret_key must be an str"
|
|
1384
1438
|
)
|
|
1385
|
-
if "
|
|
1386
|
-
|
|
1387
|
-
if "name" in params and not isinstance(params["name"], str):
|
|
1388
|
-
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
1389
|
-
if "max_connections" in params and not isinstance(
|
|
1390
|
-
params["max_connections"], int
|
|
1439
|
+
if "google_cloud_storage_credentials_json" in params and not isinstance(
|
|
1440
|
+
params["google_cloud_storage_credentials_json"], str
|
|
1391
1441
|
):
|
|
1392
1442
|
raise InvalidParameterError(
|
|
1393
|
-
"Bad parameter:
|
|
1443
|
+
"Bad parameter: google_cloud_storage_credentials_json must be an str"
|
|
1444
|
+
)
|
|
1445
|
+
if (
|
|
1446
|
+
"google_cloud_storage_s3_compatible_secret_key" in params
|
|
1447
|
+
and not isinstance(
|
|
1448
|
+
params["google_cloud_storage_s3_compatible_secret_key"], str
|
|
1394
1449
|
)
|
|
1395
|
-
if "port" in params and not isinstance(params["port"], int):
|
|
1396
|
-
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
1397
|
-
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
1398
|
-
raise InvalidParameterError("Bad parameter: s3_bucket must be an str")
|
|
1399
|
-
if "s3_region" in params and not isinstance(params["s3_region"], str):
|
|
1400
|
-
raise InvalidParameterError("Bad parameter: s3_region must be an str")
|
|
1401
|
-
if "server_certificate" in params and not isinstance(
|
|
1402
|
-
params["server_certificate"], str
|
|
1403
1450
|
):
|
|
1404
1451
|
raise InvalidParameterError(
|
|
1405
|
-
"Bad parameter:
|
|
1452
|
+
"Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an str"
|
|
1406
1453
|
)
|
|
1407
|
-
if "
|
|
1408
|
-
params["
|
|
1454
|
+
if "linode_secret_key" in params and not isinstance(
|
|
1455
|
+
params["linode_secret_key"], str
|
|
1409
1456
|
):
|
|
1410
1457
|
raise InvalidParameterError(
|
|
1411
|
-
"Bad parameter:
|
|
1458
|
+
"Bad parameter: linode_secret_key must be an str"
|
|
1412
1459
|
)
|
|
1413
|
-
if "
|
|
1460
|
+
if "rackspace_api_key" in params and not isinstance(
|
|
1461
|
+
params["rackspace_api_key"], str
|
|
1462
|
+
):
|
|
1414
1463
|
raise InvalidParameterError(
|
|
1415
|
-
"Bad parameter:
|
|
1464
|
+
"Bad parameter: rackspace_api_key must be an str"
|
|
1416
1465
|
)
|
|
1417
|
-
if "
|
|
1418
|
-
|
|
1419
|
-
if "username" in params and not isinstance(params["username"], str):
|
|
1420
|
-
raise InvalidParameterError("Bad parameter: username must be an str")
|
|
1421
|
-
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
1422
|
-
params["google_cloud_storage_bucket"], str
|
|
1466
|
+
if "s3_compatible_secret_key" in params and not isinstance(
|
|
1467
|
+
params["s3_compatible_secret_key"], str
|
|
1423
1468
|
):
|
|
1424
1469
|
raise InvalidParameterError(
|
|
1425
|
-
"Bad parameter:
|
|
1470
|
+
"Bad parameter: s3_compatible_secret_key must be an str"
|
|
1426
1471
|
)
|
|
1427
|
-
if "
|
|
1428
|
-
params["
|
|
1472
|
+
if "wasabi_secret_key" in params and not isinstance(
|
|
1473
|
+
params["wasabi_secret_key"], str
|
|
1429
1474
|
):
|
|
1430
1475
|
raise InvalidParameterError(
|
|
1431
|
-
"Bad parameter:
|
|
1476
|
+
"Bad parameter: wasabi_secret_key must be an str"
|
|
1432
1477
|
)
|
|
1433
|
-
if "
|
|
1434
|
-
params["
|
|
1478
|
+
if "aws_access_key" in params and not isinstance(
|
|
1479
|
+
params["aws_access_key"], str
|
|
1435
1480
|
):
|
|
1436
1481
|
raise InvalidParameterError(
|
|
1437
|
-
"Bad parameter:
|
|
1482
|
+
"Bad parameter: aws_access_key must be an str"
|
|
1438
1483
|
)
|
|
1439
|
-
if "
|
|
1440
|
-
params["
|
|
1484
|
+
if "azure_blob_storage_account" in params and not isinstance(
|
|
1485
|
+
params["azure_blob_storage_account"], str
|
|
1441
1486
|
):
|
|
1442
1487
|
raise InvalidParameterError(
|
|
1443
|
-
"Bad parameter:
|
|
1488
|
+
"Bad parameter: azure_blob_storage_account must be an str"
|
|
1444
1489
|
)
|
|
1445
|
-
if "
|
|
1446
|
-
params["
|
|
1490
|
+
if "azure_blob_storage_container" in params and not isinstance(
|
|
1491
|
+
params["azure_blob_storage_container"], str
|
|
1447
1492
|
):
|
|
1448
1493
|
raise InvalidParameterError(
|
|
1449
|
-
"Bad parameter:
|
|
1494
|
+
"Bad parameter: azure_blob_storage_container must be an str"
|
|
1450
1495
|
)
|
|
1451
|
-
if "
|
|
1452
|
-
params["
|
|
1496
|
+
if "azure_blob_storage_dns_suffix" in params and not isinstance(
|
|
1497
|
+
params["azure_blob_storage_dns_suffix"], str
|
|
1453
1498
|
):
|
|
1454
1499
|
raise InvalidParameterError(
|
|
1455
|
-
"Bad parameter:
|
|
1500
|
+
"Bad parameter: azure_blob_storage_dns_suffix must be an str"
|
|
1456
1501
|
)
|
|
1457
|
-
if "
|
|
1458
|
-
params["
|
|
1502
|
+
if "azure_files_storage_account" in params and not isinstance(
|
|
1503
|
+
params["azure_files_storage_account"], str
|
|
1459
1504
|
):
|
|
1460
1505
|
raise InvalidParameterError(
|
|
1461
|
-
"Bad parameter:
|
|
1506
|
+
"Bad parameter: azure_files_storage_account must be an str"
|
|
1462
1507
|
)
|
|
1463
|
-
if "
|
|
1464
|
-
params["
|
|
1508
|
+
if "azure_files_storage_dns_suffix" in params and not isinstance(
|
|
1509
|
+
params["azure_files_storage_dns_suffix"], str
|
|
1465
1510
|
):
|
|
1466
1511
|
raise InvalidParameterError(
|
|
1467
|
-
"Bad parameter:
|
|
1512
|
+
"Bad parameter: azure_files_storage_dns_suffix must be an str"
|
|
1468
1513
|
)
|
|
1469
|
-
if "
|
|
1470
|
-
params["
|
|
1514
|
+
if "azure_files_storage_share_name" in params and not isinstance(
|
|
1515
|
+
params["azure_files_storage_share_name"], str
|
|
1471
1516
|
):
|
|
1472
1517
|
raise InvalidParameterError(
|
|
1473
|
-
"Bad parameter:
|
|
1518
|
+
"Bad parameter: azure_files_storage_share_name must be an str"
|
|
1474
1519
|
)
|
|
1475
|
-
if "
|
|
1476
|
-
params["
|
|
1520
|
+
if "backblaze_b2_bucket" in params and not isinstance(
|
|
1521
|
+
params["backblaze_b2_bucket"], str
|
|
1477
1522
|
):
|
|
1478
1523
|
raise InvalidParameterError(
|
|
1479
|
-
"Bad parameter:
|
|
1524
|
+
"Bad parameter: backblaze_b2_bucket must be an str"
|
|
1480
1525
|
)
|
|
1481
|
-
if "
|
|
1482
|
-
params["
|
|
1526
|
+
if "backblaze_b2_s3_endpoint" in params and not isinstance(
|
|
1527
|
+
params["backblaze_b2_s3_endpoint"], str
|
|
1483
1528
|
):
|
|
1484
1529
|
raise InvalidParameterError(
|
|
1485
|
-
"Bad parameter:
|
|
1530
|
+
"Bad parameter: backblaze_b2_s3_endpoint must be an str"
|
|
1486
1531
|
)
|
|
1487
|
-
if "
|
|
1488
|
-
params["
|
|
1532
|
+
if "cloudflare_access_key" in params and not isinstance(
|
|
1533
|
+
params["cloudflare_access_key"], str
|
|
1489
1534
|
):
|
|
1490
1535
|
raise InvalidParameterError(
|
|
1491
|
-
"Bad parameter:
|
|
1536
|
+
"Bad parameter: cloudflare_access_key must be an str"
|
|
1492
1537
|
)
|
|
1493
|
-
if "
|
|
1494
|
-
params["
|
|
1538
|
+
if "cloudflare_bucket" in params and not isinstance(
|
|
1539
|
+
params["cloudflare_bucket"], str
|
|
1495
1540
|
):
|
|
1496
1541
|
raise InvalidParameterError(
|
|
1497
|
-
"Bad parameter:
|
|
1542
|
+
"Bad parameter: cloudflare_bucket must be an str"
|
|
1498
1543
|
)
|
|
1499
|
-
if "
|
|
1500
|
-
params["
|
|
1544
|
+
if "cloudflare_endpoint" in params and not isinstance(
|
|
1545
|
+
params["cloudflare_endpoint"], str
|
|
1501
1546
|
):
|
|
1502
1547
|
raise InvalidParameterError(
|
|
1503
|
-
"Bad parameter:
|
|
1548
|
+
"Bad parameter: cloudflare_endpoint must be an str"
|
|
1504
1549
|
)
|
|
1505
|
-
if "
|
|
1506
|
-
params["
|
|
1550
|
+
if "filebase_access_key" in params and not isinstance(
|
|
1551
|
+
params["filebase_access_key"], str
|
|
1507
1552
|
):
|
|
1508
1553
|
raise InvalidParameterError(
|
|
1509
|
-
"Bad parameter:
|
|
1554
|
+
"Bad parameter: filebase_access_key must be an str"
|
|
1510
1555
|
)
|
|
1511
|
-
if "
|
|
1512
|
-
params["
|
|
1556
|
+
if "filebase_bucket" in params and not isinstance(
|
|
1557
|
+
params["filebase_bucket"], str
|
|
1513
1558
|
):
|
|
1514
1559
|
raise InvalidParameterError(
|
|
1515
|
-
"Bad parameter:
|
|
1560
|
+
"Bad parameter: filebase_bucket must be an str"
|
|
1516
1561
|
)
|
|
1517
|
-
if "
|
|
1518
|
-
params["
|
|
1562
|
+
if "files_agent_permission_set" in params and not isinstance(
|
|
1563
|
+
params["files_agent_permission_set"], str
|
|
1519
1564
|
):
|
|
1520
1565
|
raise InvalidParameterError(
|
|
1521
|
-
"Bad parameter:
|
|
1566
|
+
"Bad parameter: files_agent_permission_set must be an str"
|
|
1522
1567
|
)
|
|
1523
|
-
if "
|
|
1524
|
-
params["
|
|
1568
|
+
if "files_agent_root" in params and not isinstance(
|
|
1569
|
+
params["files_agent_root"], str
|
|
1525
1570
|
):
|
|
1526
1571
|
raise InvalidParameterError(
|
|
1527
|
-
"Bad parameter:
|
|
1572
|
+
"Bad parameter: files_agent_root must be an str"
|
|
1528
1573
|
)
|
|
1529
|
-
if "
|
|
1530
|
-
params["
|
|
1574
|
+
if "files_agent_version" in params and not isinstance(
|
|
1575
|
+
params["files_agent_version"], str
|
|
1531
1576
|
):
|
|
1532
1577
|
raise InvalidParameterError(
|
|
1533
|
-
"Bad parameter:
|
|
1578
|
+
"Bad parameter: files_agent_version must be an str"
|
|
1534
1579
|
)
|
|
1535
|
-
if "
|
|
1536
|
-
params["
|
|
1580
|
+
if "google_cloud_storage_bucket" in params and not isinstance(
|
|
1581
|
+
params["google_cloud_storage_bucket"], str
|
|
1537
1582
|
):
|
|
1538
1583
|
raise InvalidParameterError(
|
|
1539
|
-
"Bad parameter:
|
|
1584
|
+
"Bad parameter: google_cloud_storage_bucket must be an str"
|
|
1540
1585
|
)
|
|
1541
|
-
if "
|
|
1542
|
-
params["
|
|
1586
|
+
if "google_cloud_storage_project_id" in params and not isinstance(
|
|
1587
|
+
params["google_cloud_storage_project_id"], str
|
|
1543
1588
|
):
|
|
1544
1589
|
raise InvalidParameterError(
|
|
1545
|
-
"Bad parameter:
|
|
1590
|
+
"Bad parameter: google_cloud_storage_project_id must be an str"
|
|
1546
1591
|
)
|
|
1547
|
-
if "
|
|
1548
|
-
params["
|
|
1592
|
+
if "google_cloud_storage_region" in params and not isinstance(
|
|
1593
|
+
params["google_cloud_storage_region"], str
|
|
1549
1594
|
):
|
|
1550
1595
|
raise InvalidParameterError(
|
|
1551
|
-
"Bad parameter:
|
|
1596
|
+
"Bad parameter: google_cloud_storage_region must be an str"
|
|
1597
|
+
)
|
|
1598
|
+
if (
|
|
1599
|
+
"google_cloud_storage_s3_compatible_access_key" in params
|
|
1600
|
+
and not isinstance(
|
|
1601
|
+
params["google_cloud_storage_s3_compatible_access_key"], str
|
|
1552
1602
|
)
|
|
1553
|
-
if "s3_compatible_secret_key" in params and not isinstance(
|
|
1554
|
-
params["s3_compatible_secret_key"], str
|
|
1555
1603
|
):
|
|
1556
1604
|
raise InvalidParameterError(
|
|
1557
|
-
"Bad parameter:
|
|
1605
|
+
"Bad parameter: google_cloud_storage_s3_compatible_access_key must be an str"
|
|
1558
1606
|
)
|
|
1559
|
-
if "
|
|
1560
|
-
|
|
1607
|
+
if "hostname" in params and not isinstance(params["hostname"], str):
|
|
1608
|
+
raise InvalidParameterError("Bad parameter: hostname must be an str")
|
|
1609
|
+
if "linode_access_key" in params and not isinstance(
|
|
1610
|
+
params["linode_access_key"], str
|
|
1561
1611
|
):
|
|
1562
1612
|
raise InvalidParameterError(
|
|
1563
|
-
"Bad parameter:
|
|
1613
|
+
"Bad parameter: linode_access_key must be an str"
|
|
1564
1614
|
)
|
|
1565
|
-
if "
|
|
1566
|
-
params["
|
|
1615
|
+
if "linode_bucket" in params and not isinstance(
|
|
1616
|
+
params["linode_bucket"], str
|
|
1567
1617
|
):
|
|
1568
1618
|
raise InvalidParameterError(
|
|
1569
|
-
"Bad parameter:
|
|
1619
|
+
"Bad parameter: linode_bucket must be an str"
|
|
1570
1620
|
)
|
|
1571
|
-
if "
|
|
1572
|
-
params["
|
|
1621
|
+
if "linode_region" in params and not isinstance(
|
|
1622
|
+
params["linode_region"], str
|
|
1573
1623
|
):
|
|
1574
1624
|
raise InvalidParameterError(
|
|
1575
|
-
"Bad parameter:
|
|
1625
|
+
"Bad parameter: linode_region must be an str"
|
|
1576
1626
|
)
|
|
1577
|
-
if "
|
|
1578
|
-
params["
|
|
1627
|
+
if "max_connections" in params and not isinstance(
|
|
1628
|
+
params["max_connections"], int
|
|
1579
1629
|
):
|
|
1580
1630
|
raise InvalidParameterError(
|
|
1581
|
-
"Bad parameter:
|
|
1631
|
+
"Bad parameter: max_connections must be an int"
|
|
1582
1632
|
)
|
|
1583
|
-
if "
|
|
1584
|
-
|
|
1633
|
+
if "name" in params and not isinstance(params["name"], str):
|
|
1634
|
+
raise InvalidParameterError("Bad parameter: name must be an str")
|
|
1635
|
+
if "one_drive_account_type" in params and not isinstance(
|
|
1636
|
+
params["one_drive_account_type"], str
|
|
1585
1637
|
):
|
|
1586
1638
|
raise InvalidParameterError(
|
|
1587
|
-
"Bad parameter:
|
|
1639
|
+
"Bad parameter: one_drive_account_type must be an str"
|
|
1588
1640
|
)
|
|
1589
|
-
if "
|
|
1590
|
-
|
|
1641
|
+
if "port" in params and not isinstance(params["port"], int):
|
|
1642
|
+
raise InvalidParameterError("Bad parameter: port must be an int")
|
|
1643
|
+
if "rackspace_container" in params and not isinstance(
|
|
1644
|
+
params["rackspace_container"], str
|
|
1591
1645
|
):
|
|
1592
1646
|
raise InvalidParameterError(
|
|
1593
|
-
"Bad parameter:
|
|
1647
|
+
"Bad parameter: rackspace_container must be an str"
|
|
1594
1648
|
)
|
|
1595
|
-
if "
|
|
1596
|
-
params["
|
|
1649
|
+
if "rackspace_region" in params and not isinstance(
|
|
1650
|
+
params["rackspace_region"], str
|
|
1597
1651
|
):
|
|
1598
1652
|
raise InvalidParameterError(
|
|
1599
|
-
"Bad parameter:
|
|
1653
|
+
"Bad parameter: rackspace_region must be an str"
|
|
1600
1654
|
)
|
|
1601
|
-
if "
|
|
1602
|
-
params["
|
|
1655
|
+
if "rackspace_username" in params and not isinstance(
|
|
1656
|
+
params["rackspace_username"], str
|
|
1603
1657
|
):
|
|
1604
1658
|
raise InvalidParameterError(
|
|
1605
|
-
"Bad parameter:
|
|
1659
|
+
"Bad parameter: rackspace_username must be an str"
|
|
1606
1660
|
)
|
|
1607
|
-
if "
|
|
1608
|
-
|
|
1661
|
+
if "s3_bucket" in params and not isinstance(params["s3_bucket"], str):
|
|
1662
|
+
raise InvalidParameterError("Bad parameter: s3_bucket must be an str")
|
|
1663
|
+
if "s3_compatible_access_key" in params and not isinstance(
|
|
1664
|
+
params["s3_compatible_access_key"], str
|
|
1609
1665
|
):
|
|
1610
1666
|
raise InvalidParameterError(
|
|
1611
|
-
"Bad parameter:
|
|
1667
|
+
"Bad parameter: s3_compatible_access_key must be an str"
|
|
1612
1668
|
)
|
|
1613
|
-
if "
|
|
1614
|
-
params["
|
|
1669
|
+
if "s3_compatible_bucket" in params and not isinstance(
|
|
1670
|
+
params["s3_compatible_bucket"], str
|
|
1615
1671
|
):
|
|
1616
1672
|
raise InvalidParameterError(
|
|
1617
|
-
"Bad parameter:
|
|
1673
|
+
"Bad parameter: s3_compatible_bucket must be an str"
|
|
1618
1674
|
)
|
|
1619
|
-
if "
|
|
1620
|
-
params["
|
|
1675
|
+
if "s3_compatible_endpoint" in params and not isinstance(
|
|
1676
|
+
params["s3_compatible_endpoint"], str
|
|
1621
1677
|
):
|
|
1622
1678
|
raise InvalidParameterError(
|
|
1623
|
-
"Bad parameter:
|
|
1679
|
+
"Bad parameter: s3_compatible_endpoint must be an str"
|
|
1624
1680
|
)
|
|
1625
|
-
if "
|
|
1626
|
-
params["
|
|
1681
|
+
if "s3_compatible_region" in params and not isinstance(
|
|
1682
|
+
params["s3_compatible_region"], str
|
|
1627
1683
|
):
|
|
1628
1684
|
raise InvalidParameterError(
|
|
1629
|
-
"Bad parameter:
|
|
1685
|
+
"Bad parameter: s3_compatible_region must be an str"
|
|
1630
1686
|
)
|
|
1631
|
-
if "
|
|
1632
|
-
|
|
1687
|
+
if "s3_region" in params and not isinstance(params["s3_region"], str):
|
|
1688
|
+
raise InvalidParameterError("Bad parameter: s3_region must be an str")
|
|
1689
|
+
if "server_certificate" in params and not isinstance(
|
|
1690
|
+
params["server_certificate"], str
|
|
1633
1691
|
):
|
|
1634
1692
|
raise InvalidParameterError(
|
|
1635
|
-
"Bad parameter:
|
|
1693
|
+
"Bad parameter: server_certificate must be an str"
|
|
1636
1694
|
)
|
|
1637
|
-
if "
|
|
1638
|
-
params["
|
|
1695
|
+
if "server_host_key" in params and not isinstance(
|
|
1696
|
+
params["server_host_key"], str
|
|
1639
1697
|
):
|
|
1640
1698
|
raise InvalidParameterError(
|
|
1641
|
-
"Bad parameter:
|
|
1699
|
+
"Bad parameter: server_host_key must be an str"
|
|
1700
|
+
)
|
|
1701
|
+
if "server_type" in params and not isinstance(params["server_type"], str):
|
|
1702
|
+
raise InvalidParameterError(
|
|
1703
|
+
"Bad parameter: server_type must be an str"
|
|
1704
|
+
)
|
|
1705
|
+
if "ssl" in params and not isinstance(params["ssl"], str):
|
|
1706
|
+
raise InvalidParameterError("Bad parameter: ssl must be an str")
|
|
1707
|
+
if "username" in params and not isinstance(params["username"], str):
|
|
1708
|
+
raise InvalidParameterError("Bad parameter: username must be an str")
|
|
1709
|
+
if "wasabi_access_key" in params and not isinstance(
|
|
1710
|
+
params["wasabi_access_key"], str
|
|
1711
|
+
):
|
|
1712
|
+
raise InvalidParameterError(
|
|
1713
|
+
"Bad parameter: wasabi_access_key must be an str"
|
|
1714
|
+
)
|
|
1715
|
+
if "wasabi_bucket" in params and not isinstance(
|
|
1716
|
+
params["wasabi_bucket"], str
|
|
1717
|
+
):
|
|
1718
|
+
raise InvalidParameterError(
|
|
1719
|
+
"Bad parameter: wasabi_bucket must be an str"
|
|
1720
|
+
)
|
|
1721
|
+
if "wasabi_region" in params and not isinstance(
|
|
1722
|
+
params["wasabi_region"], str
|
|
1723
|
+
):
|
|
1724
|
+
raise InvalidParameterError(
|
|
1725
|
+
"Bad parameter: wasabi_region must be an str"
|
|
1642
1726
|
)
|
|
1643
1727
|
if "id" not in params:
|
|
1644
1728
|
raise MissingParameterError("Parameter missing: id")
|