def master_distribution_point(refresh = false)
      @master_distribution_point = nil if refresh
      return @master_distribution_point if @master_distribution_point

      all_dps = JSS::DistributionPoint.all refresh, api: self

      @master_distribution_point =
        case all_dps.size
        when 0
          raise JSS::NoSuchItemError, 'No distribution points defined'
        when 1
          JSS::DistributionPoint.fetch id: all_dps.first[:id], api: self
        else
          JSS::DistributionPoint.fetch id: :master, api: self
        end
    end
def master_distribution_point(refresh = false)
      @master_distribution_point = nil if refresh
      return @master_distribution_point if @master_distribution_point

      all_dps = JSS::DistributionPoint.all refresh, api: self

      @master_distribution_point =
        case all_dps.size
        when 0
          raise JSS::NoSuchItemError, 'No distribution points defined'
        when 1
          JSS::DistributionPoint.fetch id: all_dps.first[:id], api: self
        else
          JSS::DistributionPoint.fetch id: :master, api: self
        end
    end
Get the DistributionPoint instance for the master
 distribution point in the JSS. If there's only one
 in the JSS, return it even if not marked as master.

 @param refresh[Boolean] re-read from the API?

 @return [JSS::DistributionPoint]