@@ -83,13 +83,13 @@ func (p *Provider) setCloudDNSRecord(ctx context.Context, zone string, values []
83
83
for _ , record := range values {
84
84
rrs .Rrdatas = append (rrs .Rrdatas , record .Value )
85
85
}
86
- googleRecord , err := p .service .Projects . ManagedZones . Rrsets .Create (p .Project , gcdZone , & rrs ).Context (ctx ).Do ()
86
+ googleRecord , err := p .service .ResourceRecordSets .Create (p .Project , gcdZone , & rrs ).Context (ctx ).Do ()
87
87
if err != nil {
88
88
if gErr , ok := err .(* googleapi.Error ); ! ok || (gErr .Code == 409 && ! patch ) {
89
89
return nil , err
90
90
}
91
91
// Record exists and we'd really like to get this libdns.Record into the zone so how about we try patching it instead...
92
- googleRecord , err = p .service .Projects . ManagedZones . Rrsets .Patch (p .Project , gcdZone , rrs .Name , rrs .Type , & rrs ).Context (ctx ).Do ()
92
+ googleRecord , err = p .service .ResourceRecordSets .Patch (p .Project , gcdZone , rrs .Name , rrs .Type , & rrs ).Context (ctx ).Do ()
93
93
if err != nil {
94
94
return nil , err
95
95
}
@@ -110,7 +110,7 @@ func (p *Provider) deleteCloudDNSRecord(ctx context.Context, zone, name, dnsType
110
110
return err
111
111
}
112
112
fullName := libdns .AbsoluteName (name , zone )
113
- _ , err = p .service .Projects . ManagedZones . Rrsets .Delete (p .Project , gcdZone , fullName , dnsType ).Context (ctx ).Do ()
113
+ _ , err = p .service .ResourceRecordSets .Delete (p .Project , gcdZone , fullName , dnsType ).Context (ctx ).Do ()
114
114
return err
115
115
}
116
116
0 commit comments