diff --git a/services/google/filestore/alpha/instance_internal.go b/services/google/filestore/alpha/instance_internal.go index abfa956a2..4d52906b6 100755 --- a/services/google/filestore/alpha/instance_internal.go +++ b/services/google/filestore/alpha/instance_internal.go @@ -1674,9 +1674,7 @@ func expandInstanceNetworks(c *Client, f *InstanceNetworks, res *Instance) (map[ } m := make(map[string]interface{}) - if v, err := dcl.SelfLinkToNameExpander(f.Network); err != nil { - return nil, fmt.Errorf("error expanding Network into network: %w", err) - } else if !dcl.IsEmptyValueIndirect(v) { + if v := f.Network; !dcl.IsEmptyValueIndirect(v) { m["network"] = v } if v := f.Modes; v != nil { diff --git a/services/google/filestore/beta/instance_internal.go b/services/google/filestore/beta/instance_internal.go index c0f09b6b2..7a60bafa1 100755 --- a/services/google/filestore/beta/instance_internal.go +++ b/services/google/filestore/beta/instance_internal.go @@ -1674,9 +1674,7 @@ func expandInstanceNetworks(c *Client, f *InstanceNetworks, res *Instance) (map[ } m := make(map[string]interface{}) - if v, err := dcl.SelfLinkToNameExpander(f.Network); err != nil { - return nil, fmt.Errorf("error expanding Network into network: %w", err) - } else if !dcl.IsEmptyValueIndirect(v) { + if v := f.Network; !dcl.IsEmptyValueIndirect(v) { m["network"] = v } if v := f.Modes; v != nil { diff --git a/services/google/filestore/instance_internal.go b/services/google/filestore/instance_internal.go index b787e89bc..e4dc4f2e3 100755 --- a/services/google/filestore/instance_internal.go +++ b/services/google/filestore/instance_internal.go @@ -1674,9 +1674,7 @@ func expandInstanceNetworks(c *Client, f *InstanceNetworks, res *Instance) (map[ } m := make(map[string]interface{}) - if v, err := dcl.SelfLinkToNameExpander(f.Network); err != nil { - return nil, fmt.Errorf("error expanding Network into network: %w", err) - } else if !dcl.IsEmptyValueIndirect(v) { + if v := f.Network; !dcl.IsEmptyValueIndirect(v) { m["network"] = v } if v := f.Modes; v != nil { diff --git a/services/google/filestore/samples/basic.instance.json b/services/google/filestore/samples/basic.instance.json index 5c38ccb99..43bdedb62 100755 --- a/services/google/filestore/samples/basic.instance.json +++ b/services/google/filestore/samples/basic.instance.json @@ -24,7 +24,7 @@ ], "networks": [ { - "network": "default", + "network": "projects/{{project}}/global/networks/default", "modes": ["MODE_IPV4"], "reservedIPRange": "10.{{random_int}}.{{random_int}}.0/29" }