Example
To create theGCPCloudRunHandler
, pass Google service account credentials (either JSON file path or dict).
Safely fetches an attribute, dict key, or list index with a default fallback.
Fetches nested attributes safely using a path list.
Lazy initialization of the async Cloud Run client.
Closes the async client to free resources.
Extracts metadata for a Cloud Run container (image, ports, env vars, resources).
Processes a Cloud Run service object into a structured dictionary.
Fetches all Cloud Run services in a specific region.
Helper method to fetch services from a location with concurrency limits.
Lists all Cloud Run services across all supported GCP regions with summary.