Skip to content

Commit

Permalink
Bandwidth addition to interconnect (#150)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and danawillow committed Aug 20, 2019
1 parent a1f6f28 commit e02e0c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/compute_interconnect_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ func GetComputeInterconnectAttachmentApiObject(d TerraformResourceData, config *
} else if v, ok := d.GetOkExists("description"); !isEmptyValue(reflect.ValueOf(descriptionProp)) && (ok || !reflect.DeepEqual(v, descriptionProp)) {
obj["description"] = descriptionProp
}
bandwidthProp, err := expandComputeInterconnectAttachmentBandwidth(d.Get("bandwidth"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("bandwidth"); !isEmptyValue(reflect.ValueOf(bandwidthProp)) && (ok || !reflect.DeepEqual(v, bandwidthProp)) {
obj["bandwidth"] = bandwidthProp
}
edgeAvailabilityDomainProp, err := expandComputeInterconnectAttachmentEdgeAvailabilityDomain(d.Get("edge_availability_domain"), d, config)
if err != nil {
return nil, err
Expand Down Expand Up @@ -108,6 +114,10 @@ func expandComputeInterconnectAttachmentDescription(v interface{}, d TerraformRe
return v, nil
}

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

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

0 comments on commit e02e0c2

Please sign in to comment.