# Path: muranoclient/common/base.py
# def getid(obj):
#     def __init__(self, api):
#     def _list(self, url, response_key=None, obj_class=None,
#               data=None, headers=None):
#     def _delete(self, url, headers=None):
#     def _update(self, url, data, response_key=None, return_raw=False,
#                 headers=None, method='PUT', content_type='application/json'):
#     def _create(self, url, data=None, response_key=None,
#                 return_raw=False, headers=None):
#     def _get(self, url, response_key=None, return_raw=False, headers=None):
#     def list(self):
#     def find(self, **kwargs):
#     def findall(self, **kwargs):
#     def __init__(self, manager, info, loaded=False):
#     def _add_details(self, info):
#     def __setstate__(self, d):
#     def __getattr__(self, k):
#     def __repr__(self):
#     def get(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def is_loaded(self):
#     def set_loaded(self, val):
#     def to_dict(self):
# class Manager(object):
# class ManagerWithFind(Manager, metaclass=abc.ABCMeta):
# class Resource(object):


from muranoclient.common import base

class Deployment(base.Resource):
    def __repr__(self):
        return '<Deployment %s>' % self._info

    def data(self, **kwargs):
        return self.manager.data(self, **kwargs)


class Status(base.Resource):
    def __repr__(self):
        return '<Status %s>' % self._info

    def data(self, **kwargs):
        return self.manager.data(self, **kwargs)


class DeploymentManager(base.Manager):
    resource_class = Deployment

    def list(self, environment_id, all_environments=False):
        if all_environments:
            return self._list('/v1/deployments', 'deployments')
        else:
            return self._list('/v1/environments/{id}/deployments'.
                              format(id=environment_id), 'deployments')

    def reports(self, environment_id, deployment_id, *service_ids):
        path = '/v1/environments/{id}/deployments/{deployment_id}'
        path = path.format(id=environment_id, deployment_id=deployment_id)

# Path: muranoclient/common/base.py
# def getid(obj):
#     def __init__(self, api):
#     def _list(self, url, response_key=None, obj_class=None,
#               data=None, headers=None):
#     def _delete(self, url, headers=None):
#     def _update(self, url, data, response_key=None, return_raw=False,
#                 headers=None, method='PUT', content_type='application/json'):
#     def _create(self, url, data=None, response_key=None,
#                 return_raw=False, headers=None):
#     def _get(self, url, response_key=None, return_raw=False, headers=None):
#     def list(self):
#     def find(self, **kwargs):
#     def findall(self, **kwargs):
#     def __init__(self, manager, info, loaded=False):
#     def _add_details(self, info):
#     def __setstate__(self, d):
#     def __getattr__(self, k):
#     def __repr__(self):
#     def get(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def is_loaded(self):
#     def set_loaded(self, val):
#     def to_dict(self):
# class Manager(object):
# class ManagerWithFind(Manager, metaclass=abc.ABCMeta):
# class Resource(object):


# Path: muranoclient/v1/deployments.py
from muranoclient.common import base


class Deployment(base.Resource):
    def __repr__(self):
        return '<Deployment %s>' % self._info

    def data(self, **kwargs):
        return self.manager.data(self, **kwargs)


class Status(base.Resource):
    def __repr__(self):
        return '<Status %s>' % self._info

    def data(self, **kwargs):
        return self.manager.data(self, **kwargs)


class DeploymentManager(base.Manager):
    resource_class = Deployment

    def list(self, environment_id, all_environments=False):
        if all_environments:
            return self._list('/v1/deployments', 'deployments')
        else:
            return self._list('/v1/environments/{id}/deployments'.
                              format(id=environment_id), 'deployments')

    def reports(self, environment_id, deployment_id, *service_ids):
        path = '/v1/environments/{id}/deployments/{deployment_id}'
        path = path.format(id=environment_id, deployment_id=deployment_id)

        if service_ids: