@classmethod
def match_project_from_subscription_name(cls, subscription_name):
    """Parses the project from a subscription resource.

        Args:
          subscription_name (string): A fully-qualified path representing a subscription
            resource.

        Returns:
          A string representing the project.
        """
    return cls._SUBSCRIPTION_PATH_TEMPLATE.match(subscription_name).get(
        'project')
