1bddafd3102e4e0841d78673581c3ead8f68a7c8,dataproc/list_clusters.py,,list_clusters,#,23
Before Change
// [START dataproc_list_clusters]
def list_clusters(dataproc, project, region):
result = dataproc.projects().regions().clusters().list(
projectId=project,
region=region).execute()
return result
// [END dataproc_list_clusters]
After Change
def list_clusters(dataproc, project, region):
List the details of clusters in the region.
for cluster in dataproc.list_clusters(project, region):
print(("{} - {}".format(cluster.cluster_name,
cluster.status.State.Name(
cluster.status.state))))
// [END dataproc_list_clusters]
def main(project_id, region):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 1bddafd3102e4e0841d78673581c3ead8f68a7c8
Time: 2019-05-20
Author: amancuso@google.com
File Name: dataproc/list_clusters.py
Class Name:
Method Name: list_clusters
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 1bddafd3102e4e0841d78673581c3ead8f68a7c8
Time: 2019-05-20
Author: amancuso@google.com
File Name: dataproc/submit_job_to_cluster.py
Class Name:
Method Name: list_clusters_with_details
Project Name: numerai/submission-criteria
Commit Name: 4707229d41b18ac74ff186bf9a6874035c378719
Time: 2017-11-10
Author: xander@numer.ai
File Name: common.py
Class Name:
Method Name: update_loglosses