Gets a list of anti-affinity policies within a given account.

		https://t3n.zendesk.com/entries/44657214-Get-Anti-Affinity-Policies

		>>> clc.v2.AntiAffinity.GetAll()
		[<clc.APIv2.anti_affinity.AntiAffinity object at 0x10c65e910>, <clc.APIv2.anti_affinity.AntiAffinity object at 0x10c65ec90>]

def GetAll(alias=None,location=None,session=None):
		"""Gets a list of anti-affinity policies within a given account.

		https://t3n.zendesk.com/entries/44657214-Get-Anti-Affinity-Policies

		>>> clc.v2.AntiAffinity.GetAll()
		[<clc.APIv2.anti_affinity.AntiAffinity object at 0x10c65e910>, <clc.APIv2.anti_affinity.AntiAffinity object at 0x10c65ec90>]

		"""
		if not alias:  alias = clc.v2.Account.GetAlias(session=session)

		policies = []
		policy_resp = clc.v2.API.Call('GET','antiAffinityPolicies/%s' % alias,{},session=session)
		for k in policy_resp:
			r_val = policy_resp[k]
			for r in r_val:
				if r.get('location'):
					if location and r['location'].lower()!=location.lower():  continue
					servers = [obj['id'] for obj in r['links'] if obj['rel'] == "server"]
					policies.append(AntiAffinity(id=r['id'],name=r['name'],location=r['location'],servers=servers,session=session))

		return(policies)