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

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

17 statements  

1# Copyright The Cloud Custodian Authors. 

2# SPDX-License-Identifier: Apache-2.0 

3from c7n_gcp.provider import resources 

4from c7n_gcp.query import QueryResourceManager, TypeInfo 

5 

6 

7@resources.register('patch-deployment') 

8class PatchDeployment(QueryResourceManager): 

9 """ GC resource: https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.patchDeployments""" 

10 class resource_type(TypeInfo): 

11 service = 'osconfig' 

12 version = 'v1' 

13 component = 'projects.patchDeployments' 

14 enum_spec = ('list', 'patchDeployments[]', None) 

15 scope_key = 'parent' 

16 name = id = 'name' 

17 scope_template = 'projects/{}' 

18 default_report_fields = ['name', 'description', 'createTime', 'state', 'rollout.mode'] 

19 asset_type = 'osconfig.googleapis.com/PatchDeployment' 

20 urn_component = "patchDeployment" 

21 urn_id_path = "name" 

22 urn_id_segments = (-1,)