You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second snippet shows how to create records inside a zone. The complete code can be found on [CreateOrUpdateDnsRecords.java](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateOrUpdateDnsRecords.java).
252
+
The second snippet shows how to create records inside a zone. The complete code can be found on [CreateOrUpdateRecordSets.java](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateOrUpdateRecordSets.java).
253
253
254
254
```java
255
255
import com.google.gcloud.dns.ChangeRequest;
256
256
import com.google.gcloud.dns.Dns;
257
257
import com.google.gcloud.dns.DnsOptions;
258
-
import com.google.gcloud.dns.DnsRecord;
258
+
import com.google.gcloud.dns.RecordSet;
259
259
import com.google.gcloud.dns.Zone;
260
260
261
261
import java.util.Iterator;
@@ -265,17 +265,17 @@ Dns dns = DnsOptions.defaultInstance().service();
The `addRecord` method of `DnsRecord.Builder` accepts records in the form of
186
-
strings. The format of the strings depends on the type of the DNS record to be added.
187
-
More information on the supported DNS record types and record formats can be found [here](https://cloud.google.com/dns/what-is-cloud-dns#supported_record_types).
185
+
The `addRecord` method of `RecordSet.Builder` accepts records in the form of
186
+
strings. The format of the strings depends on the type of the record sets to be added.
187
+
More information on the supported record set types and record formats can be found [here](https://cloud.google.com/dns/what-is-cloud-dns#supported_record_types).
188
188
189
-
If you already have a DNS record, Cloud DNS will return an error upon an attempt to create a duplicate of it.
190
-
You can modify the code above to create a DNS record or update it if it already exists by making the
189
+
If you already have a record set, Cloud DNS will return an error upon an attempt to create a duplicate of it.
190
+
You can modify the code above to create a record set or update it if it already exists by making the
we create a zone. In [CreateOrUpdateDnsRecords.java](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateOrUpdateDnsRecords.java)
328
-
we create a type A record for a zone, or update an existing type A record to a new IP address. We
327
+
we create a zone. In [CreateOrUpdateRecordSets.java](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateOrUpdateRecordSets.java)
328
+
we create a type A record set for a zone, or update an existing type A record set to a new IP address. We
329
329
demonstrate how to delete a zone in [DeleteZone.java](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/DeleteZone.java).
330
-
Finally, in [ManipulateZonesAndRecords.java](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/ManipulateZonesAndRecords.java)
331
-
we assemble all the code snippets together and create zone, create or update a DNS record, list zones, list DNS records, list changes, and
330
+
Finally, in [ManipulateZonesAndRecordSets.java](../gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/ManipulateZonesAndRecordSets.java)
331
+
we assemble all the code snippets together and create zone, create or update a record set, list zones, list record sets, list changes, and
332
332
delete a zone. The applications assume that they are running on Compute Engine or from your own desktop. To run any of these examples on App
333
333
Engine, simply move the code from the main method to your application's servlet class and change the
0 commit comments