Coverage for mindsdb / integrations / handlers / ibm_cos_handler / connection_args.py: 0%
4 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1from collections import OrderedDict
2from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
4connection_args = OrderedDict(
5 cos_hmac_access_key_id={
6 "type": ARG_TYPE.PWD,
7 "description": "IBM COS HMAC Access Key ID.",
8 "required": True,
9 "label": "HMAC Access Key ID",
10 "secret": True,
11 },
12 cos_hmac_secret_access_key={
13 "type": ARG_TYPE.PWD,
14 "description": "IBM COS HMAC Secret Access Key.",
15 "required": True,
16 "label": "HMAC Secret Access Key",
17 "secret": True,
18 },
19 cos_endpoint_url={
20 "type": ARG_TYPE.STR,
21 "description": "IBM COS Endpoint URL (e.g., https://s3.eu-gb.cloud-object-storage.appdomain.cloud).",
22 "required": True,
23 "label": "Endpoint URL",
24 },
25 bucket={
26 "type": ARG_TYPE.STR,
27 "description": "IBM COS Bucket Name (Optional).",
28 "required": False,
29 "label": "Bucket Name",
30 },
31)
33connection_args_example = OrderedDict(
34 cos_hmac_access_key_id="YOUR_HMAC_ACCESS_KEY_ID",
35 cos_hmac_secret_access_key="YOUR_HMAC_SECRET_ACCESS_KEY",
36 cos_endpoint_url="https://s3.eu-gb.cloud-object-storage.appdomain.cloud",
37 bucket="YOUR_BUCKET_NAME",
38)