Scott,
I tried with couple of options. I am posting all of them here with respective error messages.. i am missing something here..
Let me know if any additional details required.
-------attempt1------
network_test_param_objtx = NetworkThroughputTestParameters()
network_test_param_objtx.remoteHost = "host1"
try:
throughput.create(dx_session_obj.server_session,network_test_param_objtx)
ERROR: #'The field "{0}" is required.'
------attempt2------------
hst = Host()
hst.address = "host1"
network_test_param_objtx = NetworkThroughputTestParameters()
network_test_param_objtx.remoteHost = hst
try:
throughput.create(dx_session_obj.server_session,network_test_param_objtx)
ERROR: #'The field "{0}" is required.'
--------attempt3-------------------------
network_test_param_objtx = NetworkThroughputTestParameters()
network_test_param_objtx.remote_host = "host1"
try:
throughput.create(dx_session_obj.server_session,network_test_param_objtx)
ERROR:The provided string "host1" is not a valid object reference.'
================
definition of remote_host in NetworkThroughputTestParameters.py; expects string value, but validates against objectReference.
---------
if obj._remote_host[0] is not None and obj._remote_host[0] is not obj.__undef__:
assert isinstance(obj._remote_host[0], basestring), ("Expected one of [u'string'], but got %s" % type(obj._remote_host[0]))
common.validate_format(obj._remote_host[0], "objectReference", None, None)
---------