@@ -321,6 +321,46 @@ def list(
321321 model = BlueprintView ,
322322 )
323323
324+ def delete (
325+ self ,
326+ id : str ,
327+ * ,
328+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
329+ # The extra values given here take precedence over values defined on the client or passed to this method.
330+ extra_headers : Headers | None = None ,
331+ extra_query : Query | None = None ,
332+ extra_body : Body | None = None ,
333+ timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
334+ idempotency_key : str | None = None ,
335+ ) -> object :
336+ """
337+ Delete a previously created Blueprint.
338+
339+ Args:
340+ extra_headers: Send extra headers
341+
342+ extra_query: Add additional query parameters to the request
343+
344+ extra_body: Add additional JSON properties to the request
345+
346+ timeout: Override the client-level default timeout for this request, in seconds
347+
348+ idempotency_key: Specify a custom idempotency key for this request
349+ """
350+ if not id :
351+ raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
352+ return self ._post (
353+ f"/v1/blueprints/{ id } /delete" ,
354+ options = make_request_options (
355+ extra_headers = extra_headers ,
356+ extra_query = extra_query ,
357+ extra_body = extra_body ,
358+ timeout = timeout ,
359+ idempotency_key = idempotency_key ,
360+ ),
361+ cast_to = object ,
362+ )
363+
324364 def logs (
325365 self ,
326366 id : str ,
@@ -710,6 +750,46 @@ def list(
710750 model = BlueprintView ,
711751 )
712752
753+ async def delete (
754+ self ,
755+ id : str ,
756+ * ,
757+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
758+ # The extra values given here take precedence over values defined on the client or passed to this method.
759+ extra_headers : Headers | None = None ,
760+ extra_query : Query | None = None ,
761+ extra_body : Body | None = None ,
762+ timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
763+ idempotency_key : str | None = None ,
764+ ) -> object :
765+ """
766+ Delete a previously created Blueprint.
767+
768+ Args:
769+ extra_headers: Send extra headers
770+
771+ extra_query: Add additional query parameters to the request
772+
773+ extra_body: Add additional JSON properties to the request
774+
775+ timeout: Override the client-level default timeout for this request, in seconds
776+
777+ idempotency_key: Specify a custom idempotency key for this request
778+ """
779+ if not id :
780+ raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
781+ return await self ._post (
782+ f"/v1/blueprints/{ id } /delete" ,
783+ options = make_request_options (
784+ extra_headers = extra_headers ,
785+ extra_query = extra_query ,
786+ extra_body = extra_body ,
787+ timeout = timeout ,
788+ idempotency_key = idempotency_key ,
789+ ),
790+ cast_to = object ,
791+ )
792+
713793 async def logs (
714794 self ,
715795 id : str ,
@@ -825,6 +905,9 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
825905 self .list = to_raw_response_wrapper (
826906 blueprints .list ,
827907 )
908+ self .delete = to_raw_response_wrapper (
909+ blueprints .delete ,
910+ )
828911 self .logs = to_raw_response_wrapper (
829912 blueprints .logs ,
830913 )
@@ -846,6 +929,9 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
846929 self .list = async_to_raw_response_wrapper (
847930 blueprints .list ,
848931 )
932+ self .delete = async_to_raw_response_wrapper (
933+ blueprints .delete ,
934+ )
849935 self .logs = async_to_raw_response_wrapper (
850936 blueprints .logs ,
851937 )
@@ -867,6 +953,9 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
867953 self .list = to_streamed_response_wrapper (
868954 blueprints .list ,
869955 )
956+ self .delete = to_streamed_response_wrapper (
957+ blueprints .delete ,
958+ )
870959 self .logs = to_streamed_response_wrapper (
871960 blueprints .logs ,
872961 )
@@ -888,6 +977,9 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
888977 self .list = async_to_streamed_response_wrapper (
889978 blueprints .list ,
890979 )
980+ self .delete = async_to_streamed_response_wrapper (
981+ blueprints .delete ,
982+ )
891983 self .logs = async_to_streamed_response_wrapper (
892984 blueprints .logs ,
893985 )
0 commit comments