vsphere/host_nas_volume_structure.go
func flattenHostNasVolume(d *schema.ResourceData, obj *types.HostNasVolume) error {
	d.Set("remote_path", obj.RemotePath)
	d.Set("security_type", obj.SecurityType)
	d.Set("protocol_endpoint", obj.ProtocolEndpoint)

	if err := d.Set("remote_hosts", obj.RemoteHostNames); err != nil {
		return err
	}
	return nil
}
func flattenHostNasVolume(d *schema.ResourceData, obj *types.HostNasVolume) error {
	d.Set("remote_path", obj.RemotePath)
	d.Set("security_type", obj.SecurityType)
	d.Set("protocol_endpoint", obj.ProtocolEndpoint)

	if err := d.Set("remote_hosts", obj.RemoteHostNames); err != nil {
		return err
	}
	return nil
}
// flattenHostNasVolume reads various fields from a HostNasVolume into the
// passed in ResourceData.
//
// Note the name attribute is not set here, bur rather set in
// flattenDatastoreSummary and sourced from there.