Skip to content

Commit

Permalink
Megan compute address purpose
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
megan07 authored and modular-magician committed Sep 4, 2019
1 parent 82d0cc1 commit daf34c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/compute_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ func GetComputeAddressApiObject(d TerraformResourceData, config *Config) (map[st
} else if v, ok := d.GetOkExists("name"); !isEmptyValue(reflect.ValueOf(nameProp)) && (ok || !reflect.DeepEqual(v, nameProp)) {
obj["name"] = nameProp
}
purposeProp, err := expandComputeAddressPurpose(d.Get("purpose"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("purpose"); !isEmptyValue(reflect.ValueOf(purposeProp)) && (ok || !reflect.DeepEqual(v, purposeProp)) {
obj["purpose"] = purposeProp
}
networkTierProp, err := expandComputeAddressNetworkTier(d.Get("network_tier"), d, config)
if err != nil {
return nil, err
Expand Down Expand Up @@ -104,6 +110,10 @@ func expandComputeAddressName(v interface{}, d TerraformResourceData, config *Co
return v, nil
}

func expandComputeAddressPurpose(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandComputeAddressNetworkTier(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}
Expand Down

0 comments on commit daf34c3

Please sign in to comment.