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