Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
 def distributions(self, **params):
     return Distribution.list(self, **params)
Exemple #5
0
 def create_distribution(self, **params):
     return Distribution.create(self, **params)
Exemple #6
0
 def distribution(self, id):
     return Distribution.get(self, id)
Exemple #7
0
 def distributions(self, **params):
     return Distribution.list(self, **params)
Exemple #8
0
 def create_distribution(self, **params):
     return Distribution.create(self, **params)
Exemple #9
0
 def distribution(self, id):
     return Distribution.get(self, id)