SetParentID set parent id of the resource
(id string)
| 53 | |
| 54 | //SetParentID set parent id of the resource |
| 55 | func (resource *Resource) SetParentID(id string) { |
| 56 | schema := resource.schema |
| 57 | if schema.Parent != "" { |
| 58 | resource.properties[schema.Parent+"_id"] = id |
| 59 | resource.parentID = id |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | //Path generate path for this resource |
| 64 | func (resource *Resource) Path() string { |
no outgoing calls
no test coverage detected