def _build_resource(self):
        additions = [{
            'name': added.name,
            'type': added.record_type,
            'ttl': str(added.ttl),
            'rrdatas': added.rrdatas,
            } for added in self.additions]

        deletions = [{
            'name': deleted.name,
            'type': deleted.record_type,
            'ttl': str(deleted.ttl),
            'rrdatas': deleted.rrdatas,
            } for deleted in self.deletions]

        return {
            'additions': additions,
            'deletions': deletions,
        }
Generate a resource for ``create``.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/dns/changes.py/Changes._build_resource