|
12 | 12 | blueprint_create_params, |
13 | 13 | blueprint_preview_params, |
14 | 14 | blueprint_list_public_params, |
15 | | - blueprint_create_from_inspection_params, |
16 | 15 | ) |
17 | 16 | from .._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given |
18 | 17 | from .._utils import is_given, path_template, maybe_transform, async_maybe_transform |
|
33 | 32 | from .._utils._validation import ValidationNotification |
34 | 33 | from ..types.blueprint_view import BlueprintView |
35 | 34 | from ..types.blueprint_preview_view import BlueprintPreviewView |
36 | | -from ..types.inspection_source_param import InspectionSourceParam |
37 | 35 | from ..types.blueprint_build_logs_list_view import BlueprintBuildLogsListView |
38 | 36 | from ..types.shared_params.launch_parameters import LaunchParameters |
39 | 37 | from ..types.shared_params.code_mount_parameters import CodeMountParameters |
@@ -499,88 +497,6 @@ def delete( |
499 | 497 | cast_to=object, |
500 | 498 | ) |
501 | 499 |
|
502 | | - def create_from_inspection( |
503 | | - self, |
504 | | - *, |
505 | | - inspection_source: InspectionSourceParam, |
506 | | - name: str, |
507 | | - file_mounts: Optional[Dict[str, str]] | Omit = omit, |
508 | | - launch_parameters: Optional[LaunchParameters] | Omit = omit, |
509 | | - metadata: Optional[Dict[str, str]] | Omit = omit, |
510 | | - network_policy_id: Optional[str] | Omit = omit, |
511 | | - secrets: Optional[Dict[str, str]] | Omit = omit, |
512 | | - system_setup_commands: Optional[SequenceNotStr[str]] | Omit = omit, |
513 | | - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
514 | | - # The extra values given here take precedence over values defined on the client or passed to this method. |
515 | | - extra_headers: Headers | None = None, |
516 | | - extra_query: Query | None = None, |
517 | | - extra_body: Body | None = None, |
518 | | - timeout: float | httpx.Timeout | None | NotGiven = not_given, |
519 | | - idempotency_key: str | None = None, |
520 | | - ) -> BlueprintView: |
521 | | - """ |
522 | | - Starts build of custom defined container Blueprint using a RepositoryConnection |
523 | | - Inspection as a source container specification. |
524 | | -
|
525 | | - Args: |
526 | | - inspection_source: (Optional) Use a RepositoryInspection a source of a Blueprint build. The |
527 | | - Dockerfile will be automatically created based on the RepositoryInspection |
528 | | - contents. |
529 | | -
|
530 | | - name: Name of the Blueprint. |
531 | | -
|
532 | | - file_mounts: (Optional) Map of paths and file contents to write before setup. |
533 | | -
|
534 | | - launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox |
535 | | - as well as the environment set up that should be completed before the Devbox is |
536 | | - marked as 'running'. |
537 | | -
|
538 | | - metadata: (Optional) User defined metadata for the Blueprint. |
539 | | -
|
540 | | - network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This |
541 | | - restricts network access during the build process. |
542 | | -
|
543 | | - secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets |
544 | | - can be used as environment variables in system_setup_commands. Example: |
545 | | - {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN. |
546 | | -
|
547 | | - system_setup_commands: A list of commands to run to set up your system. |
548 | | -
|
549 | | - extra_headers: Send extra headers |
550 | | -
|
551 | | - extra_query: Add additional query parameters to the request |
552 | | -
|
553 | | - extra_body: Add additional JSON properties to the request |
554 | | -
|
555 | | - timeout: Override the client-level default timeout for this request, in seconds |
556 | | -
|
557 | | - idempotency_key: Specify a custom idempotency key for this request |
558 | | - """ |
559 | | - return self._post( |
560 | | - "/v1/blueprints/create_from_inspection", |
561 | | - body=maybe_transform( |
562 | | - { |
563 | | - "inspection_source": inspection_source, |
564 | | - "name": name, |
565 | | - "file_mounts": file_mounts, |
566 | | - "launch_parameters": launch_parameters, |
567 | | - "metadata": metadata, |
568 | | - "network_policy_id": network_policy_id, |
569 | | - "secrets": secrets, |
570 | | - "system_setup_commands": system_setup_commands, |
571 | | - }, |
572 | | - blueprint_create_from_inspection_params.BlueprintCreateFromInspectionParams, |
573 | | - ), |
574 | | - options=make_request_options( |
575 | | - extra_headers=extra_headers, |
576 | | - extra_query=extra_query, |
577 | | - extra_body=extra_body, |
578 | | - timeout=timeout, |
579 | | - idempotency_key=idempotency_key, |
580 | | - ), |
581 | | - cast_to=BlueprintView, |
582 | | - ) |
583 | | - |
584 | 500 | def list_public( |
585 | 501 | self, |
586 | 502 | *, |
@@ -1186,88 +1102,6 @@ async def delete( |
1186 | 1102 | cast_to=object, |
1187 | 1103 | ) |
1188 | 1104 |
|
1189 | | - async def create_from_inspection( |
1190 | | - self, |
1191 | | - *, |
1192 | | - inspection_source: InspectionSourceParam, |
1193 | | - name: str, |
1194 | | - file_mounts: Optional[Dict[str, str]] | Omit = omit, |
1195 | | - launch_parameters: Optional[LaunchParameters] | Omit = omit, |
1196 | | - metadata: Optional[Dict[str, str]] | Omit = omit, |
1197 | | - network_policy_id: Optional[str] | Omit = omit, |
1198 | | - secrets: Optional[Dict[str, str]] | Omit = omit, |
1199 | | - system_setup_commands: Optional[SequenceNotStr[str]] | Omit = omit, |
1200 | | - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1201 | | - # The extra values given here take precedence over values defined on the client or passed to this method. |
1202 | | - extra_headers: Headers | None = None, |
1203 | | - extra_query: Query | None = None, |
1204 | | - extra_body: Body | None = None, |
1205 | | - timeout: float | httpx.Timeout | None | NotGiven = not_given, |
1206 | | - idempotency_key: str | None = None, |
1207 | | - ) -> BlueprintView: |
1208 | | - """ |
1209 | | - Starts build of custom defined container Blueprint using a RepositoryConnection |
1210 | | - Inspection as a source container specification. |
1211 | | -
|
1212 | | - Args: |
1213 | | - inspection_source: (Optional) Use a RepositoryInspection a source of a Blueprint build. The |
1214 | | - Dockerfile will be automatically created based on the RepositoryInspection |
1215 | | - contents. |
1216 | | -
|
1217 | | - name: Name of the Blueprint. |
1218 | | -
|
1219 | | - file_mounts: (Optional) Map of paths and file contents to write before setup. |
1220 | | -
|
1221 | | - launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox |
1222 | | - as well as the environment set up that should be completed before the Devbox is |
1223 | | - marked as 'running'. |
1224 | | -
|
1225 | | - metadata: (Optional) User defined metadata for the Blueprint. |
1226 | | -
|
1227 | | - network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This |
1228 | | - restricts network access during the build process. |
1229 | | -
|
1230 | | - secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets |
1231 | | - can be used as environment variables in system_setup_commands. Example: |
1232 | | - {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN. |
1233 | | -
|
1234 | | - system_setup_commands: A list of commands to run to set up your system. |
1235 | | -
|
1236 | | - extra_headers: Send extra headers |
1237 | | -
|
1238 | | - extra_query: Add additional query parameters to the request |
1239 | | -
|
1240 | | - extra_body: Add additional JSON properties to the request |
1241 | | -
|
1242 | | - timeout: Override the client-level default timeout for this request, in seconds |
1243 | | -
|
1244 | | - idempotency_key: Specify a custom idempotency key for this request |
1245 | | - """ |
1246 | | - return await self._post( |
1247 | | - "/v1/blueprints/create_from_inspection", |
1248 | | - body=await async_maybe_transform( |
1249 | | - { |
1250 | | - "inspection_source": inspection_source, |
1251 | | - "name": name, |
1252 | | - "file_mounts": file_mounts, |
1253 | | - "launch_parameters": launch_parameters, |
1254 | | - "metadata": metadata, |
1255 | | - "network_policy_id": network_policy_id, |
1256 | | - "secrets": secrets, |
1257 | | - "system_setup_commands": system_setup_commands, |
1258 | | - }, |
1259 | | - blueprint_create_from_inspection_params.BlueprintCreateFromInspectionParams, |
1260 | | - ), |
1261 | | - options=make_request_options( |
1262 | | - extra_headers=extra_headers, |
1263 | | - extra_query=extra_query, |
1264 | | - extra_body=extra_body, |
1265 | | - timeout=timeout, |
1266 | | - idempotency_key=idempotency_key, |
1267 | | - ), |
1268 | | - cast_to=BlueprintView, |
1269 | | - ) |
1270 | | - |
1271 | 1105 | def list_public( |
1272 | 1106 | self, |
1273 | 1107 | *, |
@@ -1494,9 +1328,6 @@ def __init__(self, blueprints: BlueprintsResource) -> None: |
1494 | 1328 | self.delete = to_raw_response_wrapper( |
1495 | 1329 | blueprints.delete, |
1496 | 1330 | ) |
1497 | | - self.create_from_inspection = to_raw_response_wrapper( |
1498 | | - blueprints.create_from_inspection, |
1499 | | - ) |
1500 | 1331 | self.list_public = to_raw_response_wrapper( |
1501 | 1332 | blueprints.list_public, |
1502 | 1333 | ) |
@@ -1526,9 +1357,6 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None: |
1526 | 1357 | self.delete = async_to_raw_response_wrapper( |
1527 | 1358 | blueprints.delete, |
1528 | 1359 | ) |
1529 | | - self.create_from_inspection = async_to_raw_response_wrapper( |
1530 | | - blueprints.create_from_inspection, |
1531 | | - ) |
1532 | 1360 | self.list_public = async_to_raw_response_wrapper( |
1533 | 1361 | blueprints.list_public, |
1534 | 1362 | ) |
@@ -1558,9 +1386,6 @@ def __init__(self, blueprints: BlueprintsResource) -> None: |
1558 | 1386 | self.delete = to_streamed_response_wrapper( |
1559 | 1387 | blueprints.delete, |
1560 | 1388 | ) |
1561 | | - self.create_from_inspection = to_streamed_response_wrapper( |
1562 | | - blueprints.create_from_inspection, |
1563 | | - ) |
1564 | 1389 | self.list_public = to_streamed_response_wrapper( |
1565 | 1390 | blueprints.list_public, |
1566 | 1391 | ) |
@@ -1590,9 +1415,6 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None: |
1590 | 1415 | self.delete = async_to_streamed_response_wrapper( |
1591 | 1416 | blueprints.delete, |
1592 | 1417 | ) |
1593 | | - self.create_from_inspection = async_to_streamed_response_wrapper( |
1594 | | - blueprints.create_from_inspection, |
1595 | | - ) |
1596 | 1418 | self.list_public = async_to_streamed_response_wrapper( |
1597 | 1419 | blueprints.list_public, |
1598 | 1420 | ) |
|
0 commit comments