code: def get_pd_by_name(self, name):
          
          for pd in self.conn.protection_domains:
              if pd.name == name:
                  return pd
          raise KeyError("Protection Domain NAME " + name + " not found")
docs: 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