@@ -261,7 +261,7 @@ async def list_emails(
261261 :param since: (Optional) List emails created after this date.
262262 :param until: (Optional) List emails created before this date.
263263 :param mail_from: (Optional) List emails sent with this sender's email address.
264- :param mail_to: List emails sent to this recipient's email address.
264+ :param mail_to: Deprecated. List emails sent to this recipient's email address.
265265 :param mail_rcpt: (Optional) List emails sent to this recipient's email address.
266266 :param statuses: (Optional) List emails with any of these statuses.
267267 :param subject: (Optional) List emails with this subject.
@@ -337,7 +337,7 @@ async def list_emails_all(
337337 :param since: (Optional) List emails created after this date.
338338 :param until: (Optional) List emails created before this date.
339339 :param mail_from: (Optional) List emails sent with this sender's email address.
340- :param mail_to: List emails sent to this recipient's email address.
340+ :param mail_to: Deprecated. List emails sent to this recipient's email address.
341341 :param mail_rcpt: (Optional) List emails sent to this recipient's email address.
342342 :param statuses: (Optional) List emails with any of these statuses.
343343 :param subject: (Optional) List emails with this subject.
@@ -461,27 +461,26 @@ async def create_domain(
461461 self ,
462462 * ,
463463 domain_name : str ,
464- accept_tos : bool ,
465464 autoconfig : bool ,
466465 region : Optional [ScwRegion ] = None ,
467466 project_id : Optional [str ] = None ,
467+ accept_tos : Optional [bool ] = None ,
468468 ) -> Domain :
469469 """
470470 Register a domain in a project.
471471 You must specify the `region`, `project_id` and `domain_name` to register a domain in a specific Project.
472472 :param domain_name: Fully qualified domain dame.
473- :param accept_tos: Accept Scaleway's Terms of Service.
474473 :param autoconfig: Activate auto-configuration of the domain's DNS zone.
475474 :param region: Region to target. If none is passed will use default region from the config.
476475 :param project_id: ID of the project to which the domain belongs.
476+ :param accept_tos: Deprecated. Accept Scaleway's Terms of Service.
477477 :return: :class:`Domain <Domain>`
478478
479479 Usage:
480480 ::
481481
482482 result = await api.create_domain(
483483 domain_name="example",
484- accept_tos=False,
485484 autoconfig=False,
486485 )
487486 """
@@ -496,10 +495,10 @@ async def create_domain(
496495 body = marshal_CreateDomainRequest (
497496 CreateDomainRequest (
498497 domain_name = domain_name ,
499- accept_tos = accept_tos ,
500498 autoconfig = autoconfig ,
501499 region = region ,
502500 project_id = project_id ,
501+ accept_tos = accept_tos ,
503502 ),
504503 self .client ,
505504 ),
0 commit comments