|
|
|
@ -26,6 +26,11 @@ func resourceComputeFirewall() *schema.Resource {
|
|
|
|
ForceNew: true,
|
|
|
|
ForceNew: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"description": &schema.Schema{
|
|
|
|
|
|
|
|
Type: schema.TypeString,
|
|
|
|
|
|
|
|
Optional: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"network": &schema.Schema{
|
|
|
|
"network": &schema.Schema{
|
|
|
|
Type: schema.TypeString,
|
|
|
|
Type: schema.TypeString,
|
|
|
|
Required: true,
|
|
|
|
Required: true,
|
|
|
|
@ -306,6 +311,7 @@ func resourceFirewall(
|
|
|
|
// Build the firewall parameter
|
|
|
|
// Build the firewall parameter
|
|
|
|
return &compute.Firewall{
|
|
|
|
return &compute.Firewall{
|
|
|
|
Name: d.Get("name").(string),
|
|
|
|
Name: d.Get("name").(string),
|
|
|
|
|
|
|
|
Description: d.Get("description").(string),
|
|
|
|
Network: network.SelfLink,
|
|
|
|
Network: network.SelfLink,
|
|
|
|
Allowed: allowed,
|
|
|
|
Allowed: allowed,
|
|
|
|
SourceRanges: sourceRanges,
|
|
|
|
SourceRanges: sourceRanges,
|
|
|
|
|