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
2 changes: 2 additions & 0 deletions scaleway-async/scaleway_async/domain/v2beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .types import ContactExtensionFRMode
from .types import ContactExtensionNLLegalForm
from .types import ContactLegalForm
from .types import ContactStatus
from .types import DNSZoneStatus
from .types import DSRecordAlgorithm
from .types import DSRecordDigestType
Expand Down Expand Up @@ -123,6 +124,7 @@
"ContactExtensionFRMode",
"ContactExtensionNLLegalForm",
"ContactLegalForm",
"ContactStatus",
"DNSZoneStatus",
"DSRecordAlgorithm",
"DSRecordDigestType",
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 @@ -653,6 +653,9 @@ def unmarshal_Contact(data: Any) -> Contact:
field = data.get("state", None)
args["state"] = field

field = data.get("status", None)
args["status"] = field

field = data.get("vat_identification_code", None)
args["vat_identification_code"] = field

Expand Down Expand Up @@ -1191,6 +1194,9 @@ def unmarshal_Task(data: Any) -> Task:

args: Dict[str, Any] = {}

field = data.get("contact_identifier", None)
args["contact_identifier"] = field

field = data.get("domain", None)
args["domain"] = field

Expand Down
47 changes: 47 additions & 0 deletions scaleway-async/scaleway_async/domain/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ def __str__(self) -> str:
return str(self.value)


class ContactStatus(str, Enum, metaclass=StrEnumMeta):
STATUS_UNKNOWN = "status_unknown"
ACTIVE = "active"
PENDING = "pending"

def __str__(self) -> str:
return str(self.value)


class DNSZoneStatus(str, Enum, metaclass=StrEnumMeta):
UNKNOWN = "unknown"
ACTIVE = "active"
Expand Down Expand Up @@ -466,6 +475,8 @@ class Contact:

extension_nl: Optional[ContactExtensionNL]

status: ContactStatus


@dataclass
class ContactExtensionEU:
Expand Down Expand Up @@ -1317,23 +1328,59 @@ class SearchAvailableDomainsResponse:

@dataclass
class Task:
"""
Task.
"""

id: str
"""
The unique identifier of the task.
"""

project_id: str
"""
The project ID associated to the task.
"""

organization_id: str
"""
The organization ID associated to the task.
"""

domain: Optional[str]
"""
The domain name associated to the task.
"""

type_: TaskType
"""
The type of the task.
"""

status: TaskStatus
"""
The status of the task.
"""

started_at: Optional[datetime]
"""
Start date of the task.
"""

updated_at: Optional[datetime]
"""
Last update of the task.
"""

message: Optional[str]
"""
Error message associated to the task.
"""

contact_identifier: Optional[str]
"""
Human-friendly contact identifier used when the task concerns a contact.
"""


@dataclass
Expand Down
2 changes: 2 additions & 0 deletions scaleway/scaleway/domain/v2beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .types import ContactExtensionFRMode
from .types import ContactExtensionNLLegalForm
from .types import ContactLegalForm
from .types import ContactStatus
from .types import DNSZoneStatus
from .types import DSRecordAlgorithm
from .types import DSRecordDigestType
Expand Down Expand Up @@ -123,6 +124,7 @@
"ContactExtensionFRMode",
"ContactExtensionNLLegalForm",
"ContactLegalForm",
"ContactStatus",
"DNSZoneStatus",
"DSRecordAlgorithm",
"DSRecordDigestType",
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 @@ -653,6 +653,9 @@ def unmarshal_Contact(data: Any) -> Contact:
field = data.get("state", None)
args["state"] = field

field = data.get("status", None)
args["status"] = field

field = data.get("vat_identification_code", None)
args["vat_identification_code"] = field

Expand Down Expand Up @@ -1191,6 +1194,9 @@ def unmarshal_Task(data: Any) -> Task:

args: Dict[str, Any] = {}

field = data.get("contact_identifier", None)
args["contact_identifier"] = field

field = data.get("domain", None)
args["domain"] = field

Expand Down
47 changes: 47 additions & 0 deletions scaleway/scaleway/domain/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ def __str__(self) -> str:
return str(self.value)


class ContactStatus(str, Enum, metaclass=StrEnumMeta):
STATUS_UNKNOWN = "status_unknown"
ACTIVE = "active"
PENDING = "pending"

def __str__(self) -> str:
return str(self.value)


class DNSZoneStatus(str, Enum, metaclass=StrEnumMeta):
UNKNOWN = "unknown"
ACTIVE = "active"
Expand Down Expand Up @@ -466,6 +475,8 @@ class Contact:

extension_nl: Optional[ContactExtensionNL]

status: ContactStatus


@dataclass
class ContactExtensionEU:
Expand Down Expand Up @@ -1317,23 +1328,59 @@ class SearchAvailableDomainsResponse:

@dataclass
class Task:
"""
Task.
"""

id: str
"""
The unique identifier of the task.
"""

project_id: str
"""
The project ID associated to the task.
"""

organization_id: str
"""
The organization ID associated to the task.
"""

domain: Optional[str]
"""
The domain name associated to the task.
"""

type_: TaskType
"""
The type of the task.
"""

status: TaskStatus
"""
The status of the task.
"""

started_at: Optional[datetime]
"""
Start date of the task.
"""

updated_at: Optional[datetime]
"""
Last update of the task.
"""

message: Optional[str]
"""
Error message associated to the task.
"""

contact_identifier: Optional[str]
"""
Human-friendly contact identifier used when the task concerns a contact.
"""


@dataclass
Expand Down