Returns the district for a district admin
 @param id
 @param [Hash] opts the optional parameters
 @return [DistrictResponse]
518895
def get_district_for_district_admin(id, opts = {})
      data, _status_code, _headers = get_district_for_district_admin_with_http_info(id, opts)
      return data
    end
1354767
def get_sections_for_school(id, opts = {})
      data, _status_code, _headers = get_sections_for_school_with_http_info(id, opts)
      return data
    end
25852
def get(id)
      return unless id
      with_redis { |redis| redis.get(redis_key_for(id)).try { |data| load(data) } }
    end
763624
def get_contacts_for_student(id, opts = {})
      data, _status_code, _headers = get_contacts_for_student_with_http_info(id, opts)
      return data
    end
101568
def id
      params_id_key_candidates.each do |key|
        value = params[key]
        return value if value.present?
      end

      nil
    end
810430
def get_students_for_school(id, opts = {})
      data, _status_code, _headers = get_students_for_school_with_http_info(id, opts)
      return data
    end
435066
def _get_appointee(id):
    
    url = "%s%s.json" % (URL_PREFIX, id)
    response = get_resource(url)
    return process_json(response)
1221551
public function searchFromMap(int $districtId, string $keyword)
    {
        $params = [
            'districtid' => $districtId,
            'keyword' => $keyword,
        ];

        return $this->httpPostJson('wxa/search_map_poi', $params);
    }
1083682
def get_data_request(data_request_id, opts = {})
      data, _status_code, _headers = get_data_request_with_http_info(data_request_id, opts)
      data
    end
736825
def get_sections_for_term(id, opts = {})
      data, _status_code, _headers = get_sections_for_term_with_http_info(id, opts)
      return data
    end
523254
public static function allPersons($id, $params = null, $opts = null)
    {
        return self::_allNestedResources($id, static::PATH_PERSONS, $params, $opts);
    }
1139645
def plugin_info_by_id(plugin_id, opts={})
      found = all_plugins.find {|pe|
        pe.respond_to?(:plugin_id) && pe.plugin_id.to_s == plugin_id
      }
      if found
        get_monitor_info(found, opts)
      else
        nil
      end
    end
1264253
public static function allSources($id, $params = null, $opts = null)
    {
        return self::_allNestedResources($id, static::PATH_SOURCES, $params, $opts);
    }
1023868
def role(id)
      id = id.resolve_id
      @roles.find { |e| e.id == id }
    end
1206328
public static function retrieve($id, $opts = null)
    {
        $opts = \Stripe\Util\RequestOptions::parse($opts);
        $instance = new static($id, $opts);
        $instance->refresh();
        return $instance;
    }
1284320
def get_schools_for_teacher(id, opts = {})
      data, _status_code, _headers = get_schools_for_teacher_with_http_info(id, opts)
      return data
    end
413675
def get_adrespositie_by_id(self, id):
        '''
        
        '''
        def creator():
            res = crab_gateway_request(
                self.client, 'GetAdrespositieByAdrespositieId', id
            )
            if res == None:
                raise GatewayResourceNotFoundException()
            return Adrespositie(
                res.AdrespositieId,
                res.HerkomstAdrespositie,
                res.Geometrie,
                res.AardAdres,
                Metadata(
                    res.BeginDatum,
                    res.BeginTijd,
                    self.get_bewerking(res.BeginBewerking),
                    self.get_organisatie(res.BeginOrganisatie)
                )
            )
        if self.caches['short'].is_configured:
            key = 'GetAdrespositieByAdrespositieId#%s' % (id)
            adrespositie = self.caches['short'].get_or_create(key, creator)
        else:
            adrespositie = creator()
        adrespositie.set_gateway(self)
        return adrespositie