code: func flattenStorageDrsVMConfigInfo(d *schema.ResourceData, obj *types.StorageDrsVmConfigInfo) error {
  	if err := d.Set("sdrs_automation_level", obj.Behavior); err != nil {
  		return fmt.Errorf("error setting attribute \"sdrs_automation_level\": %s", err)
  	}
  	if err := structure.SetBoolStringPtr(d, "sdrs_enabled", obj.Enabled); err != nil {
  		return fmt.Errorf("error setting attribute \"sdrs_enabled\": %s", err)
  	}
  	if err := structure.SetBoolStringPtr(d, "sdrs_intra_vm_affinity", obj.IntraVmAffinity); err != nil {
  		return fmt.Errorf("error setting attribute \"sdrs_automation_level\": %s", err)
  	}
  
  	return nil
  }
docs: // flattenStorageDrsVmConfigInfo saves a StorageDrsVmConfigInfo into the
  // supplied ResourceData.