Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 120
configured_endpoints: 119
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-8f05915b107d49f4a50f2d83abfa1d7233a685f1d85e02465a218fa5acb55ddd.yml
openapi_spec_hash: 905fa27970b4b7201184df9c63eba3b9
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e
3 changes: 0 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,12 @@ Types:

```python
from runloop_api_client.types import (
BlueprintBuildFromInspectionParameters,
BlueprintBuildLog,
BlueprintBuildLogsListView,
BlueprintBuildParameters,
BlueprintListView,
BlueprintPreviewView,
BlueprintView,
InspectionSource,
)
```

Expand All @@ -192,7 +190,6 @@ Methods:
- <code title="get /v1/blueprints/{id}">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/blueprint_view.py">BlueprintView</a></code>
- <code title="get /v1/blueprints">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">list</a>(\*\*<a href="src/runloop_api_client/types/blueprint_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_view.py">SyncBlueprintsCursorIDPage[BlueprintView]</a></code>
- <code title="post /v1/blueprints/{id}/delete">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">delete</a>(id) -> object</code>
- <code title="post /v1/blueprints/create_from_inspection">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">create_from_inspection</a>(\*\*<a href="src/runloop_api_client/types/blueprint_create_from_inspection_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_view.py">BlueprintView</a></code>
- <code title="get /v1/blueprints/list_public">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">list_public</a>(\*\*<a href="src/runloop_api_client/types/blueprint_list_public_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_view.py">SyncBlueprintsCursorIDPage[BlueprintView]</a></code>
- <code title="get /v1/blueprints/{id}/logs">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">logs</a>(id) -> <a href="./src/runloop_api_client/types/blueprint_build_logs_list_view.py">BlueprintBuildLogsListView</a></code>
- <code title="post /v1/blueprints/preview">client.blueprints.<a href="./src/runloop_api_client/resources/blueprints.py">preview</a>(\*\*<a href="src/runloop_api_client/types/blueprint_preview_params.py">params</a>) -> <a href="./src/runloop_api_client/types/blueprint_preview_view.py">BlueprintPreviewView</a></code>
Expand Down
178 changes: 0 additions & 178 deletions src/runloop_api_client/resources/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
blueprint_create_params,
blueprint_preview_params,
blueprint_list_public_params,
blueprint_create_from_inspection_params,
)
from .._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
from .._utils import is_given, path_template, maybe_transform, async_maybe_transform
Expand All @@ -33,7 +32,6 @@
from .._utils._validation import ValidationNotification
from ..types.blueprint_view import BlueprintView
from ..types.blueprint_preview_view import BlueprintPreviewView
from ..types.inspection_source_param import InspectionSourceParam
from ..types.blueprint_build_logs_list_view import BlueprintBuildLogsListView
from ..types.shared_params.launch_parameters import LaunchParameters
from ..types.shared_params.code_mount_parameters import CodeMountParameters
Expand Down Expand Up @@ -499,88 +497,6 @@ def delete(
cast_to=object,
)

