Skip to content

Commit 23aa5e2

Browse files
authored
docs(domain): revamp (#615)
1 parent 31587c1 commit 23aa5e2

File tree

2 files changed

+120
-114
lines changed

2 files changed

+120
-114
lines changed

packages/clients/src/api/domain/v2beta1/api.gen.ts

Lines changed: 61 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ const jsonContentHeaders = {
159159
}
160160

161161
/**
162-
* DNS API.
162+
* Domains and DNS API documentation.
163163
*
164-
* DNS API. Manage your DNS zones and records.
164+
* Domains and DNS API documetation. Manage your domains, DNS zones and records
165+
* with the Domains and DNS API.
165166
*/
166167
export class API extends ParentAPI {
167168
protected pageOfListDNSZones = (request: Readonly<ListDNSZonesRequest>) =>
@@ -186,8 +187,8 @@ export class API extends ParentAPI {
186187
)
187188

188189
/**
189-
* List DNS zones. Returns a list of manageable DNS zones. You can filter the
190-
* DNS zones by domain name.
190+
* List DNS zones. Retrieve the list of DNS zones you can manage and filter
191+
* DNS zones associated with specific domain names.
191192
*
192193
* @param request - The request {@link ListDNSZonesRequest}
193194
* @returns A Promise of ListDNSZonesResponse
@@ -196,7 +197,8 @@ export class API extends ParentAPI {
196197
enrichForPagination('dnsZones', this.pageOfListDNSZones, request)
197198

198199
/**
199-
* Create a DNS zone. Create a new DNS zone.
200+
* Create a DNS zone. Create a new DNS zone specified by the domain name, the
201+
* subdomain and the Project ID.
200202
*
201203
* @param request - The request {@link CreateDNSZoneRequest}
202204
* @returns A Promise of DNSZone
@@ -215,7 +217,7 @@ export class API extends ParentAPI {
215217
)
216218

217219
/**
218-
* Update a DNS zone. Update the name and/or the organizations for a DNS zone.
220+
* Update a DNS zone. Update the name and/or the Organizations for a DNS zone.
219221
*
220222
* @param request - The request {@link UpdateDNSZoneRequest}
221223
* @returns A Promise of DNSZone
@@ -237,8 +239,8 @@ export class API extends ParentAPI {
237239
)
238240

239241
/**
240-
* Clone a DNS zone. Clone an existed DNS zone with all its records into a new
241-
* one.
242+
* Clone a DNS zone. Clone an existing DNS zone with all its records into a
243+
* new DNS zone.
242244
*
243245
* @param request - The request {@link CloneDNSZoneRequest}
244246
* @returns A Promise of DNSZone
@@ -260,7 +262,7 @@ export class API extends ParentAPI {
260262
)
261263

262264
/**
263-
* Delete DNS zone. Delete a DNS zone and all it's records.
265+
* Delete a DNS zone. Delete a DNS zone and all its records.
264266
*
265267
* @param request - The request {@link DeleteDNSZoneRequest}
266268
* @returns A Promise of DeleteDNSZoneResponse
@@ -308,8 +310,9 @@ export class API extends ParentAPI {
308310
)
309311

310312
/**
311-
* List DNS zone records. Returns a list of DNS records of a DNS zone with
312-
* default NS. You can filter the records by type and name.
313+
* List records within a DNS zone. Retrieve a list of DNS records within a DNS
314+
* zone that has default name servers. You can filter records by type and
315+
* name.
313316
*
314317
* @param request - The request {@link ListDNSZoneRecordsRequest}
315318
* @returns A Promise of ListDNSZoneRecordsResponse
@@ -318,22 +321,18 @@ export class API extends ParentAPI {
318321
enrichForPagination('records', this.pageOfListDNSZoneRecords, request)
319322

320323
/**
321-
* Update DNS zone records. Only available with default NS.<br/> Send a list
322-
* of actions and records.
324+
* Update records within a DNS zone. Update records within a DNS zone that has
325+
* default name servers and perform several actions on your records.
323326
*
324-
* Action can be:
327+
* Actions include:
325328
*
326-
* - Add:
327-
* - Add new record
328-
* - Can be more specific and add a new IP to an existing A record for example
329-
* - Set:
330-
* - Edit a record
331-
* - Can be more specific and edit an IP from an existing A record for example
332-
* - Delete:
333-
* - Delete a record
334-
* - Can be more specific and delete an IP from an existing A record for example
335-
* - Clear:
336-
* - Delete all records from a DNS zone
329+
* - Add: allows you to add a new record or add a new IP to an existing A
330+
* record, for example
331+
* - Set: allows you to edit a record or edit an IP from an existing A record,
332+
* for example
333+
* - Delete: allows you to delete a record or delete an IP from an existing A
334+
* record, for example
335+
* - Clear: allows you to delete all records from a DNS zone
337336
*
338337
* All edits will be versioned.
339338
*
@@ -357,8 +356,8 @@ export class API extends ParentAPI {
357356
)
358357

359358
/**
360-
* List DNS zone nameservers. Returns a list of Nameservers and their optional
361-
* glue records for a DNS zone.
359+
* List name servers within a DNS zone. Retrieve a list of name servers within
360+
* a DNS zone and their optional glue records.
362361
*
363362
* @param request - The request {@link ListDNSZoneNameserversRequest}
364363
* @returns A Promise of ListDNSZoneNameserversResponse
@@ -377,8 +376,8 @@ export class API extends ParentAPI {
377376
)
378377

379378
/**
380-
* Update DNS zone nameservers. Update DNS zone nameservers and set optional
381-
* glue records.
379+
* Update name servers within a DNS zone. Update name servers within a DNS
380+
* zone and set optional glue records.
382381
*
383382
* @param request - The request {@link UpdateDNSZoneNameserversRequest}
384383
* @returns A Promise of UpdateDNSZoneNameserversResponse
@@ -402,8 +401,8 @@ export class API extends ParentAPI {
402401
)
403402

404403
/**
405-
* Clear DNS zone records. Only available with default NS.<br/> Delete all the
406-
* records from a DNS zone. All edits will be versioned.
404+
* Clear records within a DNS zone. Delete all records within a DNS zone that
405+
* has default name servers.<br/> All edits will be versioned.
407406
*
408407
* @param request - The request {@link ClearDNSZoneRecordsRequest}
409408
* @returns A Promise of ClearDNSZoneRecordsResponse
@@ -421,7 +420,8 @@ export class API extends ParentAPI {
421420
)
422421

423422
/**
424-
* Export raw DNS zone. Get a DNS zone in a given format with default NS.
423+
* Export a raw DNS zone. Export a DNS zone with default name servers, in a
424+
* specific format.
425425
*
426426
* @param request - The request {@link ExportRawDNSZoneRequest}
427427
* @returns A Promise of Blob
@@ -441,8 +441,8 @@ export class API extends ParentAPI {
441441
})
442442

443443
/**
444-
* Import raw DNS zone. Import and replace records from a given provider
445-
* format with default NS.
444+
* Import a raw DNS zone. Import and replace the format of records from a
445+
* given provider, with default name servers.
446446
*
447447
* @param request - The request {@link ImportRawDNSZoneRequest}
448448
* @returns A Promise of ImportRawDNSZoneResponse
@@ -464,8 +464,8 @@ export class API extends ParentAPI {
464464
)
465465

466466
/**
467-
* Import provider DNS zone. Import and replace records from a given provider
468-
* format with default NS.
467+
* Import a DNS zone from another provider. Import and replace the format of
468+
* records from a given provider, with default name servers.
469469
*
470470
* @param request - The request {@link ImportProviderDNSZoneRequest}
471471
* @returns A Promise of ImportProviderDNSZoneResponse
@@ -487,8 +487,9 @@ export class API extends ParentAPI {
487487
)
488488

489489
/**
490-
* Refresh DNS zone. Refresh SOA DNS zone. You can recreate the given DNS zone
491-
* and its sub DNS zone if needed.
490+
* Refresh a DNS zone. Refresh an SOA DNS zone to reload the records in the
491+
* DNS zone and update the SOA serial. You can recreate the given DNS zone and
492+
* its sub DNS zone if needed.
492493
*
493494
* @param request - The request {@link RefreshDNSZoneRequest}
494495
* @returns A Promise of RefreshDNSZoneResponse
@@ -531,9 +532,9 @@ export class API extends ParentAPI {
531532
)
532533

533534
/**
534-
* List DNS zone versions. Get a list of DNS zone versions.<br/> The maximum
535-
* version count is 100.<br/> If the count reaches this limit, the oldest
536-
* version will be deleted after each new modification.
535+
* List versions of a DNS zone. Retrieve a list of a DNS zone's versions.<br/>
536+
* The maximum version count is 100. If the count reaches this limit, the
537+
* oldest version will be deleted after each new modification.
537538
*
538539
* @param request - The request {@link ListDNSZoneVersionsRequest}
539540
* @returns A Promise of ListDNSZoneVersionsResponse
@@ -563,8 +564,8 @@ export class API extends ParentAPI {
563564
)
564565

565566
/**
566-
* List DNS zone version records. Get a list of records from a previous DNS
567-
* zone version.
567+
* List records from a given version of a specific DNS zone. Retrieve a list
568+
* of records from a specific DNS zone version.
568569
*
569570
* @param request - The request {@link ListDNSZoneVersionRecordsRequest}
570571
* @returns A Promise of ListDNSZoneVersionRecordsResponse
@@ -579,8 +580,8 @@ export class API extends ParentAPI {
579580
)
580581

581582
/**
582-
* Get DNS zone version diff. Get all differences from a previous DNS zone
583-
* version.
583+
* Access differences from a specific DNS zone version. Access a previous DNS
584+
* zone version to see the differences from another specific version.
584585
*
585586
* @param request - The request {@link GetDNSZoneVersionDiffRequest}
586587
* @returns A Promise of GetDNSZoneVersionDiffResponse
@@ -598,7 +599,8 @@ export class API extends ParentAPI {
598599
)
599600

600601
/**
601-
* Restore DNS zone version. Restore and activate a previous DNS zone version.
602+
* Restore a DNS zone version. Restore and activate a version of a specific
603+
* DNS zone.
602604
*
603605
* @param request - The request {@link RestoreDNSZoneVersionRequest}
604606
* @returns A Promise of RestoreDNSZoneVersionResponse
@@ -618,7 +620,8 @@ export class API extends ParentAPI {
618620
)
619621

620622
/**
621-
* Get the zone TLS certificate if it exists.
623+
* Get a DNS zone's TLS certificate. Get the DNS zone's TLS certificate. If
624+
* you do not have a certificate, the ouptut returns `no certificate found`.
622625
*
623626
* @param request - The request {@link GetSSLCertificateRequest}
624627
* @returns A Promise of SSLCertificate
@@ -658,7 +661,8 @@ export class API extends ParentAPI {
658661
)
659662

660663
/**
661-
* Create or return the zone TLS certificate.
664+
* Create or get the DNS zone's TLS certificate. Create a new TLS certificate
665+
* or retrieve information about an existing TLS certificate.
662666
*
663667
* @param request - The request {@link CreateSSLCertificateRequest}
664668
* @returns A Promise of SSLCertificate
@@ -697,7 +701,8 @@ export class API extends ParentAPI {
697701
)
698702

699703
/**
700-
* List all user TLS certificates.
704+
* List a user's TLS certificates. List all the TLS certificates a user has
705+
* created, specified by the user's Project ID and the DNS zone.
701706
*
702707
* @param request - The request {@link ListSSLCertificatesRequest}
703708
* @returns A Promise of ListSSLCertificatesResponse
@@ -706,7 +711,9 @@ export class API extends ParentAPI {
706711
enrichForPagination('certificates', this.pageOfListSSLCertificates, request)
707712

708713
/**
709-
* Delete an TLS certificate.
714+
* Delete a TLS certificate. Delete an existing TLS certificate specified by
715+
* its DNS zone. Deleting a TLS certificate is permanent and cannot be
716+
* undone.
710717
*
711718
* @param request - The request {@link DeleteSSLCertificateRequest}
712719
* @returns A Promise of DeleteSSLCertificateResponse
@@ -724,7 +731,8 @@ export class API extends ParentAPI {
724731
)
725732

726733
/**
727-
* Get the DNS zone TSIG Key. Get the DNS zone TSIG Key to allow AXFR request.
734+
* Get the DNS zone's TSIG key. Retrieve information about the TSIG key of a
735+
* given DNS zone to allow AXFR requests.
728736
*
729737
* @param request - The request {@link GetDNSZoneTsigKeyRequest}
730738
* @returns A Promise of GetDNSZoneTsigKeyResponse
@@ -742,7 +750,8 @@ export class API extends ParentAPI {
742750
)
743751

744752
/**
745-
* Delete the DNS zone TSIG Key.
753+
* Delete the DNS zone's TSIG key. Delete an existing TSIG key specified by
754+
* its DNS zone. Deleting a TSIG key is permanent and cannot be undone.
746755
*
747756
* @param request - The request {@link DeleteDNSZoneTsigKeyRequest}
748757
*/

0 commit comments

Comments
 (0)