diff --git a/services/google/filestore/alpha/instance_internal.go b/services/google/filestore/alpha/instance_internal.go index fb92ea48f5..9d7b028a86 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 d81ec8b230..a5f391f3ae 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 cf9e1cde53..12bed3e8c7 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 5c38ccb99e..43bdedb624 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" }