{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/94","labels_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/94/comments","events_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/94/events","html_url":"https://github.com/SatelliteQE/nailgun/pull/94","id":82183766,"number":94,"title":"Update `Domain` to include a `SmartProxy` field.","user":{"login":"omaciel","id":53362,"avatar_url":"https://avatars.githubusercontent.com/u/53362?v=3","gravatar_id":"","url":"https://api.github.com/users/omaciel","html_url":"https://github.com/omaciel","followers_url":"https://api.github.com/users/omaciel/followers","following_url":"https://api.github.com/users/omaciel/following{/other_user}","gists_url":"https://api.github.com/users/omaciel/gists{/gist_id}","starred_url":"https://api.github.com/users/omaciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omaciel/subscriptions","organizations_url":"https://api.github.com/users/omaciel/orgs","repos_url":"https://api.github.com/users/omaciel/repos","events_url":"https://api.github.com/users/omaciel/events{/privacy}","received_events_url":"https://api.github.com/users/omaciel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T00:15:08Z","updated_at":"2015-05-29T00:15:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/pulls/94","html_url":"https://github.com/SatelliteQE/nailgun/pull/94","diff_url":"https://github.com/SatelliteQE/nailgun/pull/94.diff","patch_url":"https://github.com/SatelliteQE/nailgun/pull/94.patch"},"body":"Since a `entities.Domain` can be associated to a `entities.SmsrtProxy`\r\nby its `id`, I have updated the class to accept a new field (integer).\r\n\r\nPreliminary testing shows:\r\n\r\n```python\r\nIn [10]: org = Organization(id=1).read()\r\n\r\nIn [12]: loc = Location(id=2).read()\r\n\r\nIn [13]: capsule = SmartProxy(id=1).read()\r\n\r\nIn [15]: foo = Domain(organization=[org], location=[loc], dns_id=capsule.id).create()\r\n\r\nIn [16]: foo\r\nOut[16]: nailgun.entities.Domain(nailgun.config.ServerConfig(url=u'https://ibm-x3250m4-06.lab.eng.rdu2.redhat.com', verify=False, version=<Version('6.1')>, auth=(u'admin', u'fromgod1')), domain_parameters_attributes=[], location=[nailgun.entities.Location(nailgun.config.ServerConfig(url=u'https://ibm-x3250m4-06.lab.eng.rdu2.redhat.com', verify=False, version=<Version('6.1')>, auth=(u'admin', u'fromgod1')), id=2)], dns_id=1, organization=[nailgun.entities.Organization(nailgun.config.ServerConfig(url=u'https://ibm-x3250m4-06.lab.eng.rdu2.redhat.com', verify=False, version=<Version('6.1')>, auth=(u'admin', u'fromgod1')), id=1)], fullname=None, id=4, name=u'shg36dpgdz')\r\n\r\nIn [18]: Domain(id=4).read()\r\n\r\nOut[18]: nailgun.entities.Domain(nailgun.config.ServerConfig(url=u'https://ibm-x3250m4-06.lab.eng.rdu2.redhat.com', verify=False, version=<Version('6.1')>, auth=(u'admin', u'fromgod1')), domain_parameters_attributes=[], location=[nailgun.entities.Location(nailgun.config.ServerConfig(url=u'https://ibm-x3250m4-06.lab.eng.rdu2.redhat.com', verify=False, version=<Version('6.1')>, auth=(u'admin', u'fromgod1')), id=2)], dns_id=1, organization=[nailgun.entities.Organization(nailgun.config.ServerConfig(url=u'https://ibm-x3250m4-06.lab.eng.rdu2.redhat.com', verify=False, version=<Version('6.1')>, auth=(u'admin', u'fromgod1')), id=1)], fullname=None, id=4, name=u'shg36dpgdz')\r\n\r\nIn [19]: Domain(id=4).delete()\r\n\r\nOut[19]:\r\n{u'created_at': u'2015-05-29T00:10:46Z',\r\n u'dns_id': 1,\r\n u'fullname': None,\r\n u'hostgroups_count': 0,\r\n u'hosts_count': 0,\r\n u'id': 4,\r\n u'name': u'shg36dpgdz',\r\n u'updated_at': u'2015-05-29T00:10:46Z'}\r\n```"},"comment":{"url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/comments/106638949","html_url":"https://github.com/SatelliteQE/nailgun/pull/94#issuecomment-106638949","issue_url":"https://api.github.com/repos/SatelliteQE/nailgun/issues/94","id":106638949,"user":{"login":"omaciel","id":53362,"avatar_url":"https://avatars.githubusercontent.com/u/53362?v=3","gravatar_id":"","url":"https://api.github.com/users/omaciel","html_url":"https://github.com/omaciel","followers_url":"https://api.github.com/users/omaciel/followers","following_url":"https://api.github.com/users/omaciel/following{/other_user}","gists_url":"https://api.github.com/users/omaciel/gists{/gist_id}","starred_url":"https://api.github.com/users/omaciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omaciel/subscriptions","organizations_url":"https://api.github.com/users/omaciel/orgs","repos_url":"https://api.github.com/users/omaciel/repos","events_url":"https://api.github.com/users/omaciel/events{/privacy}","received_events_url":"https://api.github.com/users/omaciel/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T00:15:31Z","updated_at":"2015-05-29T00:15:31Z","body":"This fixes #93 "}}