code: func (c *Target) AttachToTarget(targetId string, flatten bool) (string, error) {
  	var v TargetAttachToTargetParams
  	v.TargetId = targetId
  	v.Flatten = flatten
  	return c.AttachToTargetWithParams(&v)
  }
docs: // AttachToTarget - Attaches to the target with given id.
  // targetId -
  // flatten - Enables "flat" access to the session via specifying sessionId attribute in the commands.
  // Returns -  sessionId - Id assigned to the session.