@@ -230,16 +230,30 @@ def is_done_building(blueprint: BlueprintView) -> bool:
230230 def create_and_await_build_complete (
231231 self ,
232232 * ,
233- create_args : blueprint_create_params .BlueprintCreateParams ,
234- request_args : BlueprintRequestArgs | None = None ,
233+ name : str ,
234+ base_blueprint_id : Optional [str ] | NotGiven = NOT_GIVEN ,
235+ code_mounts : Optional [Iterable [CodeMountParameters ]] | NotGiven = NOT_GIVEN ,
236+ dockerfile : Optional [str ] | NotGiven = NOT_GIVEN ,
237+ file_mounts : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
238+ launch_parameters : Optional [LaunchParameters ] | NotGiven = NOT_GIVEN ,
239+ polling_config : PollingConfig | None = None ,
240+ services : Optional [Iterable [blueprint_create_params .Service ]] | NotGiven = NOT_GIVEN ,
241+ system_setup_commands : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
242+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
243+ # The extra values given here take precedence over values defined on the client or passed to this method.
244+ extra_headers : Headers | None = None ,
245+ extra_query : Query | None = None ,
246+ extra_body : Body | None = None ,
247+ timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
248+ idempotency_key : str | None = None ,
235249 ) -> BlueprintView :
236250 """Create a new Blueprint and wait for it to finish building.
237251
238252 This is a wrapper around the `create` method that waits for the blueprint to finish building.
239253
240254 Args:
241- create_args: Arguments to pass to the `create` method. See the `create` method for detailed documentation.
242- request_args : Optional request arguments including polling configuration and additional request options
255+ See the `create` method for detailed documentation.
256+ polling_config : Optional polling configuration
243257
244258 Returns:
245259 The built blueprint
@@ -249,18 +263,29 @@ def create_and_await_build_complete(
249263 RunloopError: If blueprint enters a non-built terminal state
250264 """
251265 # Pass all create_args to the underlying create method
252- blueprint = self .create (** create_args )
253-
254- if request_args is None :
255- request_args = {}
266+ blueprint = self .create (
267+ name = name ,
268+ base_blueprint_id = base_blueprint_id ,
269+ code_mounts = code_mounts ,
270+ dockerfile = dockerfile ,
271+ file_mounts = file_mounts ,
272+ launch_parameters = launch_parameters ,
273+ services = services ,
274+ system_setup_commands = system_setup_commands ,
275+ extra_headers = extra_headers ,
276+ extra_query = extra_query ,
277+ extra_body = extra_body ,
278+ timeout = timeout ,
279+ idempotency_key = idempotency_key ,
280+ )
256281
257282 return self .await_build_complete (
258283 blueprint .id ,
259- polling_config = request_args . get ( " polling_config" , None ) ,
260- extra_headers = request_args . get ( " extra_headers" , None ) ,
261- extra_query = request_args . get ( " extra_query" , None ) ,
262- extra_body = request_args . get ( " extra_body" , None ) ,
263- timeout = request_args . get ( " timeout" , None ) ,
284+ polling_config = polling_config ,
285+ extra_headers = extra_headers ,
286+ extra_query = extra_query ,
287+ extra_body = extra_body ,
288+ timeout = timeout ,
264289 )
265290
266291 def list (
@@ -700,16 +725,30 @@ def is_done_building(blueprint: BlueprintView) -> bool:
700725 async def create_and_await_build_complete (
701726 self ,
702727 * ,
703- create_args : blueprint_create_params .BlueprintCreateParams ,
704- request_args : BlueprintRequestArgs | None = None ,
728+ name : str ,
729+ base_blueprint_id : Optional [str ] | NotGiven = NOT_GIVEN ,
730+ code_mounts : Optional [Iterable [CodeMountParameters ]] | NotGiven = NOT_GIVEN ,
731+ dockerfile : Optional [str ] | NotGiven = NOT_GIVEN ,
732+ file_mounts : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
733+ launch_parameters : Optional [LaunchParameters ] | NotGiven = NOT_GIVEN ,
734+ polling_config : PollingConfig | None = None ,
735+ services : Optional [Iterable [blueprint_create_params .Service ]] | NotGiven = NOT_GIVEN ,
736+ system_setup_commands : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
737+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
738+ # The extra values given here take precedence over values defined on the client or passed to this method.
739+ extra_headers : Headers | None = None ,
740+ extra_query : Query | None = None ,
741+ extra_body : Body | None = None ,
742+ timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
743+ idempotency_key : str | None = None ,
705744 ) -> BlueprintView :
706745 """Create a new Blueprint and wait for it to finish building.
707746
708747 This is a wrapper around the `create` method that waits for the blueprint to finish building.
709748
710749 Args:
711- create_args: Arguments to pass to the `create` method. See the `create` method for detailed documentation.
712- request_args : Optional request arguments including polling configuration and additional request options
750+ See the `create` method for detailed documentation.
751+ polling_config : Optional polling configuration
713752
714753 Returns:
715754 The built blueprint
@@ -719,19 +758,29 @@ async def create_and_await_build_complete(
719758 RunloopError: If blueprint enters a non-built terminal state
720759 """
721760 # Pass all create_args to the underlying create method
722- blueprint = await self .create (** create_args )
723-
724- # Extract polling config and other request args
725- if request_args is None :
726- request_args = {}
761+ blueprint = await self .create (
762+ name = name ,
763+ base_blueprint_id = base_blueprint_id ,
764+ code_mounts = code_mounts ,
765+ dockerfile = dockerfile ,
766+ file_mounts = file_mounts ,
767+ launch_parameters = launch_parameters ,
768+ services = services ,
769+ system_setup_commands = system_setup_commands ,
770+ extra_headers = extra_headers ,
771+ extra_query = extra_query ,
772+ extra_body = extra_body ,
773+ timeout = timeout ,
774+ idempotency_key = idempotency_key ,
775+ )
727776
728777 return await self .await_build_complete (
729778 blueprint .id ,
730- polling_config = request_args . get ( " polling_config" , None ) ,
731- extra_headers = request_args . get ( " extra_headers" , None ) ,
732- extra_query = request_args . get ( " extra_query" , None ) ,
733- extra_body = request_args . get ( " extra_body" , None ) ,
734- timeout = request_args . get ( " timeout" , None ) ,
779+ polling_config = polling_config ,
780+ extra_headers = extra_headers ,
781+ extra_query = extra_query ,
782+ extra_body = extra_body ,
783+ timeout = timeout ,
735784 )
736785
737786 def list (
0 commit comments