32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285,spanner/cloud-client/backup_sample_test.py,,unique_backup_id,#,35

Before Change



def unique_backup_id():
     Creates a unique id for the backup. 
    return "test-backup-{}".format("".join(random.choice(
        string.ascii_lowercase + string.digits) for _ in range(5)))


INSTANCE_ID = unique_instance_id()
DATABASE_ID = unique_database_id()

After Change



def unique_backup_id():
     Creates a unique id for the backup. 
    return f"test-backup-{uuid.uuid4().hex[:10]}"


INSTANCE_ID = unique_instance_id()
DATABASE_ID = unique_database_id()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 13

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_backup_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_backup_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/snippets_test.py
Class Name:
Method Name: unique_database_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_database_id


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32f6dcc5b59f7b1778011a82ccbeb9cc07cdb285
Time: 2020-06-29
Author: tmatsuo@google.com
File Name: spanner/cloud-client/backup_sample_test.py
Class Name:
Method Name: unique_instance_id