// Includes returns 'true' if a given list of roles includes a given role
482820
func (roles Roles) Include(role Role) bool {
	for _, r := range roles {
		if r == role {
			return true
		}
	}
	return false
}
441450
func (v *Value) IncludeSpaces() []string {
	if v.Spaces == nil {
		return nil
	}
	return v.extractItems(*v.Spaces, true)
}
741953
func (r *repository) ListRoles() ([]RoleWithSignatures, error) {
	if err := r.updateTUF(false); err != nil {
		return nil, err
	}
	return NewReadOnly(r.tufRepo).ListRoles()
}
1012893
func (d *Dependencies) includes(needle string) bool {
	for _, name := range d.All {
		if name == needle {
			return true
		}
	}
	return false
}
1299483
func (api *ZoneAPI) Include(key string) *ZoneAPI {
	api.include(key)
	return api
}
178969
func (s *IPRoleList) GetAllRoles() ([]IPRole, error) {
	roles := s.Roles
	t := s

	for t.HasNextPage() {
		var err error
		t, err = t.NextPage()
		if err != nil {
			return nil, err
		}
		roles = append(roles, t.Roles...)
	}
	return roles, nil
}
789066
func (api *SSHKeyAPI) Include(key string) *SSHKeyAPI {
	api.include(key)
	return api
}
851258
func (f *RenderFilter) include(k string) bool {
	if f == nil {
		return true
	}

	k = strings.ToLower(k)

	f.once.Do(f.init)
	if len(f.includeSet) > 0 {
		_, ok := f.includeSet[k]
		return ok
	}
	if len(f.excludeSet) > 0 {
		_, ok := f.excludeSet[k]
		return !ok
	}

	return true
}
539175
func fieldExcludes(fl FieldLevel) bool {
	field := fl.Field()

	currentField, _, ok := fl.GetStructFieldOK()
	if !ok {
		return true
	}

	return !strings.Contains(field.String(), currentField.String())
}
1171989
func (api *IconAPI) Include(key string) *IconAPI {
	api.include(key)
	return api
}
1150879
func (api *AutoBackupAPI) Include(key string) *AutoBackupAPI {
	api.include(key)
	return api
}
300884
func (api *BridgeAPI) Include(key string) *BridgeAPI {
	api.include(key)
	return api
}
437878
func (api *SwitchAPI) Include(key string) *SwitchAPI {
	api.include(key)
	return api
}
652929
func (api *RegionAPI) Include(key string) *RegionAPI {
	api.include(key)
	return api
}
1114262
func (api *DatabaseAPI) Include(key string) *DatabaseAPI {
	api.include(key)
	return api
}
549037
func (api *IPAddressAPI) Include(key string) *IPAddressAPI {
	api.include(key)
	return api
}
983859
func (e *RoleService) List() (data *RoleListResult, err error) {
	err = e.client.magicRequestDecoder("GET", "roles", nil, &data)
	return
}