def create_from_inspection(
self,
*,
inspection_source: InspectionSourceParam,
name: str,
file_mounts: Optional[Dict[str, str]] | Omit = omit,
launch_parameters: Optional[LaunchParameters] | Omit = omit,
metadata: Optional[Dict[str, str]] | Omit = omit,
network_policy_id: Optional[str] | Omit = omit,
secrets: Optional[Dict[str, str]] | Omit = omit,
system_setup_commands: Optional[SequenceNotStr[str]] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> BlueprintView:
"""
Starts build of custom defined container Blueprint using a RepositoryConnection
Inspection as a source container specification.

Args:
inspection_source: (Optional) Use a RepositoryInspection a source of a Blueprint build. The
Dockerfile will be automatically created based on the RepositoryInspection
contents.

name: Name of the Blueprint.

file_mounts: (Optional) Map of paths and file contents to write before setup.

launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
as well as the environment set up that should be completed before the Devbox is
marked as 'running'.

metadata: (Optional) User defined metadata for the Blueprint.

network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
restricts network access during the build process.

secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
can be used as environment variables in system_setup_commands. Example:
{"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.

system_setup_commands: A list of commands to run to set up your system.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
return self._post(
"/v1/blueprints/create_from_inspection",
body=maybe_transform(
{
"inspection_source": inspection_source,
"name": name,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"network_policy_id": network_policy_id,
"secrets": secrets,
"system_setup_commands": system_setup_commands,
},
blueprint_create_from_inspection_params.BlueprintCreateFromInspectionParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=BlueprintView,
)

def list_public(
self,
*,
Expand Down Expand Up @@ -1186,88 +1102,6 @@ async def delete(
cast_to=object,
)

async def create_from_inspection(
self,
*,
inspection_source: InspectionSourceParam,
name: str,
file_mounts: Optional[Dict[str, str]] | Omit = omit,
launch_parameters: Optional[LaunchParameters] | Omit = omit,
metadata: Optional[Dict[str, str]] | Omit = omit,
network_policy_id: Optional[str] | Omit = omit,
secrets: Optional[Dict[str, str]] | Omit = omit,
system_setup_commands: Optional[SequenceNotStr[str]] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> BlueprintView:
"""
Starts build of custom defined container Blueprint using a RepositoryConnection
Inspection as a source container specification.

Args:
inspection_source: (Optional) Use a RepositoryInspection a source of a Blueprint build. The
Dockerfile will be automatically created based on the RepositoryInspection
contents.

name: Name of the Blueprint.

file_mounts: (Optional) Map of paths and file contents to write before setup.

launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
as well as the environment set up that should be completed before the Devbox is
marked as 'running'.

metadata: (Optional) User defined metadata for the Blueprint.

network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
restricts network access during the build process.

secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
can be used as environment variables in system_setup_commands. Example:
{"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.

system_setup_commands: A list of commands to run to set up your system.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
return await self._post(
"/v1/blueprints/create_from_inspection",
body=await async_maybe_transform(
{
"inspection_source": inspection_source,
"name": name,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"network_policy_id": network_policy_id,
"secrets": secrets,
"system_setup_commands": system_setup_commands,
},
blueprint_create_from_inspection_params.BlueprintCreateFromInspectionParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=BlueprintView,
)

def list_public(
self,
*,
Expand Down Expand Up @@ -1494,9 +1328,6 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
self.delete = to_raw_response_wrapper(
blueprints.delete,
)
self.create_from_inspection = to_raw_response_wrapper(
blueprints.create_from_inspection,
)
self.list_public = to_raw_response_wrapper(
blueprints.list_public,
)
Expand Down Expand Up @@ -1526,9 +1357,6 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
self.delete = async_to_raw_response_wrapper(
blueprints.delete,
)
self.create_from_inspection = async_to_raw_response_wrapper(
blueprints.create_from_inspection,
)
self.list_public = async_to_raw_response_wrapper(
blueprints.list_public,
)
Expand Down Expand Up @@ -1558,9 +1386,6 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
self.delete = to_streamed_response_wrapper(
blueprints.delete,
)
self.create_from_inspection = to_streamed_response_wrapper(
blueprints.create_from_inspection,
)
self.list_public = to_streamed_response_wrapper(
blueprints.list_public,
)
Expand Down Expand Up @@ -1590,9 +1415,6 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
self.delete = async_to_streamed_response_wrapper(
blueprints.delete,
)
self.create_from_inspection = async_to_streamed_response_wrapper(
blueprints.create_from_inspection,
)
self.list_public = async_to_streamed_response_wrapper(
blueprints.list_public,
)
Expand Down
4 changes: 0 additions & 4 deletions src/runloop_api_client/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
from .benchmark_run_list_view import BenchmarkRunListView as BenchmarkRunListView
from .benchmark_update_params import BenchmarkUpdateParams as BenchmarkUpdateParams
from .blueprint_create_params import BlueprintCreateParams as BlueprintCreateParams
from .inspection_source_param import InspectionSourceParam as InspectionSourceParam
from .pty_control_result_view import PtyControlResultView as PtyControlResultView
from .agent_devbox_counts_view import AgentDevboxCountsView as AgentDevboxCountsView
from .agent_list_public_params import AgentListPublicParams as AgentListPublicParams
Expand Down Expand Up @@ -146,6 +145,3 @@
from .benchmark_run_list_scenario_runs_params import (
BenchmarkRunListScenarioRunsParams as BenchmarkRunListScenarioRunsParams,
)
from .blueprint_create_from_inspection_params import (
BlueprintCreateFromInspectionParams as BlueprintCreateFromInspectionParams,
)

This file was deleted.

18 changes: 0 additions & 18 deletions src/runloop_api_client/types/inspection_source_param.py

This file was deleted.

Loading