3131from stackit .git .models .list_flavors import ListFlavors
3232from stackit .git .models .list_instances import ListInstances
3333from stackit .git .models .list_runner_labels import ListRunnerLabels
34- from stackit .git .models .patch_operation import PatchOperation
34+ from stackit .git .models .patch_instance_payload import PatchInstancePayload
3535from stackit .git .rest import RESTResponseType
3636
3737
@@ -1548,7 +1548,7 @@ def patch_instance(
15481548 instance_id : Annotated [
15491549 str , Field (min_length = 36 , strict = True , max_length = 36 , description = "Instance identifier." )
15501550 ],
1551- patch_operation : List [ PatchOperation ] ,
1551+ patch_instance_payload : PatchInstancePayload ,
15521552 _request_timeout : Union [
15531553 None ,
15541554 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1567,8 +1567,8 @@ def patch_instance(
15671567 :type project_id: str
15681568 :param instance_id: Instance identifier. (required)
15691569 :type instance_id: str
1570- :param patch_operation : (required)
1571- :type patch_operation: List[PatchOperation]
1570+ :param patch_instance_payload : (required)
1571+ :type patch_instance_payload: PatchInstancePayload
15721572 :param _request_timeout: timeout setting for this request. If one
15731573 number provided, it will be total request
15741574 timeout. It can also be a pair (tuple) of
@@ -1594,7 +1594,7 @@ def patch_instance(
15941594 _param = self ._patch_instance_serialize (
15951595 project_id = project_id ,
15961596 instance_id = instance_id ,
1597- patch_operation = patch_operation ,
1597+ patch_instance_payload = patch_instance_payload ,
15981598 _request_auth = _request_auth ,
15991599 _content_type = _content_type ,
16001600 _headers = _headers ,
@@ -1624,7 +1624,7 @@ def patch_instance_with_http_info(
16241624 instance_id : Annotated [
16251625 str , Field (min_length = 36 , strict = True , max_length = 36 , description = "Instance identifier." )
16261626 ],
1627- patch_operation : List [ PatchOperation ] ,
1627+ patch_instance_payload : PatchInstancePayload ,
16281628 _request_timeout : Union [
16291629 None ,
16301630 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1643,8 +1643,8 @@ def patch_instance_with_http_info(
16431643 :type project_id: str
16441644 :param instance_id: Instance identifier. (required)
16451645 :type instance_id: str
1646- :param patch_operation : (required)
1647- :type patch_operation: List[PatchOperation]
1646+ :param patch_instance_payload : (required)
1647+ :type patch_instance_payload: PatchInstancePayload
16481648 :param _request_timeout: timeout setting for this request. If one
16491649 number provided, it will be total request
16501650 timeout. It can also be a pair (tuple) of
@@ -1670,7 +1670,7 @@ def patch_instance_with_http_info(
16701670 _param = self ._patch_instance_serialize (
16711671 project_id = project_id ,
16721672 instance_id = instance_id ,
1673- patch_operation = patch_operation ,
1673+ patch_instance_payload = patch_instance_payload ,
16741674 _request_auth = _request_auth ,
16751675 _content_type = _content_type ,
16761676 _headers = _headers ,
@@ -1700,7 +1700,7 @@ def patch_instance_without_preload_content(
17001700 instance_id : Annotated [
17011701 str , Field (min_length = 36 , strict = True , max_length = 36 , description = "Instance identifier." )
17021702 ],
1703- patch_operation : List [ PatchOperation ] ,
1703+ patch_instance_payload : PatchInstancePayload ,
17041704 _request_timeout : Union [
17051705 None ,
17061706 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1719,8 +1719,8 @@ def patch_instance_without_preload_content(
17191719 :type project_id: str
17201720 :param instance_id: Instance identifier. (required)
17211721 :type instance_id: str
1722- :param patch_operation : (required)
1723- :type patch_operation: List[PatchOperation]
1722+ :param patch_instance_payload : (required)
1723+ :type patch_instance_payload: PatchInstancePayload
17241724 :param _request_timeout: timeout setting for this request. If one
17251725 number provided, it will be total request
17261726 timeout. It can also be a pair (tuple) of
@@ -1746,7 +1746,7 @@ def patch_instance_without_preload_content(
17461746 _param = self ._patch_instance_serialize (
17471747 project_id = project_id ,
17481748 instance_id = instance_id ,
1749- patch_operation = patch_operation ,
1749+ patch_instance_payload = patch_instance_payload ,
17501750 _request_auth = _request_auth ,
17511751 _content_type = _content_type ,
17521752 _headers = _headers ,
@@ -1769,7 +1769,7 @@ def _patch_instance_serialize(
17691769 self ,
17701770 project_id ,
17711771 instance_id ,
1772- patch_operation ,
1772+ patch_instance_payload ,
17731773 _request_auth ,
17741774 _content_type ,
17751775 _headers ,
@@ -1778,9 +1778,7 @@ def _patch_instance_serialize(
17781778
17791779 _host = None
17801780
1781- _collection_formats : Dict [str , str ] = {
1782- "PatchOperation" : "" ,
1783- }
1781+ _collection_formats : Dict [str , str ] = {}
17841782
17851783 _path_params : Dict [str , str ] = {}
17861784 _query_params : List [Tuple [str , str ]] = []
@@ -1798,8 +1796,8 @@ def _patch_instance_serialize(
17981796 # process the header parameters
17991797 # process the form parameters
18001798 # process the body parameter
1801- if patch_operation is not None :
1802- _body_params = patch_operation
1799+ if patch_instance_payload is not None :
1800+ _body_params = patch_instance_payload
18031801
18041802 # set the HTTP header `Accept`
18051803 if "Accept" not in _header_params :
@@ -1809,7 +1807,9 @@ def _patch_instance_serialize(
18091807 if _content_type :
18101808 _header_params ["Content-Type" ] = _content_type
18111809 else :
1812- _default_content_type = self .api_client .select_header_content_type (["application/json-patch+json" ])
1810+ _default_content_type = self .api_client .select_header_content_type (
1811+ ["application/json" , "application/json-patch+json" ]
1812+ )
18131813 if _default_content_type is not None :
18141814 _header_params ["Content-Type" ] = _default_content_type
18151815
0 commit comments