#NEWLINE# def build_spt_add_task_resource( self ) : #NEWLINE# #INDENT# task = { #NEWLINE# #INDENT# 'type' : 'TaskResourceV2' , #NEWLINE# 'taskType' : 'User' , #NEWLINE# 'stateReason' : 'Completed' , #NEWLINE# 'associatedResource' : { #NEWLINE# #INDENT# 'resourceUri' : '/rest/server-profile-templates/bc9b8b32' , #NEWLINE# 'resourceCategory' : 'server-profile-templates' , #NEWLINE# 'associationType' : 'MANAGED_BY' , #NEWLINE# 'resourceName' : '' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'hidden' : False , #NEWLINE# 'category' : 'tasks' , #NEWLINE# 'data' : None , #NEWLINE# 'percentComplete' : 100 , #NEWLINE# 'taskState' : 'Completed' , #NEWLINE# 'taskStatus' : 'Created server profile template:' , #NEWLINE# 'taskErrors' : [ ] , #NEWLINE# 'parentTaskUri' : None , #NEWLINE# 'taskOutput' : [ ] , #NEWLINE# 'associatedTaskUri' : None , #NEWLINE# 'completedSteps' : 0 , #NEWLINE# 'computedPercentComplete' : 100 , #NEWLINE# 'expectedDuration' : 0 , #NEWLINE# 'progressUpdates' : [ ] , #NEWLINE# 'totalSteps' : 0 , #NEWLINE# 'userInitiated' : False , #NEWLINE# 'name' : 'Create ' , #NEWLINE# 'owner' : 'Administrator' , #NEWLINE# 'eTag' : '3' , #NEWLINE# 'uri' : '/rest/tasks/339A4D47-757B-4425-8495-6ECFCFEF88B5' , #NEWLINE# #UNINDENT# } #NEWLINE# return json . dumps ( self )