MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/terraform-google-conversion

github.com/GoogleCloudPlatform/terraform-google-conversion @v7.37.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v7.37.0 ↗ · + Follow
40,736 symbols 115,133 edges 2,301 files 770 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

terraform-google-conversion

terraform-google-conversion is a Golang library which provides functions convert between Terraform resource data and Google Cloud Platform's native API inventory format, as described by the Cloud Asset Inventory.

The library is generated using Magic Modules.

Disclaimer

This is not an officially supported Google product.

Extension points exported contracts — how you extend this code

Cai2hclConverter (Interface)
Converter interface for resources. [223 implementers]
pkg/cai2hcl/models/converter.go
Converter (Interface)
Converter interface for resources. [223 implementers]
cai2hcl/common/converter.go
AncestryManager (Interface)
AncestryManager is the interface that fetch ancestors for a resource. [2 implementers]
pkg/tfplan2cai/ancestrymanager/ancestrymanager.go
AncestryManager (Interface)
AncestryManager is the interface that fetch ancestors for a resource. [2 implementers]
tfplan2cai/ancestrymanager/ancestrymanager.go
TerraformResourceData (Interface)
(no doc) [2 implementers]
pkg/tpgresource/utils.go
BatcherCombineFunc (FuncType)
BatcherCombineFunc is a function type for combine existing batches and additional batch data
pkg/transport/batcher.go
FetchFullResourceFunc (FuncType)
FetchFullResourceFunc allows initial data for a resource to be fetched from the API and merged with the planned changes.
tfplan2cai/converters/google/resources/cai/cai.go
FetchFullResourceFunc (FuncType)
FetchFullResourceFunc allows initial data for a resource to be fetched from the API and merged with the planned changes.
pkg/tfplan2cai/converters/cai/resource_converter.go

Core symbols most depended-on inside this repo

Get
called by 7316
pkg/tpgresource/utils.go
GetOkExists
called by 6711
pkg/tpgresource/utils.go
IsEmptyValue
called by 5430
pkg/tpgresource/utils.go
AllValuesAreNil
called by 1024
pkg/tgcresource/utils.go
AssetName
called by 982
tfplan2cai/converters/google/resources/cai/cai.go
Set
called by 694
pkg/tpgresource/utils.go
GetOk
called by 650
pkg/tpgresource/utils.go
StringToFixed64
called by 576
pkg/tpgresource/utils.go

Shape

Function 38,894
Method 1,331
Struct 487
FuncType 11
Interface 7
TypeAlias 6

Languages

Go100%

Modules by API surface

tfplan2cai/converters/google/resources/services/datalossprevention/datalossprevention_deidentify_template.go548 symbols
tfplan2cai/converters/google/resources/services/chronicle/chronicle_feed.go547 symbols
tfplan2cai/converters/google/resources/services/compute/compute_url_map.go476 symbols
pkg/services/compute/compute_url_map_cai2hcl.go465 symbols
pkg/services/compute/compute_url_map_tfplan2cai.go464 symbols
tfplan2cai/converters/google/resources/services/datastream/datastream_stream.go344 symbols
tfplan2cai/converters/google/resources/services/oracledatabase/oracledatabase_goldengate_connection.go335 symbols
tfplan2cai/converters/google/resources/services/compute/compute_region_url_map.go312 symbols
pkg/services/compute/compute_region_url_map_tfplan2cai.go308 symbols
pkg/services/compute/compute_region_url_map_cai2hcl.go308 symbols
pkg/services/datastream/datastream_stream_tfplan2cai.go281 symbols
pkg/services/datastream/datastream_stream_cai2hcl.go281 symbols

For agents

$ claude mcp add terraform-google-conversion \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page