Copy[
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_spacecraft_entity_mapping",
"displayName": "Space Fleet Spacecraft Entity Mapping",
"description": "Space Fleet spacecraft Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name']) && 'spacefleet:spacecraft'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:spacecraft",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_sick_bay_entity_mapping",
"displayName": "Space Fleet Sick Bay Entity Mapping",
"description": "Space Fleet Sick Bay Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name', 'spacefleet.room.name']) && 'spacefleet:sick_bay'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:sick_bay",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_bridge_entity_mapping",
"displayName": "Space Fleet Bridge Entity Mapping",
"description": "Space Fleet Bridge Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name', 'spacefleet.room.name']) && 'spacefleet:bridge'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:bridge",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_mess_hall_entity_mapping",
"displayName": "Space Fleet Mess Hall Entity Mapping",
"description": "Space Fleet Mess Hall Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name', 'spacefleet.room.name']) && 'spacefleet:mess_hall'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:mess_hall",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_intercom_entity_mapping",
"displayName": "Space Fleet Intercom Entity Mapping",
"description": "Space Fleet Intercom Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name', 'spacefleet.room.name']) && 'spacefleet:intercom'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:intercom",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_shield_entity_mapping",
"displayName": "Space Fleet Shield Entity Mapping",
"description": "Space Fleet Shield Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name', 'spacefleet.shield.id']) && 'spacefleet:shield'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:shield",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_warp_drive_entity_mapping",
"displayName": "Space Fleet Warp Drive Entity Mapping",
"description": "Space Fleet Warp Drive Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.spacecraft.name']) && 'spacefleet:warp_drive'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:warp_drive",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_torpedo_tube_entity_mapping",
"displayName": "Space Fleet Torpedo Tube Entity Mapping",
"description": "Space Fleet Torpedo Tube Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.torpedo_tube.id', 'spacefleet.spacecraft.name']) && 'spacefleet:torpedo_tube'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:torpedo_tube",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
},
{
"namespace": {
"name": "spacefleet",
"version": 1
},
"kind": "resourceMapping",
"name": "spacefleet_torpedo_entity_mapping",
"displayName": "Space Fleet Torpedo Entity Mapping",
"description": "Space Fleet Torpedo Entity Mapping",
"scopeFilter": "containsAll(resourceAttributes, ['spacefleet.torpedo_tube.id', 'spacefleet.spacecraft.name', 'spacefleet.torpedo.id']) && 'spacefleet:torpedo'.equals(getValue(resourceAttributes, 'spacefleet.type'))",
"entityType": "spacefleet:torpedo",
"mappings": [
{
"to": "attributes",
"from": "resourceAttributes.stream()"
}
]
}
]