func (c *Client) UnitsInfo(units []names.UnitTag) ([]UnitInfo, error) {
	if apiVersion := c.BestAPIVersion(); apiVersion < 12 {
		return nil, errors.NotSupportedf("UnitsInfo for Application facade v%v", apiVersion)
	}
	all := make([]params.Entity, len(units))
	for i, one := range units {
		all[i] = params.Entity{Tag: one.String()}
	}
	in := params.Entities{Entities: all}
	var out params.UnitInfoResults
	err := c.facade.FacadeCall("UnitsInfo", in, &out)
	if err != nil {
		return nil, errors.Trace(err)
	}
	if resultsLen := len(out.Results); resultsLen != len(units) {
		return nil, errors.Errorf("expected %d results, got %d", len(units), resultsLen)
	}
	infos := make([]UnitInfo, len(out.Results))
	for i, r := range out.Results {
		infos[i] = unitInfoFromParams(r)
	}
	return infos, nil
}
// UnitsInfo retrieves units information.
UnitsInfo retrieves units information.
// UnitsInfo retrieves units information .
func (c *Client) UnitsInfo(units []names.UnitTag) ([]UnitInfo, error) {
	if apiVersion := c.BestAPIVersion(); apiVersion < 12 {
		return nil, errors.NotSupportedf("UnitsInfo for Application facade v%v", apiVersion)
	}
	all := make([]params.Entity, len(units))
	for i, one := range units {
		all[i] = params.Entity{Tag: one.String()}
	}
	in := params.Entities{Entities: all}
	var out params.UnitInfoResults
	err := c.facade.FacadeCall("UnitsInfo", in, &out)
	if err != nil {
		return nil, errors.Trace(err)
	}
	if resultsLen := len(out.Results); resultsLen != len(units) {
		return nil, errors.Errorf("expected %d results, got %d", len(units), resultsLen)
	}
	infos := make([]UnitInfo, len(out.Results))
	for i, r := range out.Results {
		infos[i] = unitInfoFromParams(r)
	}
	return infos, nil
}
func ( c * Client ) UnitsInfo ( units [ ] names . UnitTag ) ( [ ] UnitInfo , error ) { if apiVersion := c . BestAPIVersion ( ) ; apiVersion < 12 { return nil , errors . NotSupportedf ( " " , apiVersion ) } all := make ( [ ] params . Entity , len ( units ) ) for i , one := range units { all [ i ] = params . Entity { Tag : one . String ( ) } } in := params . Entities { Entities : all } var out params . UnitInfoResults err := c . facade . FacadeCall ( " " , in , & out ) if err != nil { return nil , errors . Trace ( err ) } if resultsLen := len ( out . Results ) ; resultsLen != len ( units ) { return nil , errors . Errorf ( " " , len ( units ) , resultsLen ) } infos := make ( [ ] UnitInfo , len ( out . Results ) ) for i , r := range out . Results { infos [ i ] = unitInfoFromParams ( r ) } return infos , nil }
UnitsInfo retrieves units information.
UnitsInfo retrieves units information .