Skip to content

Commit ed66108

Browse files
authored
feat(webhosting): add send welcome email param at hosting creation (#663)
1 parent e3fc254 commit ed66108

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

scaleway-async/scaleway_async/webhosting/v1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ async def create_hosting(
833833
offer_options: Optional[List[OfferOptionRequest]] = None,
834834
language: Optional[StdLanguageCode] = None,
835835
domain_configuration: Optional[CreateHostingRequestDomainConfiguration] = None,
836+
skip_welcome_email: Optional[bool] = None,
836837
) -> Hosting:
837838
"""
838839
Order a Web Hosting plan.
@@ -846,6 +847,7 @@ async def create_hosting(
846847
:param offer_options: List of the Web Hosting plan options IDs with their quantities.
847848
:param language: Default language for the control panel interface.
848849
:param domain_configuration: Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements.
850+
:param skip_welcome_email: Indicates whether to skip a welcome email to the contact email containing hosting info.
849851
:return: :class:`Hosting <Hosting>`
850852
851853
Usage:
@@ -876,6 +878,7 @@ async def create_hosting(
876878
offer_options=offer_options,
877879
language=language,
878880
domain_configuration=domain_configuration,
881+
skip_welcome_email=skip_welcome_email,
879882
),
880883
self.client,
881884
),

scaleway-async/scaleway_async/webhosting/v1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,9 @@ def marshal_HostingApiCreateHostingRequest(
822822
)
823823
)
824824

825+
if request.skip_welcome_email is not None:
826+
output["skip_welcome_email"] = request.skip_welcome_email
827+
825828
return output
826829

827830

scaleway-async/scaleway_async/webhosting/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,11 @@ class HostingApiCreateHostingRequest:
918918
Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements.
919919
"""
920920

921+
skip_welcome_email: Optional[bool]
922+
"""
923+
Indicates whether to skip a welcome email to the contact email containing hosting info.
924+
"""
925+
921926

922927
@dataclass
923928
class HostingApiCreateSessionRequest:

scaleway/scaleway/webhosting/v1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ def create_hosting(
833833
offer_options: Optional[List[OfferOptionRequest]] = None,
834834
language: Optional[StdLanguageCode] = None,
835835
domain_configuration: Optional[CreateHostingRequestDomainConfiguration] = None,
836+
skip_welcome_email: Optional[bool] = None,
836837
) -> Hosting:
837838
"""
838839
Order a Web Hosting plan.
@@ -846,6 +847,7 @@ def create_hosting(
846847
:param offer_options: List of the Web Hosting plan options IDs with their quantities.
847848
:param language: Default language for the control panel interface.
848849
:param domain_configuration: Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements.
850+
:param skip_welcome_email: Indicates whether to skip a welcome email to the contact email containing hosting info.
849851
:return: :class:`Hosting <Hosting>`
850852
851853
Usage:
@@ -876,6 +878,7 @@ def create_hosting(
876878
offer_options=offer_options,
877879
language=language,
878880
domain_configuration=domain_configuration,
881+
skip_welcome_email=skip_welcome_email,
879882
),
880883
self.client,
881884
),

scaleway/scaleway/webhosting/v1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,9 @@ def marshal_HostingApiCreateHostingRequest(
822822
)
823823
)
824824

825+
if request.skip_welcome_email is not None:
826+
output["skip_welcome_email"] = request.skip_welcome_email
827+
825828
return output
826829

827830

scaleway/scaleway/webhosting/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,11 @@ class HostingApiCreateHostingRequest:
918918
Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements.
919919
"""
920920

921+
skip_welcome_email: Optional[bool]
922+
"""
923+
Indicates whether to skip a welcome email to the contact email containing hosting info.
924+
"""
925+
921926

922927
@dataclass
923928
class HostingApiCreateSessionRequest:

0 commit comments

Comments
 (0)