File tree Expand file tree Collapse file tree 6 files changed +50
-8
lines changed
scaleway/scaleway/tem/v1alpha1
scaleway-async/scaleway_async/tem/v1alpha1 Expand file tree Collapse file tree 6 files changed +50
-8
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,7 @@ async def create_domain(
446
446
* ,
447
447
domain_name : str ,
448
448
accept_tos : bool ,
449
+ autoconfig : bool ,
449
450
region : Optional [Region ] = None ,
450
451
project_id : Optional [str ] = None ,
451
452
) -> Domain :
@@ -454,6 +455,7 @@ async def create_domain(
454
455
You must specify the `region`, `project_id` and `domain_name` to register a domain in a specific Project.
455
456
:param domain_name: Fully qualified domain dame.
456
457
:param accept_tos: Accept Scaleway's Terms of Service.
458
+ :param autoconfig: Activate auto-configuration of the domain's DNS zone.
457
459
:param region: Region to target. If none is passed will use default region from the config.
458
460
:param project_id: ID of the project to which the domain belongs.
459
461
:return: :class:`Domain <Domain>`
@@ -464,6 +466,7 @@ async def create_domain(
464
466
result = await api.create_domain(
465
467
domain_name="example",
466
468
accept_tos=False,
469
+ autoconfig=False,
467
470
)
468
471
"""
469
472
@@ -478,6 +481,7 @@ async def create_domain(
478
481
CreateDomainRequest (
479
482
domain_name = domain_name ,
480
483
accept_tos = accept_tos ,
484
+ autoconfig = autoconfig ,
481
485
region = region ,
482
486
project_id = project_id ,
483
487
),
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ def unmarshal_Domain(data: Any) -> Domain:
281
281
if field is not None :
282
282
args ["spf_config" ] = field
283
283
284
+ field = data .get ("dkim_config" , None )
285
+ if field is not None :
286
+ args ["dkim_config" ] = field
287
+
284
288
field = data .get ("created_at" , None )
285
289
if field is not None :
286
290
args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
@@ -303,9 +307,9 @@ def unmarshal_Domain(data: Any) -> Domain:
303
307
else :
304
308
args ["last_valid_at" ] = None
305
309
306
- field = data .get ("dkim_config " , None )
310
+ field = data .get ("autoconfig " , None )
307
311
if field is not None :
308
- args ["dkim_config " ] = field
312
+ args ["autoconfig " ] = field
309
313
310
314
field = data .get ("region" , None )
311
315
if field is not None :
@@ -730,6 +734,9 @@ def marshal_CreateDomainRequest(
730
734
if request .accept_tos is not None :
731
735
output ["accept_tos" ] = request .accept_tos
732
736
737
+ if request .autoconfig is not None :
738
+ output ["autoconfig" ] = request .autoconfig
739
+
733
740
if request .project_id is not None :
734
741
output ["project_id" ] = request .project_id or defaults .default_project_id
735
742
Original file line number Diff line number Diff line change @@ -433,6 +433,11 @@ class Domain:
433
433
Snippet of the SPF record to register in the DNS zone.
434
434
"""
435
435
436
+ dkim_config : str
437
+ """
438
+ DKIM public key to record in the DNS zone.
439
+ """
440
+
436
441
created_at : Optional [datetime ]
437
442
"""
438
443
Date and time of domain creation.
@@ -448,9 +453,9 @@ class Domain:
448
453
Date and time the domain was last valid.
449
454
"""
450
455
451
- dkim_config : str
456
+ autoconfig : bool
452
457
"""
453
- DKIM public key to record in the DNS zone.
458
+ Status of auto-configuration for the domain's DNS zone.
454
459
"""
455
460
456
461
region : Region
@@ -628,6 +633,11 @@ class CreateDomainRequest:
628
633
Accept Scaleway's Terms of Service.
629
634
"""
630
635
636
+ autoconfig : bool
637
+ """
638
+ Activate auto-configuration of the domain's DNS zone.
639
+ """
640
+
631
641
region : Optional [Region ]
632
642
"""
633
643
Region to target. If none is passed will use default region from the config.
Original file line number Diff line number Diff line change @@ -446,6 +446,7 @@ def create_domain(
446
446
* ,
447
447
domain_name : str ,
448
448
accept_tos : bool ,
449
+ autoconfig : bool ,
449
450
region : Optional [Region ] = None ,
450
451
project_id : Optional [str ] = None ,
451
452
) -> Domain :
@@ -454,6 +455,7 @@ def create_domain(
454
455
You must specify the `region`, `project_id` and `domain_name` to register a domain in a specific Project.
455
456
:param domain_name: Fully qualified domain dame.
456
457
:param accept_tos: Accept Scaleway's Terms of Service.
458
+ :param autoconfig: Activate auto-configuration of the domain's DNS zone.
457
459
:param region: Region to target. If none is passed will use default region from the config.
458
460
:param project_id: ID of the project to which the domain belongs.
459
461
:return: :class:`Domain <Domain>`
@@ -464,6 +466,7 @@ def create_domain(
464
466
result = api.create_domain(
465
467
domain_name="example",
466
468
accept_tos=False,
469
+ autoconfig=False,
467
470
)
468
471
"""
469
472
@@ -478,6 +481,7 @@ def create_domain(
478
481
CreateDomainRequest (
479
482
domain_name = domain_name ,
480
483
accept_tos = accept_tos ,
484
+ autoconfig = autoconfig ,
481
485
region = region ,
482
486
project_id = project_id ,
483
487
),
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ def unmarshal_Domain(data: Any) -> Domain:
281
281
if field is not None :
282
282
args ["spf_config" ] = field
283
283
284
+ field = data .get ("dkim_config" , None )
285
+ if field is not None :
286
+ args ["dkim_config" ] = field
287
+
284
288
field = data .get ("created_at" , None )
285
289
if field is not None :
286
290
args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
@@ -303,9 +307,9 @@ def unmarshal_Domain(data: Any) -> Domain:
303
307
else :
304
308
args ["last_valid_at" ] = None
305
309
306
- field = data .get ("dkim_config " , None )
310
+ field = data .get ("autoconfig " , None )
307
311
if field is not None :
308
- args ["dkim_config " ] = field
312
+ args ["autoconfig " ] = field
309
313
310
314
field = data .get ("region" , None )
311
315
if field is not None :
@@ -730,6 +734,9 @@ def marshal_CreateDomainRequest(
730
734
if request .accept_tos is not None :
731
735
output ["accept_tos" ] = request .accept_tos
732
736
737
+ if request .autoconfig is not None :
738
+ output ["autoconfig" ] = request .autoconfig
739
+
733
740
if request .project_id is not None :
734
741
output ["project_id" ] = request .project_id or defaults .default_project_id
735
742
Original file line number Diff line number Diff line change @@ -433,6 +433,11 @@ class Domain:
433
433
Snippet of the SPF record to register in the DNS zone.
434
434
"""
435
435
436
+ dkim_config : str
437
+ """
438
+ DKIM public key to record in the DNS zone.
439
+ """
440
+
436
441
created_at : Optional [datetime ]
437
442
"""
438
443
Date and time of domain creation.
@@ -448,9 +453,9 @@ class Domain:
448
453
Date and time the domain was last valid.
449
454
"""
450
455
451
- dkim_config : str
456
+ autoconfig : bool
452
457
"""
453
- DKIM public key to record in the DNS zone.
458
+ Status of auto-configuration for the domain's DNS zone.
454
459
"""
455
460
456
461
region : Region
@@ -628,6 +633,11 @@ class CreateDomainRequest:
628
633
Accept Scaleway's Terms of Service.
629
634
"""
630
635
636
+ autoconfig : bool
637
+ """
638
+ Activate auto-configuration of the domain's DNS zone.
639
+ """
640
+
631
641
region : Optional [Region ]
632
642
"""
633
643
Region to target. If none is passed will use default region from the config.
You can’t perform that action at this time.
0 commit comments