...
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: bigquery.cnrm.cloud.google.com
19 namespace: cnrm-system
20spec:
21 name: BigQuery
22 version: v1beta1
23 serviceHostName: bigquery.googleapis.com
24 resources:
25 - name: google_bigquery_dataset
26 kind: BigQueryDataset
27 autoGenerated: true
28 idTemplate: "projects/{{project}}/datasets/{{dataset_id}}"
29 idTemplateCanBeUsedToMatchResourceName: false
30 resourceAvailableInAssetInventory: false
31 metadataMapping:
32 name: dataset_id
33 labels: labels
34 resourceID:
35 targetField: dataset_id
36 hierarchicalReferences:
37 - type: project
38 key: projectRef
39 resourceReferences:
40 - tfField: project
41 key: projectRef
42 description: |-
43 The project that this resource belongs to.
44 gvk:
45 kind: Project
46 version: v1beta1
47 group: resourcemanager.cnrm.cloud.google.com
48 - name: google_bigquery_dataset_access
49 kind: BigQueryDatasetAccess
50 autoGenerated: true
51 idTemplate: "projects/{{project}}/datasets/{{dataset_id}}/{{role}}/{{user_by_email}}/{{group_by_email}}/{{domain}}/{{special_group}}/{{iam_member}}/{{view}}/{{dataset}}/{{routine}}"
52 idTemplateCanBeUsedToMatchResourceName: false
53 resourceAvailableInAssetInventory: false
54 metadataMapping:
55 name: routine
56 resourceID:
57 targetField: routine
58 hierarchicalReferences:
59 - type: project
60 key: projectRef
61 resourceReferences:
62 - tfField: project
63 key: projectRef
64 description: |-
65 The project that this resource belongs to.
66 gvk:
67 kind: Project
68 version: v1beta1
69 group: resourcemanager.cnrm.cloud.google.com
70 - name: google_bigquery_job
71 kind: BigQueryJob
72 autoGenerated: true
73 idTemplate: "projects/{{project}}/jobs/{{job_id}}/location/{{location}}"
74 idTemplateCanBeUsedToMatchResourceName: false
75 resourceAvailableInAssetInventory: false
76 metadataMapping:
77 name: job_id
78 resourceID:
79 targetField: job_id
80 hierarchicalReferences:
81 - type: project
82 key: projectRef
83 resourceReferences:
84 - tfField: project
85 key: projectRef
86 description: |-
87 The project that this resource belongs to.
88 gvk:
89 kind: Project
90 version: v1beta1
91 group: resourcemanager.cnrm.cloud.google.com
92 - name: google_bigquery_routine
93 kind: BigQueryRoutine
94 autoGenerated: true
95 idTemplate: "projects/{{project}}/datasets/{{dataset_id}}/routines/{{routine_id}}"
96 idTemplateCanBeUsedToMatchResourceName: false
97 resourceAvailableInAssetInventory: false
98 metadataMapping:
99 name: routine_id
100 resourceID:
101 targetField: routine_id
102 hierarchicalReferences:
103 - type: project
104 key: projectRef
105 resourceReferences:
106 - tfField: project
107 key: projectRef
108 description: |-
109 The project that this resource belongs to.
110 gvk:
111 kind: Project
112 version: v1beta1
113 group: resourcemanager.cnrm.cloud.google.com
114 - key: datasetRef
115 tfField: dataset_id
116 description: |-
117 The ID of the dataset containing this routine.
118 gvk:
119 kind: BigQueryDataset
120 version: v1beta1
121 group: bigquery.cnrm.cloud.google.com
View as plain text