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


    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]

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

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: wait_for_job


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