Create object resource and provider