{"id":27772,"library":"g42cloudsdkrds","title":"G42 Cloud SDK RDS","description":"Official Huawei G42 Cloud Python SDK for Relational Database Service (RDS). Version 0.0.10b0, beta release cadence.","status":"active","version":"0.0.10b0","language":"python","source_language":"en","source_url":"https://github.com/g42cloud-sdk/g42cloud-sdk-python","tags":["g42cloud","rds","cloud-sdk","huawei"],"install":[{"cmd":"pip install g42cloudsdkrds","lang":"bash","label":"default"}],"dependencies":[{"reason":"Core SDK required for authentication and HTTP handling","package":"g42cloudsdkcore","optional":false}],"imports":[{"note":"RdsClient is in the v3 submodule, not top-level","wrong":"from g42cloudsdkrds import RdsClient","symbol":"RdsClient","correct":"from g42cloudsdkrds.v3 import RdsClient"},{"note":"Model classes are nested under v3.model","wrong":"from g42cloudsdkrds.model import ShowInstanceRequest","symbol":"ShowInstanceRequest","correct":"from g42cloudsdkrds.v3.model import ShowInstanceRequest"}],"quickstart":{"code":"from g42cloudsdkcore.auth.credentials import BasicCredentials\nfrom g42cloudsdkrds.v3 import RdsClient\nfrom g42cloudsdkrds.v3.region import RdsRegion\nfrom g42cloudsdkrds.v3.model import ListInstancesRequest\n\nak = os.environ.get('G42_AK', '')\nsk = os.environ.get('G42_SK', '')\ncredentials = BasicCredentials(ak, sk)\nclient = RdsClient.new_builder() \\\n    .with_credentials(credentials) \\\n    .with_region(RdsRegion.value_of(\"ae-ad-1\")) \\\n    .build()\nrequest = ListInstancesRequest()\nresponse = client.list_instances(request)\nprint(response)","lang":"python","description":"Lists RDS instances. Requires G42_AK and G42_SK env vars."},"warnings":[{"fix":"Use from g42cloudsdkrds.v3.model import ...","message":"All model classes must be imported from the v3.model submodule, not directly from g42cloudsdkrds.","severity":"gotcha","affected_versions":"all"},{"fix":"Check available regions in G42 Cloud documentation.","message":"Region must be obtained via RdsRegion.value_of() with a valid region ID (e.g., 'ae-ad-1'). Using incorrect region ID causes authentication errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin exact version and test upgrades.","message":"The SDK is in beta; API contract may break without notice.","severity":"deprecated","affected_versions":"0.x"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use: from g42cloudsdkrds.v3 import RdsClient","cause":"RdsClient is not exposed at top-level; it's in the v3 submodule.","error":"from g42cloudsdkrds import RdsClient\nImportError: cannot import name 'RdsClient' from 'g42cloudsdkrds'"},{"fix":"Install both: pip install g42cloudsdkcore g42cloudsdkrds","cause":"Required core SDK is not installed.","error":"ModuleNotFoundError: No module named 'g42cloudsdkcore'"},{"fix":"Ensure G42_AK and G42_SK environment variables are set and valid, and use correct region ID.","cause":"Invalid or missing AK/SK credentials, or wrong region.","error":"ApiException: APIGW.0301: Incorrect IAM authentication information: decrypt token fail"},{"fix":"Create request object properly and call appropriate client method (e.g., client.show_instance(request)).","cause":"Attempting to pass request object directly to client method without using the proper model instance.","error":"TypeError: object of type 'ShowInstanceRequest' has no len()"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}