Get ScaleIO ProtectionDomain object by its name
        :param name: Name of ProtectionDomain
        :return: ScaleIO ProtectionDomain object
        :raise KeyError: No ProtetionDomain with specified name found
        :rtype: ProtectionDomain object

def get_pd_by_name(self, name):
        """
        Get ScaleIO ProtectionDomain object by its name
        :param name: Name of ProtectionDomain
        :return: ScaleIO ProtectionDomain object
        :raise KeyError: No ProtetionDomain with specified name found
        :rtype: ProtectionDomain object
        """
        for pd in self.conn.protection_domains:
            if pd.name == name:
                return pd
        raise KeyError("Protection Domain NAME " + name + " not found")