'List Affinity Group Types
:rtype ``list`` of :class:`CloudStackAffinityGroupTypes`'

def ex_list_affinity_group_types(self):

    result = self._sync_request(command='listAffinityGroupTypes', method='GET')
    if (not result.get('count')):
        return []
    affinity_group_types = []
    for agt in result['affinityGroupType']:
        affinity_group_types.append(CloudStackAffinityGroupType(agt['type']))
    return affinity_group_types
