Updated resource update operation code to replace

- When updating a resource operation we now replace an existing
  operation with the same name instead of always adding a new operation