Skip to content

Instantly share code, notes, and snippets.

@jphalip
Created February 13, 2018 21:53
Show Gist options
  • Save jphalip/c0409e5b3e898898ce7706eb48b83950 to your computer and use it in GitHub Desktop.
Save jphalip/c0409e5b3e898898ce7706eb48b83950 to your computer and use it in GitHub Desktop.
Forwarding rule data source's schema
Schema: map[string]*schema.Schema{
"name": &schema.Schema{
Type: schema.TypeString,
Required: true,
},
"region": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"project": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"target": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"backend_service": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"description": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"ip_address": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"ip_protocol": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"load_balancing_scheme": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"network": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"port_range": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"ports": &schema.Schema{
Type: schema.TypeSet,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
},
"self_link": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"subnetwork": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment