import google.auth
from google.cloud.devtools import cloudbuild_v1
def quickstart():
"""Create and execute a simple Google Cloud Build configuration,
print the in-progress status and print the completed status."""
credentials, project_id = google.auth.default()
client = cloudbuild_v1.services.cloud_build.CloudBuildClient()
build = cloudbuild_v1.Build()
build.steps = [{"name": "ubuntu",
"entrypoint": "bash",
"args": ["-c", "echo hello world"]}]
operation = client.create_build(project_id=project_id, build=build)
print("IN PROGRESS:")
print(operation.metadata)
result = operation.result()
print("RESULT:", result.status)