...
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: firebasehosting.cnrm.cloud.google.com
19 namespace: cnrm-system
20spec:
21 name: FirebaseHosting
22 version: v1beta1
23 serviceHostName: firebasehosting.googleapis.com
24 resources:
25 - name: google_firebase_hosting_channel
26 kind: FirebaseHostingChannel
27 autoGenerated: true
28 idTemplate: "sites/{{site_id}}/channels/{{channel_id}}"
29 idTemplateCanBeUsedToMatchResourceName: false
30 resourceAvailableInAssetInventory: false
31 metadataMapping:
32 name: channel_id
33 labels: labels
34 resourceID:
35 targetField: channel_id
36 - name: google_firebase_hosting_release
37 kind: FirebaseHostingRelease
38 autoGenerated: true
39 idTemplate: "sites/{{site_id}}/channels/{{channel_id}}/releases/{{release_id}}"
40 idTemplateCanBeUsedToMatchResourceName: false
41 resourceAvailableInAssetInventory: false
42 metadataMapping:
43 name: release_id
44 resourceID:
45 targetField: release_id
46 resourceReferences:
47 - key: versionNameRef
48 tfField: version_name
49 gvk:
50 kind: FirebaseHostingVersion
51 version: v1beta1
52 group: firebasehosting.cnrm.cloud.google.com
53 targetField: name
54 parent: true
55 - name: google_firebase_hosting_site
56 kind: FirebaseHostingSite
57 autoGenerated: true
58 idTemplate: "projects/{{project}}/sites/{{site_id}}"
59 idTemplateCanBeUsedToMatchResourceName: false
60 resourceAvailableInAssetInventory: false
61 metadataMapping:
62 name: site_id
63 resourceID:
64 targetField: site_id
65 hierarchicalReferences:
66 - type: project
67 key: projectRef
68 resourceReferences:
69 - tfField: project
70 key: projectRef
71 description: |-
72 The project that this resource belongs to.
73 gvk:
74 kind: Project
75 version: v1beta1
76 group: resourcemanager.cnrm.cloud.google.com
77 - name: google_firebase_hosting_version
78 kind: FirebaseHostingVersion
79 autoGenerated: true
80 idTemplate: "sites/{{site_id}}/versions/{{version_id}}"
81 idTemplateCanBeUsedToMatchResourceName: false
82 resourceAvailableInAssetInventory: false
83 metadataMapping:
84 name: version_id
85 resourceID:
86 targetField: version_id
View as plain text