Registry / aws / g42cloudsdkrds

g42cloudsdkrds

JSON →
library0.0.10b0pypypi✓ verified 86d ago

Official Huawei G42 Cloud Python SDK for Relational Database Service (RDS). Version 0.0.10b0, beta release cadence.

pip install g42cloudsdkrds
INSTALL
IMPORT
SIG · G42CLOUDSDKRDS
G
g42cloudsdkrds
awspythonv0.0.10b0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RdsClient
from g42cloudsdkrds.v3 import RdsClient
from g42cloudsdkrds import RdsClient
RdsClient is in the v3 submodule, not top-level
ShowInstanceRequest
from g42cloudsdkrds.v3.model import ShowInstanceRequest
from g42cloudsdkrds.model import ShowInstanceRequest
Model classes are nested under v3.model

Lists RDS instances. Requires G42_AK and G42_SK env vars.

from g42cloudsdkcore.auth.credentials import BasicCredentials from g42cloudsdkrds.v3 import RdsClient from g42cloudsdkrds.v3.region import RdsRegion from g42cloudsdkrds.v3.model import ListInstancesRequest ak = os.environ.get('G42_AK', '') sk = os.environ.get('G42_SK', '') credentials = BasicCredentials(ak, sk) client = RdsClient.new_builder() \ .with_credentials(credentials) \ .with_region(RdsRegion.value_of("ae-ad-1")) \ .build() request = ListInstancesRequest() response = client.list_instances(request) print(response)
Debug
Known issues
gotchaAll model classes must be imported from the v3.model submodule, not directly from g42cloudsdkrds.
fix
Use from g42cloudsdkrds.v3.model import ...
affects: all
gotchaRegion must be obtained via RdsRegion.value_of() with a valid region ID (e.g., 'ae-ad-1'). Using incorrect region ID causes authentication errors.
fix
Check available regions in G42 Cloud documentation.
affects: all
deprecatedThe SDK is in beta; API contract may break without notice.
fix
Pin exact version and test upgrades.
affects: 0.x
Errors
Common errors & fixes
from g42cloudsdkrds import RdsClient ImportError: cannot import name 'RdsClient' from 'g42cloudsdkrds'
RdsClient is not exposed at top-level; it's in the v3 submodule.
fix
Use: from g42cloudsdkrds.v3 import RdsClient
ModuleNotFoundError: No module named 'g42cloudsdkcore'
Required core SDK is not installed.
fix
Install both: pip install g42cloudsdkcore g42cloudsdkrds
ApiException: APIGW.0301: Incorrect IAM authentication information: decrypt token fail
Invalid or missing AK/SK credentials, or wrong region.
fix
Ensure G42_AK and G42_SK environment variables are set and valid, and use correct region ID.
TypeError: object of type 'ShowInstanceRequest' has no len()
Attempting to pass request object directly to client method without using the proper model instance.
fix
Create request object properly and call appropriate client method (e.g., client.show_instance(request)).
Upgrade
Version history
0.0.10b0latest on PyPI · released Oct 30, 2023
Audit
Dependencies
g42cloudsdkcorerequiredCore SDK required for authentication and HTTP handling
Agent activity
25 hits · last 30 days
node
22
Resources
g42cloudsdkrds — pip install g42cloudsdkrds · libregistry