Skip to content

Commit 63e4d1f

Browse files
authored
docs(registrar): reworked registrar doc (#212)
1 parent 3eaff4e commit 63e4d1f

File tree

4 files changed

+756
-648
lines changed

4 files changed

+756
-648
lines changed

scaleway-async/scaleway_async/domain/v2beta1/api.py

Lines changed: 56 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,8 @@ async def list_tasks(
13211321
) -> ListTasksResponse:
13221322
"""
13231323
List tasks.
1324-
List all account tasks.
1325-
You can filter the list by domain name.
1324+
List all operations performed on the account.
1325+
You can filter the list of tasks by domain name.
13261326
:param page:
13271327
:param page_size:
13281328
:param project_id:
@@ -1372,8 +1372,8 @@ async def list_tasks_all(
13721372
) -> List[Task]:
13731373
"""
13741374
List tasks.
1375-
List all account tasks.
1376-
You can filter the list by domain name.
1375+
List all operations performed on the account.
1376+
You can filter the list of tasks by domain name.
13771377
:param page:
13781378
:param page_size:
13791379
:param project_id:
@@ -1420,9 +1420,9 @@ async def buy_domains(
14201420
technical_contact: Optional[NewContact] = None,
14211421
) -> OrderResponse:
14221422
"""
1423-
Buy one or more domains.
1423+
Purchase domains.
14241424
Request the registration of domain names.
1425-
You can provide an already existing domain's contact or a new contact.
1425+
You can provide a domain's already existing contact or a new contact.
14261426
:param domains:
14271427
:param duration_in_years:
14281428
:param project_id:
@@ -1473,8 +1473,8 @@ async def renew_domains(
14731473
force_late_renewal: Optional[bool] = None,
14741474
) -> OrderResponse:
14751475
"""
1476-
Renew one or more domains.
1477-
Request the renewal of domain names.
1476+
Renew domains.
1477+
Request the renewal of one or more domain names.
14781478
:param domains:
14791479
:param duration_in_years:
14801480
:param force_late_renewal:
@@ -1519,7 +1519,7 @@ async def transfer_in_domain(
15191519
) -> OrderResponse:
15201520
"""
15211521
Transfer a domain.
1522-
Request the transfer from another registrar domain to Scaleway.
1522+
Request the transfer of a domain from another registrar to Scaleway Domains and DNS.
15231523
:param domains:
15241524
:param project_id:
15251525
:param owner_contact_id: One-of ('owner_contact_type'): at most one of 'owner_contact_id', 'owner_contact' could be set.
@@ -1566,11 +1566,11 @@ async def trade_domain(
15661566
new_owner_contact: Optional[NewContact] = None,
15671567
) -> OrderResponse:
15681568
"""
1569-
Trade a domain contact.
1570-
Request a trade for the contact owner.<br/>
1571-
If an `organization_id` is given, the change is from the current Scaleway account to another Scaleway account.<br/>
1572-
If no contact is given, the first contact of the other Scaleway account is taken.<br/>
1573-
If the other Scaleway account has no contact. An error occurs.
1569+
Trade a domain's contact.
1570+
Request to change a domain's contact owner.<br/>
1571+
If you specify the `organization_id` of the domain's new owner, the contact will change from the current owner's Scaleway account to the new owner's Scaleway account.<br/>
1572+
If the new owner's current contact information is not available, the first ever contact they have created for previous domains is taken into account to operate the change.<br/>
1573+
If the new owner has never created a contact to register domains before, an error message displays.
15741574
:param domain:
15751575
:param project_id:
15761576
:param new_owner_contact_id: One-of ('new_owner_contact_type'): at most one of 'new_owner_contact_id', 'new_owner_contact' could be set.
@@ -1676,9 +1676,9 @@ async def check_contacts_compatibility(
16761676
technical_contact: Optional[NewContact] = None,
16771677
) -> CheckContactsCompatibilityResponse:
16781678
"""
1679-
Check if contacts are compatible against a domain or a tld.
1680-
Check if contacts are compatible against a domain or a tld.
1681-
If not, it will return the information requiring a correction.
1679+
Check if contacts are compatible with a domain or a TLD.
1680+
Check whether contacts are compatible with a domain or a TLD.
1681+
If contacts are not compatible with either the domain or the TLD, the information that needs to be corrected is returned.
16821682
:param domains:
16831683
:param tlds:
16841684
:param owner_contact_id: One-of ('owner_contact_type'): at most one of 'owner_contact_id', 'owner_contact' could be set.
@@ -1727,7 +1727,7 @@ async def list_contacts(
17271727
) -> ListContactsResponse:
17281728
"""
17291729
List contacts.
1730-
Return a list of contacts with their domains and roles.
1730+
Retrieve the list of contacts and their associated domains and roles.
17311731
You can filter the list by domain name.
17321732
:param page:
17331733
:param page_size:
@@ -1769,7 +1769,7 @@ async def list_contacts_all(
17691769
) -> List[ContactRoles]:
17701770
"""
17711771
List contacts.
1772-
Return a list of contacts with their domains and roles.
1772+
Retrieve the list of contacts and their associated domains and roles.
17731773
You can filter the list by domain name.
17741774
:param page:
17751775
:param page_size:
@@ -1804,7 +1804,7 @@ async def get_contact(
18041804
) -> Contact:
18051805
"""
18061806
Get a contact.
1807-
Return a contact details retrieved from the registrar using a given contact ID.
1807+
Retrieve a contact's details from the registrar using the given contact's ID.
18081808
:param contact_id:
18091809
:return: :class:`Contact <Contact>`
18101810
@@ -1850,7 +1850,7 @@ async def update_contact(
18501850
) -> Contact:
18511851
"""
18521852
Update contact.
1853-
You can edit the contact coordinates.
1853+
Edit the contact's information.
18541854
:param contact_id:
18551855
:param email:
18561856
:param email_alt:
@@ -1932,7 +1932,7 @@ async def list_domains(
19321932
) -> ListDomainsResponse:
19331933
"""
19341934
List domains.
1935-
Returns a list of domains owned by the user.
1935+
Retrieve the list of domains you own.
19361936
:param page:
19371937
:param page_size:
19381938
:param order_by:
@@ -1985,7 +1985,7 @@ async def list_domains_all(
19851985
) -> List[DomainSummary]:
19861986
"""
19871987
List domains.
1988-
Returns a list of domains owned by the user.
1988+
Retrieve the list of domains you own.
19891989
:param page:
19901990
:param page_size:
19911991
:param order_by:
@@ -2030,8 +2030,8 @@ async def list_renewable_domains(
20302030
organization_id: Optional[str] = None,
20312031
) -> ListRenewableDomainsResponse:
20322032
"""
2033-
List scaleway domains that can or not be renewed.
2034-
Returns a list of domains owned by the user with a renew status and if renewable, the maximum renew duration in years.
2033+
List domains that can be renewed.
2034+
Retrieve the list of domains you own that can be renewed. You can also see the maximum renewal duration in years for your domains that are renewable.
20352035
:param page:
20362036
:param page_size:
20372037
:param order_by:
@@ -2071,8 +2071,8 @@ async def list_renewable_domains_all(
20712071
organization_id: Optional[str] = None,
20722072
) -> List[RenewableDomain]:
20732073
"""
2074-
List scaleway domains that can or not be renewed.
2075-
Returns a list of domains owned by the user with a renew status and if renewable, the maximum renew duration in years.
2074+
List domains that can be renewed.
2075+
Retrieve the list of domains you own that can be renewed. You can also see the maximum renewal duration in years for your domains that are renewable.
20762076
:param page:
20772077
:param page_size:
20782078
:param order_by:
@@ -2106,7 +2106,7 @@ async def get_domain(
21062106
) -> Domain:
21072107
"""
21082108
Get domain.
2109-
Returns a the domain with more informations.
2109+
Retrieve a specific domain and display the domain's information.
21102110
:param domain:
21112111
:return: :class:`Domain <Domain>`
21122112
@@ -2170,9 +2170,9 @@ async def update_domain(
21702170
administrative_contact: Optional[NewContact] = None,
21712171
) -> Domain:
21722172
"""
2173-
Update a domain.
2174-
Update the domain contacts or create a new one.<br/>
2175-
If you add the same contact for multiple roles. Only one ID will be created and used for all of them.
2173+
Update a domain's contacts.
2174+
Update contacts for a specific domain or create a new contact.<br/>
2175+
If you add the same contact for multiple roles (owner, administrative, technical), only one ID will be created and used for all of the roles.
21762176
:param domain:
21772177
:param technical_contact_id: One-of ('technical_contact_info'): at most one of 'technical_contact_id', 'technical_contact' could be set.
21782178
:param technical_contact: One-of ('technical_contact_info'): at most one of 'technical_contact_id', 'technical_contact' could be set.
@@ -2216,8 +2216,8 @@ async def lock_domain_transfer(
22162216
domain: str,
22172217
) -> Domain:
22182218
"""
2219-
Lock domain transfer.
2220-
Lock domain transfer. A locked domain transfer can't be transferred and the auth code can't be requested.
2219+
Lock the transfer of a domain.
2220+
Lock the transfer of a domain. This means that the domain cannot be transferred and the authorization code cannot be requested to your current registrar.
22212221
:param domain:
22222222
:return: :class:`Domain <Domain>`
22232223
@@ -2243,8 +2243,8 @@ async def unlock_domain_transfer(
22432243
domain: str,
22442244
) -> Domain:
22452245
"""
2246-
Unlock domain transfer.
2247-
Unlock domain transfer. An unlocked domain can be transferred and the auth code can be requested for this.
2246+
Unlock the transfer of a domain.
2247+
Unlock the transfer of a domain. This means that the domain can be transferred and the authorization code can be requested to your current registrar.
22482248
:param domain:
22492249
:return: :class:`Domain <Domain>`
22502250
@@ -2270,7 +2270,8 @@ async def enable_domain_auto_renew(
22702270
domain: str,
22712271
) -> Domain:
22722272
"""
2273-
Enable domain auto renew.
2273+
Enable auto renew.
2274+
Enable the `auto renew` feature for a domain. This means the domain will be automatically renewed before its expiry date.
22742275
:param domain:
22752276
:return: :class:`Domain <Domain>`
22762277
@@ -2296,7 +2297,8 @@ async def disable_domain_auto_renew(
22962297
domain: str,
22972298
) -> Domain:
22982299
"""
2299-
Disable domain auto renew.
2300+
Disable auto renew.
2301+
Disable the `auto renew` feature for a domain. This means the domain will not be renewed before its expiry date.
23002302
:param domain:
23012303
:return: :class:`Domain <Domain>`
23022304
@@ -2322,9 +2324,9 @@ async def get_domain_auth_code(
23222324
domain: str,
23232325
) -> GetDomainAuthCodeResponse:
23242326
"""
2325-
Return domain auth code.
2326-
If possible, return the auth code for an unlocked domain transfer, or an error if the domain is locked.
2327-
Some TLD may have a different procedure to retrieve the auth code, in that case, the information is given in the message field.
2327+
Get a domain's authorization code.
2328+
Retrieve the authorization code to tranfer an unlocked domain. The output returns an error if the domain is locked.
2329+
Some TLDs may have a different procedure to retrieve the authorization code. In that case, the information displays in the message field.
23282330
:param domain:
23292331
:return: :class:`GetDomainAuthCodeResponse <GetDomainAuthCodeResponse>`
23302332
@@ -2386,7 +2388,8 @@ async def disable_domain_dnssec(
23862388
domain: str,
23872389
) -> Domain:
23882390
"""
2389-
Disable domain DNSSEC.
2391+
Disable a domain's DNSSEC.
2392+
Disable DNSSEC for a domain.
23902393
:param domain:
23912394
:return: :class:`Domain <Domain>`
23922395
@@ -2415,9 +2418,9 @@ async def search_available_domains(
24152418
) -> SearchAvailableDomainsResponse:
24162419
"""
24172420
Search available domains.
2418-
Search a domain (or at maximum, 10 domains).
2421+
Search a domain or a maximum of 10 domains that are available.
24192422
2420-
If the TLD list is empty or not set the search returns the results from the most popular TLDs.
2423+
If the TLD list is empty or not set, the search returns the results from the most popular TLDs.
24212424
:param domains: A list of domain to search, TLD is optional.
24222425
:param tlds: Array of tlds to search on.
24232426
:param strict_search: Search exact match.
@@ -2453,7 +2456,8 @@ async def create_domain_host(
24532456
ips: Optional[List[str]] = None,
24542457
) -> Host:
24552458
"""
2456-
Create domain hostname with glue IPs.
2459+
Create a hostname for a domain.
2460+
Create a hostname for a domain with glue IPs.
24572461
:param domain:
24582462
:param name:
24592463
:param ips:
@@ -2494,7 +2498,8 @@ async def list_domain_hosts(
24942498
page_size: Optional[int] = None,
24952499
) -> ListDomainHostsResponse:
24962500
"""
2497-
List domain hostnames with they glue IPs.
2501+
List a domain's hostnames.
2502+
List a domain's hostnames using their glue IPs.
24982503
:param domain:
24992504
:param page:
25002505
:param page_size:
@@ -2528,7 +2533,8 @@ async def list_domain_hosts_all(
25282533
page_size: Optional[int] = None,
25292534
) -> List[Host]:
25302535
"""
2531-
List domain hostnames with they glue IPs.
2536+
List a domain's hostnames.
2537+
List a domain's hostnames using their glue IPs.
25322538
:param domain:
25332539
:param page:
25342540
:param page_size:
@@ -2559,7 +2565,8 @@ async def update_domain_host(
25592565
ips: Optional[List[str]] = None,
25602566
) -> Host:
25612567
"""
2562-
Update domain hostname with glue IPs.
2568+
Update a domain's hostname.
2569+
Update a domain's hostname with glue IPs.
25632570
:param domain:
25642571
:param name:
25652572
:param ips:
@@ -2600,7 +2607,8 @@ async def delete_domain_host(
26002607
name: str,
26012608
) -> Host:
26022609
"""
2603-
Delete domain hostname.
2610+
Delete a domain's hostname.
2611+
Delete a domain's hostname.
26042612
:param domain:
26052613
:param name:
26062614
:return: :class:`Host <Host>`

0 commit comments

Comments
 (0)