diff --git a/scaleway-async/scaleway_async/tem/v1alpha1/api.py b/scaleway-async/scaleway_async/tem/v1alpha1/api.py index db7166175..30e91467b 100644 --- a/scaleway-async/scaleway_async/tem/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/tem/v1alpha1/api.py @@ -261,7 +261,7 @@ async def list_emails( :param since: (Optional) List emails created after this date. :param until: (Optional) List emails created before this date. :param mail_from: (Optional) List emails sent with this sender's email address. - :param mail_to: List emails sent to this recipient's email address. + :param mail_to: Deprecated. List emails sent to this recipient's email address. :param mail_rcpt: (Optional) List emails sent to this recipient's email address. :param statuses: (Optional) List emails with any of these statuses. :param subject: (Optional) List emails with this subject. @@ -337,7 +337,7 @@ async def list_emails_all( :param since: (Optional) List emails created after this date. :param until: (Optional) List emails created before this date. :param mail_from: (Optional) List emails sent with this sender's email address. - :param mail_to: List emails sent to this recipient's email address. + :param mail_to: Deprecated. List emails sent to this recipient's email address. :param mail_rcpt: (Optional) List emails sent to this recipient's email address. :param statuses: (Optional) List emails with any of these statuses. :param subject: (Optional) List emails with this subject. @@ -461,19 +461,19 @@ async def create_domain( self, *, domain_name: str, - accept_tos: bool, autoconfig: bool, region: Optional[ScwRegion] = None, project_id: Optional[str] = None, + accept_tos: Optional[bool] = None, ) -> Domain: """ Register a domain in a project. You must specify the `region`, `project_id` and `domain_name` to register a domain in a specific Project. :param domain_name: Fully qualified domain dame. - :param accept_tos: Accept Scaleway's Terms of Service. :param autoconfig: Activate auto-configuration of the domain's DNS zone. :param region: Region to target. If none is passed will use default region from the config. :param project_id: ID of the project to which the domain belongs. + :param accept_tos: Deprecated. Accept Scaleway's Terms of Service. :return: :class:`Domain ` Usage: @@ -481,7 +481,6 @@ async def create_domain( result = await api.create_domain( domain_name="example", - accept_tos=False, autoconfig=False, ) """ @@ -496,10 +495,10 @@ async def create_domain( body=marshal_CreateDomainRequest( CreateDomainRequest( domain_name=domain_name, - accept_tos=accept_tos, autoconfig=autoconfig, region=region, project_id=project_id, + accept_tos=accept_tos, ), self.client, ), diff --git a/scaleway-async/scaleway_async/tem/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/tem/v1alpha1/marshalling.py index 9d454d9d4..453356bb7 100644 --- a/scaleway-async/scaleway_async/tem/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/tem/v1alpha1/marshalling.py @@ -930,15 +930,15 @@ def marshal_CreateDomainRequest( if request.domain_name is not None: output["domain_name"] = request.domain_name - if request.accept_tos is not None: - output["accept_tos"] = request.accept_tos - if request.autoconfig is not None: output["autoconfig"] = request.autoconfig if request.project_id is not None: output["project_id"] = request.project_id or defaults.default_project_id + if request.accept_tos is not None: + output["accept_tos"] = request.accept_tos + return output diff --git a/scaleway-async/scaleway_async/tem/v1alpha1/types.py b/scaleway-async/scaleway_async/tem/v1alpha1/types.py index 8c14d630f..dc7a8a3e3 100644 --- a/scaleway-async/scaleway_async/tem/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/tem/v1alpha1/types.py @@ -388,7 +388,7 @@ class Email: rcpt_to: Optional[str] """ - Email address of the recipient. + Deprecated. Email address of the recipient. """ rcpt_type: EmailRcptType @@ -578,7 +578,7 @@ class Domain: last_error: Optional[str] """ - Error message returned if the last check failed. + Deprecated. Error message returned if the last check failed. """ statistics: Optional[DomainStatistics] @@ -818,11 +818,6 @@ class CreateDomainRequest: Fully qualified domain dame. """ - accept_tos: bool - """ - Accept Scaleway's Terms of Service. - """ - autoconfig: bool """ Activate auto-configuration of the domain's DNS zone. @@ -838,6 +833,11 @@ class CreateDomainRequest: ID of the project to which the domain belongs. """ + accept_tos: Optional[bool] + """ + Deprecated. Accept Scaleway's Terms of Service. + """ + @dataclass class CreateEmailRequest: @@ -1250,7 +1250,7 @@ class ListEmailsRequest: mail_to: Optional[str] """ - List emails sent to this recipient's email address. + Deprecated. List emails sent to this recipient's email address. """ mail_rcpt: Optional[str] diff --git a/scaleway/scaleway/tem/v1alpha1/api.py b/scaleway/scaleway/tem/v1alpha1/api.py index 390cb9dd5..b3aefea5c 100644 --- a/scaleway/scaleway/tem/v1alpha1/api.py +++ b/scaleway/scaleway/tem/v1alpha1/api.py @@ -261,7 +261,7 @@ def list_emails( :param since: (Optional) List emails created after this date. :param until: (Optional) List emails created before this date. :param mail_from: (Optional) List emails sent with this sender's email address. - :param mail_to: List emails sent to this recipient's email address. + :param mail_to: Deprecated. List emails sent to this recipient's email address. :param mail_rcpt: (Optional) List emails sent to this recipient's email address. :param statuses: (Optional) List emails with any of these statuses. :param subject: (Optional) List emails with this subject. @@ -337,7 +337,7 @@ def list_emails_all( :param since: (Optional) List emails created after this date. :param until: (Optional) List emails created before this date. :param mail_from: (Optional) List emails sent with this sender's email address. - :param mail_to: List emails sent to this recipient's email address. + :param mail_to: Deprecated. List emails sent to this recipient's email address. :param mail_rcpt: (Optional) List emails sent to this recipient's email address. :param statuses: (Optional) List emails with any of these statuses. :param subject: (Optional) List emails with this subject. @@ -461,19 +461,19 @@ def create_domain( self, *, domain_name: str, - accept_tos: bool, autoconfig: bool, region: Optional[ScwRegion] = None, project_id: Optional[str] = None, + accept_tos: Optional[bool] = None, ) -> Domain: """ Register a domain in a project. You must specify the `region`, `project_id` and `domain_name` to register a domain in a specific Project. :param domain_name: Fully qualified domain dame. - :param accept_tos: Accept Scaleway's Terms of Service. :param autoconfig: Activate auto-configuration of the domain's DNS zone. :param region: Region to target. If none is passed will use default region from the config. :param project_id: ID of the project to which the domain belongs. + :param accept_tos: Deprecated. Accept Scaleway's Terms of Service. :return: :class:`Domain ` Usage: @@ -481,7 +481,6 @@ def create_domain( result = api.create_domain( domain_name="example", - accept_tos=False, autoconfig=False, ) """ @@ -496,10 +495,10 @@ def create_domain( body=marshal_CreateDomainRequest( CreateDomainRequest( domain_name=domain_name, - accept_tos=accept_tos, autoconfig=autoconfig, region=region, project_id=project_id, + accept_tos=accept_tos, ), self.client, ), diff --git a/scaleway/scaleway/tem/v1alpha1/marshalling.py b/scaleway/scaleway/tem/v1alpha1/marshalling.py index 9d454d9d4..453356bb7 100644 --- a/scaleway/scaleway/tem/v1alpha1/marshalling.py +++ b/scaleway/scaleway/tem/v1alpha1/marshalling.py @@ -930,15 +930,15 @@ def marshal_CreateDomainRequest( if request.domain_name is not None: output["domain_name"] = request.domain_name - if request.accept_tos is not None: - output["accept_tos"] = request.accept_tos - if request.autoconfig is not None: output["autoconfig"] = request.autoconfig if request.project_id is not None: output["project_id"] = request.project_id or defaults.default_project_id + if request.accept_tos is not None: + output["accept_tos"] = request.accept_tos + return output diff --git a/scaleway/scaleway/tem/v1alpha1/types.py b/scaleway/scaleway/tem/v1alpha1/types.py index 8c14d630f..dc7a8a3e3 100644 --- a/scaleway/scaleway/tem/v1alpha1/types.py +++ b/scaleway/scaleway/tem/v1alpha1/types.py @@ -388,7 +388,7 @@ class Email: rcpt_to: Optional[str] """ - Email address of the recipient. + Deprecated. Email address of the recipient. """ rcpt_type: EmailRcptType @@ -578,7 +578,7 @@ class Domain: last_error: Optional[str] """ - Error message returned if the last check failed. + Deprecated. Error message returned if the last check failed. """ statistics: Optional[DomainStatistics] @@ -818,11 +818,6 @@ class CreateDomainRequest: Fully qualified domain dame. """ - accept_tos: bool - """ - Accept Scaleway's Terms of Service. - """ - autoconfig: bool """ Activate auto-configuration of the domain's DNS zone. @@ -838,6 +833,11 @@ class CreateDomainRequest: ID of the project to which the domain belongs. """ + accept_tos: Optional[bool] + """ + Deprecated. Accept Scaleway's Terms of Service. + """ + @dataclass class CreateEmailRequest: @@ -1250,7 +1250,7 @@ class ListEmailsRequest: mail_to: Optional[str] """ - List emails sent to this recipient's email address. + Deprecated. List emails sent to this recipient's email address. """ mail_rcpt: Optional[str]