src.utils.raise_billing_or_mgmt

src.utils.raise_billing_or_mgmt(kwargs: Dict[str, Any]) NameValuePairArgs

Raise if both billing and mngmt are set or neither are set.

Parameters:

kwargs – A dictionary of keyword arguments including billing or mgmt.

Raises:

ValueError – If both billing and mgmt are set or neither are set.

Returns:

A NameValuePairArgs object with either BILLING_ACCOUNT_ID or MGMT_GROUP set.