Skip to content

Commit

Permalink
Implement Filestore Instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson authored and modular-magician committed Sep 20, 2018
1 parent 80e03f7 commit 17d7e5c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions google/resource_redis_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ func resourceRedisInstanceCreate(d *schema.ResourceData, meta interface{}) error
} else if v, ok := d.GetOkExists("tier"); !isEmptyValue(reflect.ValueOf(tierProp)) && (ok || !reflect.DeepEqual(v, tierProp)) {
obj["tier"] = tierProp
}
regionProp, err := expandRedisInstanceRegion(d.Get("region"), d, config)
if err != nil {
return err
} else if v, ok := d.GetOkExists("region"); !isEmptyValue(reflect.ValueOf(regionProp)) && (ok || !reflect.DeepEqual(v, regionProp)) {
obj["region"] = regionProp
}

obj, err = resourceRedisInstanceEncoder(d, meta, obj)
if err != nil {
Expand Down Expand Up @@ -410,12 +404,6 @@ func resourceRedisInstanceUpdate(d *schema.ResourceData, meta interface{}) error
} else if v, ok := d.GetOkExists("tier"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, tierProp)) {
obj["tier"] = tierProp
}
regionProp, err := expandRedisInstanceRegion(d.Get("region"), d, config)
if err != nil {
return err
} else if v, ok := d.GetOkExists("region"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, regionProp)) {
obj["region"] = regionProp
}

obj, err = resourceRedisInstanceEncoder(d, meta, obj)

Expand Down Expand Up @@ -673,10 +661,6 @@ func expandRedisInstanceTier(v interface{}, d *schema.ResourceData, config *Conf
return v, nil
}

func expandRedisInstanceRegion(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
return v, nil
}

func resourceRedisInstanceEncoder(d *schema.ResourceData, meta interface{}, obj map[string]interface{}) (map[string]interface{}, error) {
delete(obj, "region")
return obj, nil
Expand Down

0 comments on commit 17d7e5c

Please sign in to comment.