...
1# Copyright 2022 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: core.cnrm.cloud.google.com/v1alpha1
16kind: ServiceMapping
17metadata:
18 name: cloudasset.cnrm.cloud.google.com
19 namespace: cnrm-system
20spec:
21 name: CloudAsset
22 version: v1beta1
23 serviceHostName: cloudasset.googleapis.com
24 resources:
25 - name: google_cloud_asset_folder_feed
26 kind: CloudAssetFolderFeed
27 autoGenerated: true
28 idTemplate: "folders/{{folder_id}}/feeds/{{name}}"
29 idTemplateCanBeUsedToMatchResourceName: false
30 resourceAvailableInAssetInventory: false
31 serverGeneratedIDField: name
32 resourceID:
33 targetField: name
34 hierarchicalReferences:
35 - type: folder
36 key: folderRef
37 resourceReferences:
38 - tfField: folder_id
39 key: folderRef
40 description: |-
41 The folder that this resource belongs to.
42 gvk:
43 kind: Folder
44 version: v1beta1
45 group: resourcemanager.cnrm.cloud.google.com
46 - name: google_cloud_asset_organization_feed
47 kind: CloudAssetOrganizationFeed
48 autoGenerated: true
49 idTemplate: "organizations/{{org_id}}/feeds/{{name}}"
50 idTemplateCanBeUsedToMatchResourceName: false
51 resourceAvailableInAssetInventory: false
52 serverGeneratedIDField: name
53 resourceID:
54 targetField: name
55 hierarchicalReferences:
56 - type: organization
57 key: organizationRef
58 resourceReferences:
59 - tfField: org_id
60 key: organizationRef
61 description: |-
62 The organization that this resource belongs to.
63 gvk:
64 kind: Organization
65 version: v1beta1
66 group: resourcemanager.cnrm.cloud.google.com
67 - name: google_cloud_asset_project_feed
68 kind: CloudAssetProjectFeed
69 autoGenerated: true
70 idTemplate: "projects/{{project}}/feeds/{{name}}"
71 idTemplateCanBeUsedToMatchResourceName: false
72 resourceAvailableInAssetInventory: false
73 serverGeneratedIDField: name
74 resourceID:
75 targetField: name
76 hierarchicalReferences:
77 - type: project
78 key: projectRef
79 resourceReferences:
80 - tfField: project
81 key: projectRef
82 description: |-
83 The project that this resource belongs to.
84 gvk:
85 kind: Project
86 version: v1beta1
87 group: resourcemanager.cnrm.cloud.google.com
View as plain text