1# Copyright The Cloud Custodian Authors.
2# SPDX-License-Identifier: Apache-2.0
3from c7n_gcp.query import QueryResourceManager, TypeInfo
4from c7n_gcp.provider import resources
5
6
7@resources.register('build')
8class CloudBuild(QueryResourceManager):
9
10 class resource_type(TypeInfo):
11 service = 'cloudbuild'
12 version = 'v1'
13 component = 'projects.builds'
14 enum_spec = ('list', 'builds[]', None)
15 scope = 'project'
16 scope_key = 'projectId'
17 name = id = "id"
18 default_report_fields = ["status", "startTime", "logUrl"]
19 permissions = ('cloudbuild.builds.list',)
20
21 # Lacking a test so can't confirm any URN.
22 urn_component = "build"