Skip to content

Commit

Permalink
Move tgc handwritten resource converters to specific service packages…
Browse files Browse the repository at this point in the history
… (#11864) (#2890)

[upstream:7549040e0ccca64fcc2acdb964cd541a4376f88f]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 3, 2024
1 parent 44a352f commit 2b54e54
Show file tree
Hide file tree
Showing 43 changed files with 221 additions and 305 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.20.1
github.com/hashicorp/terraform-json v0.22.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241003160821-6c15720a9a02
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241003174638-e8bcfecbdafc
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A=
github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c=
github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241003160821-6c15720a9a02 h1:+g6tF2/hAiFY5WOraQZDEpq5Ci/afvIugnnBfV34F54=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241003160821-6c15720a9a02/go.mod h1:0LymWybO9dJ38EJdzzbUKO9LaYBgoJsR/gKVAP+8hr8=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241003174638-e8bcfecbdafc h1:FkdivL8jWkkVIK6sZjqsxsj08nkpBDleCOWyh9d7AvQ=
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241003174638-e8bcfecbdafc/go.mod h1:0LymWybO9dJ38EJdzzbUKO9LaYBgoJsR/gKVAP+8hr8=
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
9 changes: 9 additions & 0 deletions tfplan2cai/converters/google/resources/cai/string_helpers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cai

func ConvertInterfaceToStringArray(values []interface{}) []string {
stringArray := make([]string, len(values))
for i, v := range values {
stringArray[i] = v.(string)
}
return stringArray
}
105 changes: 0 additions & 105 deletions tfplan2cai/converters/google/resources/firebase_project.go

This file was deleted.

Loading

0 comments on commit 2b54e54

Please sign in to comment.