{"id":27023,"library":"google-cloud-redis-cluster","title":"Google Cloud Redis Cluster","description":"Google Cloud Redis Cluster API client library for managing Redis clusters on GCP. Version 0.4.0 (pre-GA). Requires Python >=3.9.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-redis-cluster","tags":["google-cloud","redis","cluster","gcp","client-library"],"install":[{"cmd":"pip install google-cloud-redis-cluster","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Authentication required for API calls","package":"google-auth","optional":false},{"reason":"Core Google Cloud library","package":"google-cloud-core","optional":false}],"imports":[{"note":"Package uses underscore in module name 'redis_cluster'","wrong":"from google.cloud.rediscluster import CloudRedisClusterClient","symbol":"CloudRedisClusterClient","correct":"from google.cloud.redis_cluster import CloudRedisClusterClient"},{"note":"Typically use the versioned import for full API surface","wrong":"import google.cloud.redis_cluster","symbol":"cloud_redis_cluster_v1","correct":"from google.cloud import redis_cluster_v1"}],"quickstart":{"code":"from google.cloud.redis_cluster import CloudRedisClusterClient\n\nclient = CloudRedisClusterClient()\n\n# List clusters in a region\nparent = \"projects/{project_id}/locations/{location}\".format(\n    project_id=os.environ.get('GOOGLE_CLOUD_PROJECT', ''),\n    location=\"us-central1\"\n)\nclusters = client.list_clusters(request={\"parent\": parent})\nprint(list(clusters))","lang":"python","description":"Initialize client and list Redis clusters. Requires GOOGLE_APPLICATION_CREDENTIALS env var or ADC."},"warnings":[{"fix":"Pin to exact version and review changelog before upgrading.","message":"The library is pre-GA (version <1.0). API surface may change without major version bumps.","severity":"gotcha","affected_versions":"<1.0"},{"fix":"Set GOOGLE_APPLICATION_CREDENTIALS to a service account key file or run 'gcloud auth application-default login'.","message":"Default credentials (ADC) must be set up via GOOGLE_APPLICATION_CREDENTIALS or gcloud auth; otherwise calls fail with 'Could not automatically determine credentials.'","severity":"gotcha","affected_versions":"all"},{"fix":"Use positional arguments or a request dict as shown in current docs.","message":"The method 'list_clusters' and others may require an explicit request object in future versions (proto-plus migration).","severity":"deprecated","affected_versions":"<=0.4.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use: from google.cloud.redis_cluster import CloudRedisClusterClient","cause":"Incorrect import path; missing '_cluster' in module name.","error":"ImportError: cannot import name 'CloudRedisClusterClient' from 'google.cloud'"},{"fix":"Grant appropriate IAM roles on the project or use a properly scoped service account.","cause":"Service account or user lacks required IAM roles (e.g., Redis Cluster Viewer).","error":"google.api_core.exceptions.PermissionDenied: 403 The caller does not have permission"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}