// GetTargetInfo invokes the Target method. Returns information about a
// target.
554946
func (d *domainClient) GetTargetInfo(ctx context.Context, args *GetTargetInfoArgs) (reply *GetTargetInfoReply, err error) {
	reply = new(GetTargetInfoReply)
	if args != nil {
		err = rpcc.Invoke(ctx, "Target.getTargetInfo", args, reply, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "Target.getTargetInfo", nil, reply, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "Target", Op: "GetTargetInfo", Err: err}
	}
	return
}
192362
func (gce *Cloud) GetTargetHTTPSProxy(name string) (*compute.TargetHttpsProxy, error) {
	return gce.service.TargetHttpsProxies.Get(gce.projectID, name).Do()
}
539485
func (s *BatchDetachFromIndex) SetTargetReference(v *ObjectReference) *BatchDetachFromIndex {
	s.TargetReference = v
	return s
}
1272727
func (c *Ctx) GetInfo() (Info, error) {
	var p C.ckInfo
	e := C.GetInfo(c.ctx, &p)
	i := Info{
		CryptokiVersion:    toVersion(p.cryptokiVersion),
		ManufacturerID:     strings.TrimRight(string(C.GoBytes(unsafe.Pointer(&p.manufacturerID[0]), 32)), " "),
		Flags:              uint(p.flags),
		LibraryDescription: strings.TrimRight(string(C.GoBytes(unsafe.Pointer(&p.libraryDescription[0]), 32)), " "),
		LibraryVersion:     toVersion(p.libraryVersion),
	}
	return i, toError(e)
}
178033
func (s *UpdateRouteInput) SetTarget(v string) *UpdateRouteInput {
	s.Target = &v
	return s
}
290946
func (s *BatchListAttachedIndices) SetTargetReference(v *ObjectReference) *BatchListAttachedIndices {
	s.TargetReference = v
	return s
}
64970
func (s *DocumentIdentifier) SetTargetType(v string) *DocumentIdentifier {
	s.TargetType = &v
	return s
}
1370876
func (r *RepositoryContent) GetTarget() string {
	if r == nil || r.Target == nil {
		return ""
	}
	return *r.Target
}
841954
func (s *Route) SetTarget(v string) *Route {
	s.Target = &v
	return s
}
1150818
func getTargetDevice(devPath string) string {
	fi, err := os.Lstat(devPath)
	if err == nil &&
		(fi.Mode()&os.ModeSymlink != 0) {
		// Found a symbolic link reference
		out, err := filepath.EvalSymlinks(devPath)
		if err != nil {
			// We do a best effort to find the target
			return ""
		}
		return strings.TrimSpace(string(out))

	} // else we are given a prefix
	return ""
}
298491
func (s *CreateRouteInput) SetTarget(v string) *CreateRouteInput {
	s.Target = &v
	return s
}
864669
func (s *CreateRouteOutput) SetTarget(v string) *CreateRouteOutput {
	s.Target = &v
	return s
}
1255173
func (config *Config) SetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool) {
	config.ConfigFile.Target = api
	config.ConfigFile.APIVersion = apiVersion
	config.ConfigFile.AuthorizationEndpoint = auth
	config.SetMinCLIVersion(minCLIVersion)
	config.ConfigFile.DopplerEndpoint = doppler
	config.ConfigFile.RoutingEndpoint = routing
	config.ConfigFile.SkipSSLValidation = skipSSLValidation

	config.UnsetOrganizationAndSpaceInformation()
}
704108
func (s *Service) GetTargetByID(ctx context.Context, id influxdb.ID) (target *influxdb.ScraperTarget, err error) {
	var pe *influxdb.Error
	if target, pe = s.loadScraperTarget(id); pe != nil {
		return nil, &influxdb.Error{
			Op:  OpPrefix + influxdb.OpGetTargetByID,
			Err: pe,
		}
	}
	return target, nil
}
195295
func (s *Session) SetTarget(v string) *Session {
	s.Target = &v
	return s
}
271319
func (s *CustomRule) SetTarget(v string) *CustomRule {
	s.Target = &v
	return s
}
104874
func (i *Installation) GetTargetType() string {
	if i == nil || i.TargetType == nil {
		return ""
	}
	return *i.TargetType
}