// SetVMHypervisorPath sets g.Config.VM.Hypervisor.Path
503210
func (g *Generator) SetVMHypervisorPath(path string) error {
	if !strings.HasPrefix(path, "/") {
		return fmt.Errorf("hypervisorPath %v is not an absolute path", path)
	}
	g.initConfigVMHypervisor()
	g.Config.VM.Hypervisor.Path = path
	return nil
}
533308
func (s *Device) SetContainerPath(v string) *Device {
	s.ContainerPath = &v
	return s
}
1187285
func SetValueAtPath(i interface{}, path string, v interface{}) {
	if rvals := rValuesAtPath(i, path, true, false, v == nil); rvals != nil {
		for _, rval := range rvals {
			if rval.Kind() == reflect.Ptr && rval.IsNil() {
				continue
			}
			setValue(rval, v)
		}
	}
}
1178185
func (s *PropertyDifference) SetPropertyPath(v string) *PropertyDifference {
	s.PropertyPath = &v
	return s
}
345705
func (s *GetObjectInput) SetPath(v string) *GetObjectInput {
	s.Path = &v
	return s
}
483439
func (s *RedirectActionConfig) SetPath(v string) *RedirectActionConfig {
	s.Path = &v
	return s
}
1246431
func (s *User) SetPath(v string) *User {
	s.Path = &v
	return s
}
1347347
func (s *Host) SetSourcePath(v string) *Host {
	s.SourcePath = &v
	return s
}
816634
func (s *UserDetail) SetPath(v string) *UserDetail {
	s.Path = &v
	return s
}
661194
func (s *Policy) SetPath(v string) *Policy {
	s.Path = &v
	return s
}
1309146
func (s *Disk) SetPath(v string) *Disk {
	s.Path = &v
	return s
}
251966
func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput {
	s.FolderPath = &v
	return s
}
549809
func (s *InstanceProfile) SetPath(v string) *InstanceProfile {
	s.Path = &v
	return s
}
270282
func (p *WebPage) SetLibraryPath(path string) error {
	return p.ref.process.doJSON("POST", "/webpage/SetLibraryPath", map[string]interface{}{"ref": p.ref.id, "path": path}, nil)
}
900399
func (s *Resource) SetPath(v string) *Resource {
	s.Path = &v
	return s
}
628817
func (s *ListItemsInput) SetPath(v string) *ListItemsInput {
	s.Path = &v
	return s
}
544234
func (i *ImageObj) SetImagePath(path string) error {

	file, err := os.Open(path)
	if err != nil {
		return err
	}
	defer file.Close()

	err = i.SetImage(file)
	if err != nil {
		return err
	}
	return nil
}