code: func (p *GoogleProvider) Records() (endpoints []*endpoint.Endpoint, _ error) {
  	zones, err := p.Zones()
  	if err != nil {
  		return nil, err
  	}
  
  	f := func(resp *dns.ResourceRecordSetsListResponse) error {
  		for _, r := range resp.Rrsets {
  			if !supportedRecordType(r.Type) {
  				continue
  			}
  			endpoints = append(endpoints, endpoint.NewEndpointWithTTL(r.Name, r.Type, endpoint.TTL(r.Ttl), r.Rrdatas...))
  		}
  
  		return nil
  	}
  
  	for _, z := range zones {
  		if err := p.resourceRecordSetsClient.List(p.project, z.Name).Pages(context.TODO(), f); err != nil {
  			return nil, err
  		}
  	}
  
  	return endpoints, nil
  }
docs: // Records returns the list of records in all relevant zones.