2020-05-02 08:33:48 -07:00
|
|
|
/**
|
2022-01-01 06:52:31 -08:00
|
|
|
* Copyright 2022 Google LLC
|
2020-05-02 08:33:48 -07:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
output "dataset" {
|
|
|
|
description = "Dataset resource."
|
|
|
|
value = google_bigquery_dataset.default
|
|
|
|
}
|
|
|
|
|
|
|
|
output "dataset_id" {
|
2020-05-03 06:10:36 -07:00
|
|
|
description = "Dataset id."
|
2020-05-02 08:33:48 -07:00
|
|
|
value = google_bigquery_dataset.default.dataset_id
|
2020-05-03 06:10:36 -07:00
|
|
|
depends_on = [
|
|
|
|
google_bigquery_dataset_access.domain,
|
|
|
|
google_bigquery_dataset_access.group_by_email,
|
|
|
|
google_bigquery_dataset_access.special_group,
|
|
|
|
google_bigquery_dataset_access.user_by_email,
|
|
|
|
google_bigquery_dataset_access.views
|
|
|
|
]
|
2020-05-02 08:33:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "id" {
|
2020-05-03 06:10:36 -07:00
|
|
|
description = "Fully qualified dataset id."
|
2020-05-02 08:33:48 -07:00
|
|
|
value = google_bigquery_dataset.default.id
|
2020-05-03 06:10:36 -07:00
|
|
|
depends_on = [
|
|
|
|
google_bigquery_dataset_access.domain,
|
|
|
|
google_bigquery_dataset_access.group_by_email,
|
|
|
|
google_bigquery_dataset_access.special_group,
|
|
|
|
google_bigquery_dataset_access.user_by_email,
|
|
|
|
google_bigquery_dataset_access.views
|
|
|
|
]
|
2020-05-02 08:33:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "self_link" {
|
|
|
|
description = "Dataset self link."
|
|
|
|
value = google_bigquery_dataset.default.self_link
|
2020-05-03 06:10:36 -07:00
|
|
|
depends_on = [
|
|
|
|
google_bigquery_dataset_access.domain,
|
|
|
|
google_bigquery_dataset_access.group_by_email,
|
|
|
|
google_bigquery_dataset_access.special_group,
|
|
|
|
google_bigquery_dataset_access.user_by_email,
|
|
|
|
google_bigquery_dataset_access.views
|
|
|
|
]
|
2020-05-02 08:33:48 -07:00
|
|
|
}
|
|
|
|
|
2020-05-03 06:10:36 -07:00
|
|
|
output "table_ids" {
|
|
|
|
description = "Map of fully qualified table ids keyed by table ids."
|
|
|
|
value = { for k, v in google_bigquery_table.default : v.table_id => v.id }
|
|
|
|
}
|
|
|
|
|
2021-10-08 09:26:04 -07:00
|
|
|
output "tables" {
|
|
|
|
description = "Table resources."
|
|
|
|
value = google_bigquery_table.default
|
2020-05-02 08:33:48 -07:00
|
|
|
}
|
2020-05-03 06:10:36 -07:00
|
|
|
|
|
|
|
output "view_ids" {
|
|
|
|
description = "Map of fully qualified view ids keyed by view ids."
|
|
|
|
value = { for k, v in google_bigquery_table.views : v.table_id => v.id }
|
|
|
|
}
|
2021-10-08 09:26:04 -07:00
|
|
|
|
|
|
|
output "views" {
|
|
|
|
description = "View resources."
|
|
|
|
value = google_bigquery_table.views
|
|
|
|
}
|