Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: expose DNSSEC options of ManagedZones (#276)
Browse files Browse the repository at this point in the history
* feat: expose DNSSEC options when creating ManagedZones

* feat: validate the dnssec fields

* feat: code refactor

* fix: turn on DNSSEC for IT tests, create stub method for setDnssec

Co-authored-by: Jeff Ching <chingor@google.com>
  • Loading branch information
athakor and chingor13 committed Dec 28, 2020
1 parent 4fa113d commit b3bdbd1
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/google/cloud/dns/Dns.java
Expand Up @@ -69,7 +69,8 @@ enum ZoneField implements FieldSelector {
ZONE_ID("id"),
NAME("name"),
NAME_SERVER_SET("nameServerSet"),
NAME_SERVERS("nameServers");
NAME_SERVERS("nameServers"),
DNSSEC("dnssecConfig");

static final List<? extends FieldSelector> REQUIRED_FIELDS = ImmutableList.of(NAME);

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/google/cloud/dns/Zone.java
Expand Up @@ -94,6 +94,12 @@ Builder setNameServers(List<String> nameServers) {
return this;
}

@Override
public Builder setDnsSecConfig(DnsSecConfig dnsSecConfig) {
infoBuilder.setDnsSecConfig(dnsSecConfig);
return this;
}

@Override
public Zone build() {
return new Zone(dns, infoBuilder);
Expand Down

0 comments on commit b3bdbd1

Please sign in to comment.