Skip to content

Commit

Permalink
bigquerydatapolicy: support routine (#10388)
Browse files Browse the repository at this point in the history
[upstream:b3de1c9d61d88c9f176730f547164a607b53e139]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Apr 17, 2024
1 parent a2ba5c4 commit fcd38a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/hashicorp/hcl/v2 v2.19.1
github.com/hashicorp/terraform-json v0.21.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20240416224441-33ea4b6e8244
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20240417154639-db07898a3ced
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ github.com/hashicorp/terraform-plugin-mux v0.15.0 h1:+/+lDx0WUsIOpkAmdwBIoFU8UP9
github.com/hashicorp/terraform-plugin-mux v0.15.0/go.mod h1:9ezplb1Dyq394zQ+ldB0nvy/qbNAz3mMoHHseMTMaKo=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20240416224441-33ea4b6e8244 h1:4TeDoag1RD8ZdinlehYep+F+8WwjlvxM2zwLZke4oZA=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20240416224441-33ea4b6e8244/go.mod h1:OGg+gykjRwc0c1aGJg9W271SaG3x6JZRFSCVcYhYJe0=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20240417154639-db07898a3ced h1:/CvCLLapsIpi9IWAM8txB/PNx+6f8m3MFGmMpH0RA8g=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20240417154639-db07898a3ced/go.mod h1:OGg+gykjRwc0c1aGJg9W271SaG3x6JZRFSCVcYhYJe0=
github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI=
github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM=
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,20 @@ func expandBigqueryDatapolicyDataPolicyDataMaskingPolicy(v interface{}, d tpgres
transformed["predefinedExpression"] = transformedPredefinedExpression
}

transformedRoutine, err := expandBigqueryDatapolicyDataPolicyDataMaskingPolicyRoutine(original["routine"], d, config)
if err != nil {
return nil, err
} else if val := reflect.ValueOf(transformedRoutine); val.IsValid() && !tpgresource.IsEmptyValue(val) {
transformed["routine"] = transformedRoutine
}

return transformed, nil
}

func expandBigqueryDatapolicyDataPolicyDataMaskingPolicyPredefinedExpression(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) {
return v, nil
}

func expandBigqueryDatapolicyDataPolicyDataMaskingPolicyRoutine(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) {
return v, nil
}

0 comments on commit fcd38a3

Please sign in to comment.