@@ -112,9 +112,6 @@ func (o *Zone) idOrName() (string, error) {
112112//
113113// See https://docs.hetzner.cloud/reference/cloud#zones and
114114// https://docs.hetzner.cloud/reference/cloud#zone-rrsets.
115- //
116- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
117- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
118115type ZoneClient struct {
119116 client * Client
120117 Action * ResourceActionClient
@@ -123,29 +120,20 @@ type ZoneClient struct {
123120// GetByID returns a single [Zone].
124121//
125122// See https://docs.hetzner.cloud/reference/cloud#zones-get-a-zone
126- //
127- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
128- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
129123func (c * ZoneClient ) GetByID (ctx context.Context , id int64 ) (* Zone , * Response , error ) {
130124 return c .getByIDOrName (ctx , strconv .FormatInt (id , 10 ))
131125}
132126
133127// GetByName returns a single [Zone].
134128//
135129// See https://docs.hetzner.cloud/reference/cloud#zones-get-a-zone
136- //
137- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
138- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
139130func (c * ZoneClient ) GetByName (ctx context.Context , name string ) (* Zone , * Response , error ) {
140131 return c .getByIDOrName (ctx , name )
141132}
142133
143134// Get returns a single [Zone].
144135//
145136// See https://docs.hetzner.cloud/reference/cloud#zones-get-a-zone
146- //
147- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
148- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
149137func (c * ZoneClient ) Get (ctx context.Context , idOrName string ) (* Zone , * Response , error ) {
150138 return c .getByIDOrName (ctx , idOrName )
151139}
@@ -191,9 +179,6 @@ func (l ZoneListOpts) values() url.Values {
191179// List returns a list of [Zone] for a specific page.
192180//
193181// See https://docs.hetzner.cloud/reference/cloud#zones-list-zones
194- //
195- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
196- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
197182func (c * ZoneClient ) List (ctx context.Context , opts ZoneListOpts ) ([]* Zone , * Response , error ) {
198183 const opPath = "/zones?%s"
199184 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -211,19 +196,13 @@ func (c *ZoneClient) List(ctx context.Context, opts ZoneListOpts) ([]*Zone, *Res
211196// All returns a list of all [Zone].
212197//
213198// See https://docs.hetzner.cloud/reference/cloud#zones-list-zones
214- //
215- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
216- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
217199func (c * ZoneClient ) All (ctx context.Context ) ([]* Zone , error ) {
218200 return c .AllWithOpts (ctx , ZoneListOpts {ListOpts : ListOpts {PerPage : 50 }})
219201}
220202
221203// AllWithOpts returns a list of all [Zone] with the given options.
222204//
223205// See https://docs.hetzner.cloud/reference/cloud#zones-list-zones
224- //
225- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
226- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
227206func (c * ZoneClient ) AllWithOpts (ctx context.Context , opts ZoneListOpts ) ([]* Zone , error ) {
228207 return iterPages (func (page int ) ([]* Zone , * Response , error ) {
229208 opts .Page = page
@@ -271,9 +250,6 @@ type ZoneCreateResult struct {
271250// Create creates a new [Zone] from the given options.
272251//
273252// See https://docs.hetzner.cloud/reference/cloud#zones-create-a-zone
274- //
275- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
276- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
277253func (c * ZoneClient ) Create (ctx context.Context , opts ZoneCreateOpts ) (ZoneCreateResult , * Response , error ) {
278254 const opPath = "/zones"
279255 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -303,9 +279,6 @@ type ZoneUpdateOpts struct {
303279// Update updates a [Zone] with the given options.
304280//
305281// See https://docs.hetzner.cloud/reference/cloud#zones-update-a-zone
306- //
307- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
308- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
309282func (c * ZoneClient ) Update (ctx context.Context , zone * Zone , opts ZoneUpdateOpts ) (* Zone , * Response , error ) {
310283 const opPath = "/zones/%s"
311284 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -335,9 +308,6 @@ type ZoneDeleteResult struct {
335308// Delete deletes a [Zone].
336309//
337310// See https://docs.hetzner.cloud/reference/cloud#zones-delete-a-zone
338- //
339- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
340- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
341311func (c * ZoneClient ) Delete (ctx context.Context , zone * Zone ) (ZoneDeleteResult , * Response , error ) {
342312 const opPath = "/zones/%s"
343313 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -369,9 +339,6 @@ type ZoneExportZonefileResult struct {
369339// ExportZonefile returns a generated [Zone] file in BIND (RFC 1034/1035) format.
370340//
371341// See https://docs.hetzner.cloud/reference/cloud#zones-export-a-zone-file
372- //
373- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
374- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
375342func (c * ZoneClient ) ExportZonefile (ctx context.Context , zone * Zone ) (ZoneExportZonefileResult , * Response , error ) {
376343 const opPath = "/zones/%s/zonefile"
377344 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -403,9 +370,6 @@ type ZoneImportZonefileOpts struct {
403370// ImportZonefile imports a zone file, replacing all resource record sets (RRSets).
404371//
405372// See https://docs.hetzner.cloud/reference/cloud#zone-actions-import-a-zone-file
406- //
407- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
408- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
409373func (c * ZoneClient ) ImportZonefile (ctx context.Context , zone * Zone , opts ZoneImportZonefileOpts ) (* Action , * Response , error ) {
410374 const opPath = "/zones/%s/actions/import_zonefile"
411375 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -435,9 +399,6 @@ type ZoneChangeProtectionOpts struct {
435399// ChangeProtection changes the protection of a [Zone].
436400//
437401// See https://docs.hetzner.cloud/reference/cloud#zone-actions-change-a-zones-protection
438- //
439- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
440- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
441402func (c * ZoneClient ) ChangeProtection (ctx context.Context , zone * Zone , opts ZoneChangeProtectionOpts ) (* Action , * Response , error ) {
442403 const opPath = "/zones/%s/actions/change_protection"
443404 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -467,9 +428,6 @@ type ZoneChangeTTLOpts struct {
467428// ChangeTTL changes the TTL of a [Zone].
468429//
469430// See https://docs.hetzner.cloud/reference/cloud#zone-actions-change-a-zones-default-ttl
470- //
471- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
472- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
473431func (c * ZoneClient ) ChangeTTL (ctx context.Context , zone * Zone , opts ZoneChangeTTLOpts ) (* Action , * Response , error ) {
474432 const opPath = "/zones/%s/actions/change_ttl"
475433 ctx = ctxutil .SetOpPath (ctx , opPath )
@@ -509,9 +467,6 @@ type ZoneChangePrimaryNameserversOptsPrimaryNameserver struct {
509467// ChangePrimaryNameservers changes the primary nameservers of a [Zone].
510468//
511469// See https://docs.hetzner.cloud/reference/cloud#zone-actions-change-a-zones-primary-nameservers
512- //
513- // Experimental: DNS API is in beta, breaking changes may occur within minor releases.
514- // See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta
515470func (c * ZoneClient ) ChangePrimaryNameservers (ctx context.Context , zone * Zone , opts ZoneChangePrimaryNameserversOpts ) (* Action , * Response , error ) {
516471 const opPath = "/zones/%s/actions/change_primary_nameservers"
517472 ctx = ctxutil .SetOpPath (ctx , opPath )
0 commit comments