7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66,storage/cloud-client/iam_test.py,,bucket,#,35

Before Change


    bucket = None
    while bucket is None or bucket.exists():
        bucket_name = "test-iam-{}".format(uuid.uuid4())
        bucket = storage.Client().bucket(bucket_name)
    bucket.create()
    bucket.iam_configuration.uniform_bucket_level_access_enabled = True
    bucket.patch()
    yield bucket

After Change


def bucket():
    bucket = None
    while bucket is None or bucket.exists():
        storage_client = storage.Client()
        bucket_name = "test-iam-{}".format(uuid.uuid4())
        bucket = storage_client.bucket(bucket_name)
        bucket.iam_configuration.uniform_bucket_level_access_enabled = True
    storage_client.create_bucket(bucket)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66
Time: 2020-03-19
Author: frankyn@users.noreply.github.com
File Name: storage/cloud-client/iam_test.py
Class Name:
Method Name: bucket


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 646012c26db9335f69216c5d8656090c4211f323
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/bucket_lock_test.py
Class Name:
Method Name: bucket


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6c7f63e58534ff60c524324a1cf8628c838df772
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/uniform_bucket_level_access_test.py
Class Name:
Method Name: bucket