code: def get_by_name(self, name):
          
          managed_sans = self.get_all()
          result = [x for x in managed_sans if x['name'] == name]
  
          resource = result[0] if result else None
          if resource:
              resource = self.new(self._connection, resource)
  
          return resource
docs: Gets a Managed SAN by name.
  
          Args:
              name: Name of the Managed SAN
  
          Returns:
              dict: Managed SAN.