Skip to content

Commit

Permalink
Fix import issue for Dataplex Datascan (GoogleCloudPlatform#8578)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh-net authored and joelkattapuram committed Sep 20, 2023
1 parent 1fc96c3 commit d8f4736
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions mmv1/products/dataplex/Datascan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ properties:
- !ruby/object:Api::Type::NestedObject
name: 'dataProfileResult'
output: true
custom_flatten: templates/terraform/custom_flatten/dataplex_datascan_ignore_profile_result.go.erb
description: |
The result of the data profile scan.
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<%# The license inside this block applies to this file.
# Copyright 2022 Google Inc.
# 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.
-%>
func flatten<%= prefix -%><%= titlelize_property(property) -%>(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
// We want to ignore read on this field, but cannot because it is nested
return nil
}

0 comments on commit d8f4736

Please sign in to comment.