#NEWLINE# @ classmethod #NEWLINE# def from_api_repr( cls , resource , zone ) : #NEWLINE# #INDENT# 'Factory:  construct a record set given its API representation\n\n        :type resource: dict\n        :param resource: record sets representation returned from the API\n\n        :type zone: :class:`gcloud.dns.zone.ManagedZone`\n        :param zone: A zone which holds one or more record sets.\n\n        :rtype: :class:`gcloud.dns.zone.ResourceRecordSet`\n        :returns: RRS parsed from ``resource``.\n        ' #NEWLINE# name = resource [ 'name' ] #NEWLINE# record_type = resource [ 'type' ] #NEWLINE# ttl = int ( resource [ 'ttl' ] ) #NEWLINE# rrdatas = resource [ 'rrdatas' ] #NEWLINE# return cls ( name , record_type , ttl , rrdatas , zone = zone )