How to list Dataproc operations in `google-cloud-dataproc` client
How to list Dataproc operations in `google-cloud-dataproc` client Question: I am looking for a way to do something similar to CLI’s gcloud dataproc operations list –filter "…". The minimal code example: from google.cloud import dataproc_v1 region = ‘us-west1’ client_options = {"api_endpoint": f"{region}-dataproc.googleapis.com:443"} dataproc_cluster_client = dataproc_v1.ClusterControllerClient(client_options=client_options) def list_operations(dataproc_cluster_client, region): for op in dataproc_cluster_client.list_operations( request={"filter": f"operationType = …