func (u *UpgradeSeriesAPI) SetUpgradeSeriesUnitStatus(status model.UpgradeSeriesStatus, reason string) error {
	var results params.ErrorResults
	args := params.UpgradeSeriesStatusParams{
		Params: []params.UpgradeSeriesStatusParam{{
			Entity:  params.Entity{Tag: u.tag.String()},
			Status:  status,
			Message: reason,
		}},
	}
	err := u.facade.FacadeCall("SetUpgradeSeriesUnitStatus", args, &results)
	if err != nil {
		return err
	}
	if len(results.Results) != 1 {
		return errors.Errorf("expected 1 result, got %d", len(results.Results))
	}
	result := results.Results[0]
	if result.Error != nil {
		return result.Error
	}
	return nil
}
// SetUpgradeSeriesUnitStatus sets the upgrade series status of the
// unit in the remote state.
SetUpgradeSeriesUnitStatus sets the upgrade series status of the
unit in the remote state.
// SetUpgradeSeriesUnitStatus sets the upgrade series status of the // unit in the remote state .
func (u *UpgradeSeriesAPI) SetUpgradeSeriesUnitStatus(status model.UpgradeSeriesStatus, reason string) error {
	var results params.ErrorResults
	args := params.UpgradeSeriesStatusParams{
		Params: []params.UpgradeSeriesStatusParam{{
			Entity:  params.Entity{Tag: u.tag.String()},
			Status:  status,
			Message: reason,
		}},
	}
	err := u.facade.FacadeCall("SetUpgradeSeriesUnitStatus", args, &results)
	if err != nil {
		return err
	}
	if len(results.Results) != 1 {
		return errors.Errorf("expected 1 result, got %d", len(results.Results))
	}
	result := results.Results[0]
	if result.Error != nil {
		return result.Error
	}
	return nil
}
func ( u * UpgradeSeriesAPI ) SetUpgradeSeriesUnitStatus ( status model . UpgradeSeriesStatus , reason string ) error { var results params . ErrorResults args := params . UpgradeSeriesStatusParams { Params : [ ] params . UpgradeSeriesStatusParam { { Entity : params . Entity { Tag : u . tag . String ( ) } , Status : status , Message : reason , } } , } err := u . facade . FacadeCall ( " " , args , & results ) if err != nil { return err } if len ( results . Results ) != 1 { return errors . Errorf ( " " , len ( results . Results ) ) } result := results . Results [ 0 ] if result . Error != nil { return result . Error } return nil }
SetUpgradeSeriesUnitStatus sets the upgrade series status of the
unit in the remote state.
SetUpgradeSeriesUnitStatus sets the upgrade series status of the unit in the remote state .