def _set_properties(self, resource):
        """Helper method for :meth:`from_api_repr`, :meth:`create`, etc.

        :type resource: dict
        :param resource: change set representation returned from the API.
        """
        resource = resource.copy()
        self._additions = tuple(
            [
                ResourceRecordSet.from_api_repr(added_res, self.zone)
                for added_res in resource.pop("additions", ())
            ]
        )
        self._deletions = tuple(
            [
                ResourceRecordSet.from_api_repr(added_res, self.zone)
                for added_res in resource.pop("deletions", ())
            ]
        )
        self._properties = resource
def _set_properties ( self , resource ) : resource = resource . copy ( ) self . _additions = tuple ( [ ResourceRecordSet . from_api_repr ( added_res , self . zone ) for added_res in resource . pop ( "additions" , ( ) ) ] ) self . _deletions = tuple ( [ ResourceRecordSet . from_api_repr ( added_res , self . zone ) for added_res in resource . pop ( "deletions" , ( ) ) ] ) self . _properties = resource
Helper method for :meth:`from_api_repr`, :meth:`create`, etc.

        :type resource: dict
        :param resource: change set representation returned from the API.