Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/c7n_gcp/resources/build.py: 100%

15 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-08 06:51 +0000

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"