def create_distribution(self, **params): """ Method for `Create Distribution <https://m2x.att.com/developer/documentation/v2/distribution#Create-Distribution>`_ endpoint. :param params: Query parameters passed as keyword arguments. View M2X API Docs for listing of available parameters. :return: The newly created Distribution :rtype: Distribution :raises: :class:`~requests.exceptions.HTTPError` if an error occurs when sending the HTTP request """ return Distribution.create(self, **params)
def distributions(self, **params): """ Method for `List Distributions <https://m2x.att.com/developer/documentation/v2/distribution#List-Distributions>`_ endpoint. :param params: Query parameters passed as keyword arguments. View M2X API Docs for listing of available parameters. :return: List of :class:`.Distribution` objects :rtype: `list <https://docs.python.org/2/library/functions.html#list>`_ :raises: :class:`~requests.exceptions.HTTPError` if an error occurs when sending the HTTP request """ return Distribution.list(self, **params)
def distribution(self, id): """ Method for `View Distribution Details <https://m2x.att.com/developer/documentation/v2/distribution#View-Distribution-Details>`_ endpoint. :param id: ID of the Distribution to retrieve :type id: str :return: The matching Distribution :rtype: Distribution :raises: :class:`~requests.exceptions.HTTPError` if an error occurs when sending the HTTP request """ return Distribution.get(self, id)
def distributions(self, **params): return Distribution.list(self, **params)
def create_distribution(self, **params): return Distribution.create(self, **params)
def distribution(self, id): return Distribution.get(self, id)