update_evaluator_configuration#
- RmsApi.update_evaluator_configuration(id, configuration, as_object=True)#
Update an evaluator configuration.
- Return type:
Examples
Set a custom resource property on a Linux evaluator that was active in the past 60 seconds.
>>> import datetime >>> from ansys.hps.client import Client >>> from ansys.hps.client.jms import RmsApi, EvaluatorConfigurationUpdate >>> cl = Client( ... url="https://localhost:8443/hps", username="repuser", password="repuser" ... ) >>> rms_api = RmsApi(cl) >>> query_params = { ... "platform" : "linux", ... "update_time.gt" : datetime.datetime.utcnow() - datetime.timedelta(seconds=60) ... } >>> evaluator = rms_api.get_evaluators(fields=["id", "host_id"], **query_params)[0] >>> config_update = EvaluatorConfigurationUpdate( ... custom_resource_properties={"disk_type" : "SSD"} ... ) >>> rms_api.update_evaluator_configuration(ev.id, config_update)