3030from stackit .dns .models .clone_zone_payload import CloneZonePayload
3131from stackit .dns .models .create_label_payload import CreateLabelPayload
3232from stackit .dns .models .create_label_response import CreateLabelResponse
33+ from stackit .dns .models .create_move_code_payload import CreateMoveCodePayload
3334from stackit .dns .models .create_record_set_payload import CreateRecordSetPayload
3435from stackit .dns .models .create_zone_payload import CreateZonePayload
3536from stackit .dns .models .delete_label_response import DeleteLabelResponse
@@ -627,6 +628,9 @@ def create_move_code(
627628 self ,
628629 project_id : Annotated [StrictStr , Field (description = "project id" )],
629630 zone_id : Annotated [StrictStr , Field (description = "zone id" )],
631+ create_move_code_payload : Annotated [
632+ Optional [CreateMoveCodePayload ], Field (description = "information about the movecode" )
633+ ] = None ,
630634 _request_timeout : Union [
631635 None ,
632636 Annotated [StrictFloat , Field (gt = 0 )],
@@ -645,6 +649,8 @@ def create_move_code(
645649 :type project_id: str
646650 :param zone_id: zone id (required)
647651 :type zone_id: str
652+ :param create_move_code_payload: information about the movecode
653+ :type create_move_code_payload: CreateMoveCodePayload
648654 :param _request_timeout: timeout setting for this request. If one
649655 number provided, it will be total request
650656 timeout. It can also be a pair (tuple) of
@@ -670,6 +676,7 @@ def create_move_code(
670676 _param = self ._create_move_code_serialize (
671677 project_id = project_id ,
672678 zone_id = zone_id ,
679+ create_move_code_payload = create_move_code_payload ,
673680 _request_auth = _request_auth ,
674681 _content_type = _content_type ,
675682 _headers = _headers ,
@@ -695,6 +702,9 @@ def create_move_code_with_http_info(
695702 self ,
696703 project_id : Annotated [StrictStr , Field (description = "project id" )],
697704 zone_id : Annotated [StrictStr , Field (description = "zone id" )],
705+ create_move_code_payload : Annotated [
706+ Optional [CreateMoveCodePayload ], Field (description = "information about the movecode" )
707+ ] = None ,
698708 _request_timeout : Union [
699709 None ,
700710 Annotated [StrictFloat , Field (gt = 0 )],
@@ -713,6 +723,8 @@ def create_move_code_with_http_info(
713723 :type project_id: str
714724 :param zone_id: zone id (required)
715725 :type zone_id: str
726+ :param create_move_code_payload: information about the movecode
727+ :type create_move_code_payload: CreateMoveCodePayload
716728 :param _request_timeout: timeout setting for this request. If one
717729 number provided, it will be total request
718730 timeout. It can also be a pair (tuple) of
@@ -738,6 +750,7 @@ def create_move_code_with_http_info(
738750 _param = self ._create_move_code_serialize (
739751 project_id = project_id ,
740752 zone_id = zone_id ,
753+ create_move_code_payload = create_move_code_payload ,
741754 _request_auth = _request_auth ,
742755 _content_type = _content_type ,
743756 _headers = _headers ,
@@ -763,6 +776,9 @@ def create_move_code_without_preload_content(
763776 self ,
764777 project_id : Annotated [StrictStr , Field (description = "project id" )],
765778 zone_id : Annotated [StrictStr , Field (description = "zone id" )],
779+ create_move_code_payload : Annotated [
780+ Optional [CreateMoveCodePayload ], Field (description = "information about the movecode" )
781+ ] = None ,
766782 _request_timeout : Union [
767783 None ,
768784 Annotated [StrictFloat , Field (gt = 0 )],
@@ -781,6 +797,8 @@ def create_move_code_without_preload_content(
781797 :type project_id: str
782798 :param zone_id: zone id (required)
783799 :type zone_id: str
800+ :param create_move_code_payload: information about the movecode
801+ :type create_move_code_payload: CreateMoveCodePayload
784802 :param _request_timeout: timeout setting for this request. If one
785803 number provided, it will be total request
786804 timeout. It can also be a pair (tuple) of
@@ -806,6 +824,7 @@ def create_move_code_without_preload_content(
806824 _param = self ._create_move_code_serialize (
807825 project_id = project_id ,
808826 zone_id = zone_id ,
827+ create_move_code_payload = create_move_code_payload ,
809828 _request_auth = _request_auth ,
810829 _content_type = _content_type ,
811830 _headers = _headers ,
@@ -826,6 +845,7 @@ def _create_move_code_serialize(
826845 self ,
827846 project_id ,
828847 zone_id ,
848+ create_move_code_payload ,
829849 _request_auth ,
830850 _content_type ,
831851 _headers ,
@@ -852,11 +872,21 @@ def _create_move_code_serialize(
852872 # process the header parameters
853873 # process the form parameters
854874 # process the body parameter
875+ if create_move_code_payload is not None :
876+ _body_params = create_move_code_payload
855877
856878 # set the HTTP header `Accept`
857879 if "Accept" not in _header_params :
858880 _header_params ["Accept" ] = self .api_client .select_header_accept (["application/json" ])
859881
882+ # set the HTTP header `Content-Type`
883+ if _content_type :
884+ _header_params ["Content-Type" ] = _content_type
885+ else :
886+ _default_content_type = self .api_client .select_header_content_type (["application/json" ])
887+ if _default_content_type is not None :
888+ _header_params ["Content-Type" ] = _default_content_type
889+
860890 # authentication setting
861891 _auth_settings : List [str ] = []
862892
0 commit comments