def put(self, context, resources, id, request_data):
"""
Update existing resource variables, or create if it does
not exist.
"""
obj = dbapi.variables_update_by_resource_id(
context, resources, id, request_data
)
resp = {"variables": jsonutils.to_primitive(obj.variables)}
return resp, 200, None
评论列表
文章目录