Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/domain/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2695,6 +2695,7 @@ async def search_available_domains(
*,
domains: list[str],
strict_search: bool,
include_exact_match: bool,
tlds: Optional[list[str]] = None,
) -> SearchAvailableDomainsResponse:
"""
Expand All @@ -2704,6 +2705,7 @@ async def search_available_domains(
If the TLD list is empty or not set, the search returns the results from the most popular TLDs.
:param domains: A list of domain to search, TLD is optional.
:param strict_search: Search exact match.
:param include_exact_match: If an exact match is found, include it in response as a separate element.
:param tlds: Array of tlds to search on.
:return: :class:`SearchAvailableDomainsResponse <SearchAvailableDomainsResponse>`

Expand All @@ -2713,6 +2715,7 @@ async def search_available_domains(
result = await api.search_available_domains(
domains=[],
strict_search=False,
include_exact_match=False,
)
"""

Expand All @@ -2721,6 +2724,7 @@ async def search_available_domains(
"/domain/v2beta1/search-domains",
params={
"domains": domains,
"include_exact_match": include_exact_match,
"strict_search": strict_search,
"tlds": tlds,
},
Expand Down
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/domain/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2675,6 +2675,12 @@ def unmarshal_SearchAvailableDomainsResponse(
else:
args["available_domains"] = []

field = data.get("exact_match_domain", None)
if field is not None:
args["exact_match_domain"] = unmarshal_AvailableDomain(field)
else:
args["exact_match_domain"] = None

return SearchAvailableDomainsResponse(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/domain/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,11 @@ class RegistrarApiSearchAvailableDomainsRequest:
Search exact match.
"""

include_exact_match: bool
"""
If an exact match is found, include it in response as a separate element.
"""

tlds: Optional[list[str]] = field(default_factory=list)
"""
Array of tlds to search on.
Expand Down Expand Up @@ -1848,6 +1853,11 @@ class SearchAvailableDomainsResponse:
Array of available domains.
"""

exact_match_domain: Optional[AvailableDomain] = None
"""
If an exact match was asked and found, the result is in this field.
"""


@dataclass
class UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest:
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/domain/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,7 @@ def search_available_domains(
*,
domains: list[str],
strict_search: bool,
include_exact_match: bool,
tlds: Optional[list[str]] = None,
) -> SearchAvailableDomainsResponse:
"""
Expand All @@ -2702,6 +2703,7 @@ def search_available_domains(
If the TLD list is empty or not set, the search returns the results from the most popular TLDs.
:param domains: A list of domain to search, TLD is optional.
:param strict_search: Search exact match.
:param include_exact_match: If an exact match is found, include it in response as a separate element.
:param tlds: Array of tlds to search on.
:return: :class:`SearchAvailableDomainsResponse <SearchAvailableDomainsResponse>`

Expand All @@ -2711,6 +2713,7 @@ def search_available_domains(
result = api.search_available_domains(
domains=[],
strict_search=False,
include_exact_match=False,
)
"""

Expand All @@ -2719,6 +2722,7 @@ def search_available_domains(
"/domain/v2beta1/search-domains",
params={
"domains": domains,
"include_exact_match": include_exact_match,
"strict_search": strict_search,
"tlds": tlds,
},
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/domain/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2675,6 +2675,12 @@ def unmarshal_SearchAvailableDomainsResponse(
else:
args["available_domains"] = []

field = data.get("exact_match_domain", None)
if field is not None:
args["exact_match_domain"] = unmarshal_AvailableDomain(field)
else:
args["exact_match_domain"] = None

return SearchAvailableDomainsResponse(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/domain/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,11 @@ class RegistrarApiSearchAvailableDomainsRequest:
Search exact match.
"""

include_exact_match: bool
"""
If an exact match is found, include it in response as a separate element.
"""

tlds: Optional[list[str]] = field(default_factory=list)
"""
Array of tlds to search on.
Expand Down Expand Up @@ -1848,6 +1853,11 @@ class SearchAvailableDomainsResponse:
Array of available domains.
"""

exact_match_domain: Optional[AvailableDomain] = None
"""
If an exact match was asked and found, the result is in this field.
"""


@dataclass
class UnauthenticatedRegistrarApiSearchAvailableDomainsConsoleRequest:
Expand Down
Loading