

def _makeResource(self):
    from gcloud._helpers import _datetime_to_rfc3339
    when_str = _datetime_to_rfc3339(self.WHEN)
    return {
        'kind': 'dns#change',
        'id': self.CHANGES_NAME,
        'startTime': when_str,
        'status': 'done',
        'additions': [{
            'name': 'test.example.com',
            'type': 'CNAME',
            'ttl': '3600',
            'rrdatas': ['www.example.com'],
        }],
        'deletions': [{
            'name': 'test.example.com',
            'type': 'CNAME',
            'ttl': '86400',
            'rrdatas': ['other.example.com'],
        }],
    }

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/dns/test_changes.py TestChanges._makeResource/original