(attributes ResourceAttributes)
| 192 | } |
| 193 | |
| 194 | func (h testResourceHandler) externalID(attributes ResourceAttributes) optional.String { |
| 195 | if eID, ok := attributes["externalId"]; ok { |
| 196 | externalID, ok := eID.(string) |
| 197 | if !ok { |
| 198 | return optional.String{} |
| 199 | } |
| 200 | return optional.NewString(externalID) |
| 201 | } |
| 202 | |
| 203 | return optional.String{} |
| 204 | } |
| 205 | |
| 206 | func (h testResourceHandler) noContentOperation(id string, op PatchOperation) bool { |
| 207 | isRemoveOp := strings.EqualFold(op.Op, PatchOperationRemove) |