Documentation
¶
Index ¶
- func DecodeJSON(data map[string]interface{}, v interface{}) error
- func MapToCtyValWithSchema(m map[string]interface{}, s map[string]*schema.Schema) (cty.Value, error)
- func NewConfig() *transport_tpg.Config
- func ParseFieldValue(url string, name string) string
- func RemoveTerraformAttributionLabel(raw interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSON ¶
DecodeJSON decodes the map object into the target struct.
func MapToCtyValWithSchema ¶
func MapToCtyValWithSchema(m map[string]interface{}, s map[string]*schema.Schema) (cty.Value, error)
MapToCtyValWithSchema normalizes and converts resource from untyped map format to TF JSON.
Normalization is a post-processing of the output map, which does the following: * Converts unmarshallable "schema.Set" to marshallable counterpart. * Strips out properties, which are not part ofthe resource TF schema.
func NewConfig ¶
func NewConfig() *transport_tpg.Config
func ParseFieldValue ¶
ParseFieldValue extracts named part from resource url.
func RemoveTerraformAttributionLabel ¶
func RemoveTerraformAttributionLabel(raw interface{}) interface{}
Remove the Terraform attribution label "goog-terraform-provisioned" from labels
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.