Skip to content

Commit a358d46

Browse files
authored
feat(domain): add informations on scaleway product using the domain/dnszone (#380)
1 parent aa70a8d commit a358d46

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from .types import DomainStatus
1515
from .types import HostStatus
1616
from .types import LanguageCode
17+
from .types import LinkedProduct
1718
from .types import ListContactsRequestRole
1819
from .types import ListDNSZoneRecordsRequestOrderBy
1920
from .types import ListDNSZonesRequestOrderBy
@@ -132,6 +133,7 @@
132133
"DomainStatus",
133134
"HostStatus",
134135
"LanguageCode",
136+
"LinkedProduct",
135137
"ListContactsRequestRole",
136138
"ListDNSZoneRecordsRequestOrderBy",
137139
"ListDNSZonesRequestOrderBy",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ def unmarshal_DNSZone(data: Any) -> DNSZone:
921921
field = data.get("domain", None)
922922
args["domain"] = field
923923

924+
field = data.get("linked_products", None)
925+
args["linked_products"] = field
926+
924927
field = data.get("message", None)
925928
args["message"] = field
926929

@@ -1342,6 +1345,9 @@ def unmarshal_Domain(data: Any) -> Domain:
13421345
field = data.get("is_external", None)
13431346
args["is_external"] = field
13441347

1348+
field = data.get("linked_products", None)
1349+
args["linked_products"] = field
1350+
13451351
field = data.get("organization_id", None)
13461352
args["organization_id"] = field
13471353

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ def __str__(self) -> str:
216216
return str(self.value)
217217

218218

219+
class LinkedProduct(str, Enum, metaclass=StrEnumMeta):
220+
UNKNOWN_PRODUCT = "unknown_product"
221+
VPC = "vpc"
222+
223+
def __str__(self) -> str:
224+
return str(self.value)
225+
226+
219227
class ListContactsRequestRole(str, Enum, metaclass=StrEnumMeta):
220228
UNKNOWN_ROLE = "unknown_role"
221229
OWNER = "owner"
@@ -573,6 +581,8 @@ class DNSZone:
573581

574582
project_id: str
575583

584+
linked_products: List[LinkedProduct]
585+
576586

577587
@dataclass
578588
class DNSZoneVersion:
@@ -683,6 +693,8 @@ class Domain:
683693

684694
tld: Optional[Tld]
685695

696+
linked_products: List[LinkedProduct]
697+
686698

687699
@dataclass
688700
class DomainDNSSEC:

scaleway/scaleway/domain/v2beta1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from .types import DomainStatus
1515
from .types import HostStatus
1616
from .types import LanguageCode
17+
from .types import LinkedProduct
1718
from .types import ListContactsRequestRole
1819
from .types import ListDNSZoneRecordsRequestOrderBy
1920
from .types import ListDNSZonesRequestOrderBy
@@ -132,6 +133,7 @@
132133
"DomainStatus",
133134
"HostStatus",
134135
"LanguageCode",
136+
"LinkedProduct",
135137
"ListContactsRequestRole",
136138
"ListDNSZoneRecordsRequestOrderBy",
137139
"ListDNSZonesRequestOrderBy",

scaleway/scaleway/domain/v2beta1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ def unmarshal_DNSZone(data: Any) -> DNSZone:
921921
field = data.get("domain", None)
922922
args["domain"] = field
923923

924+
field = data.get("linked_products", None)
925+
args["linked_products"] = field
926+
924927
field = data.get("message", None)
925928
args["message"] = field
926929

@@ -1342,6 +1345,9 @@ def unmarshal_Domain(data: Any) -> Domain:
13421345
field = data.get("is_external", None)
13431346
args["is_external"] = field
13441347

1348+
field = data.get("linked_products", None)
1349+
args["linked_products"] = field
1350+
13451351
field = data.get("organization_id", None)
13461352
args["organization_id"] = field
13471353

scaleway/scaleway/domain/v2beta1/types.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ def __str__(self) -> str:
216216
return str(self.value)
217217

218218

219+
class LinkedProduct(str, Enum, metaclass=StrEnumMeta):
220+
UNKNOWN_PRODUCT = "unknown_product"
221+
VPC = "vpc"
222+
223+
def __str__(self) -> str:
224+
return str(self.value)
225+
226+
219227
class ListContactsRequestRole(str, Enum, metaclass=StrEnumMeta):
220228
UNKNOWN_ROLE = "unknown_role"
221229
OWNER = "owner"
@@ -573,6 +581,8 @@ class DNSZone:
573581

574582
project_id: str
575583

584+
linked_products: List[LinkedProduct]
585+
576586

577587
@dataclass
578588
class DNSZoneVersion:
@@ -683,6 +693,8 @@ class Domain:
683693

684694
tld: Optional[Tld]
685695

696+
linked_products: List[LinkedProduct]
697+
686698

687699
@dataclass
688700
class DomainDNSSEC:

0 commit comments

Comments
 (0)