// Include 取得する項目
437878
func (api *SwitchAPI) Include(key string) *SwitchAPI {
	api.include(key)
	return api
}
706096
func (c *GroupsInfoCall) IncludeLocale(includeLocale bool) *GroupsInfoCall {
	c.includeLocale = includeLocale
	return c
}
1150879
func (api *AutoBackupAPI) Include(key string) *AutoBackupAPI {
	api.include(key)
	return api
}
1299483
func (api *ZoneAPI) Include(key string) *ZoneAPI {
	api.include(key)
	return api
}
822377
func (c *UsersInfoCall) IncludeLocale(includeLocale bool) *UsersInfoCall {
	c.includeLocale = includeLocale
	return c
}
1114262
func (api *DatabaseAPI) Include(key string) *DatabaseAPI {
	api.include(key)
	return api
}
400801
func (api *ProductDiskAPI) Include(key string) *ProductDiskAPI {
	api.include(key)
	return api
}
1263043
func (api *CDROMAPI) Include(key string) *CDROMAPI {
	api.include(key)
	return api
}
577670
func (api *LicenseAPI) Include(key string) *LicenseAPI {
	api.include(key)
	return api
}
1316203
func (m *FilterStatement) Includes() []string {
	if !m.checkedIncludes {
		m.includes = expr.FindIncludes(m.Filter)
		m.checkedIncludes = true
	}
	return m.includes
}
1107167
func IncludeContent(_ DocumentIndex, dd DocumentDecorator) ([]ID, error) {
	return nil, dd.IncludeContent()
}
633994
func (api *GSLBAPI) Include(key string) *GSLBAPI {
	api.include(key)
	return api
}
741243
func (d *DocumentDecorator) IncludeContent() error {
	if d.writable {
		return &influxdb.Error{
			Code: influxdb.EInternal,
			Msg:  "cannot include data in document",
		}
	}

	d.data = true

	return nil
}
1061034
func (api *MobileGatewayAPI) Include(key string) *MobileGatewayAPI {
	api.include(key)
	return api
}
159726
func (c *UsergroupsListCall) IncludeDisabled(includeDisabled bool) *UsergroupsListCall {
	c.includeDisabled = includeDisabled
	return c
}
312634
func (api OrganizationsAPI) AddIncludeSubOrgsOf(w http.ResponseWriter, r *http.Request) {
	globalID := mux.Vars(r)["globalid"]

	includeSubOrgOf := struct {
		GlobalID string
	}{}

	if err := json.NewDecoder(r.Body).Decode(&includeSubOrgOf); err != nil {
		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
		return
	}

	orgMgr := organization.NewManager(r)
	org, err := orgMgr.GetByName(globalID)
	if err != nil {
		if err == mgo.ErrNotFound {
			writeErrorResponse(w, http.StatusNotFound, "organization_not_found")
		} else {
			handleServerError(w, "getting organization", err)
		}
		return
	}

	if !orgMgr.Exists(includeSubOrgOf.GlobalID) {
		http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
		return
	}

	// check if the organization to add is already in the list
	for _, orgMembers := range org.IncludeSubOrgsOf {
		if orgMembers == includeSubOrgOf.GlobalID {
			http.Error(w, http.StatusText(http.StatusConflict), http.StatusConflict)
			return
		}
	}

	// add the organization to the list
	err = orgMgr.AddIncludeSubOrgOf(org.Globalid, includeSubOrgOf.GlobalID)
	if handleServerError(w, "adding organization to 'includesuborgsof' list", err) {
		return
	}

	org, err = orgMgr.GetByName(globalID)
	if handleServerError(w, "getting organization", err) {
		return
	}

	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(http.StatusCreated)
	json.NewEncoder(w).Encode(org)
}
349746
func (c *GetConfigSetsCall) IncludeFiles(includeFiles bool) *GetConfigSetsCall {
	c.urlParams_.Set("include_files", fmt.Sprint(includeFiles))
	return c
}