@@ -136,6 +136,7 @@ def create(
136136 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
137137 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
138138 metadata : Optional [Dict [str , str ]] | Omit = omit ,
139+ network_policy_id : Optional [str ] | Omit = omit ,
139140 secrets : Optional [Dict [str , str ]] | Omit = omit ,
140141 services : Optional [Iterable [blueprint_create_params .Service ]] | Omit = omit ,
141142 system_setup_commands : Optional [SequenceNotStr [str ]] | Omit = omit ,
@@ -179,6 +180,12 @@ def create(
179180
180181 metadata: (Optional) User defined metadata for the Blueprint.
181182
183+ network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
184+ restricts network access during the build process. This does not affect devboxes
185+ created from this blueprint; if you want devboxes created from this blueprint to
186+ inherit the network policy, set the network_policy_id on the blueprint launch
187+ parameters.
188+
182189 secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
183190 will be available to commands during the build. Secrets are NOT stored in the
184191 blueprint image. Example: {"DB_PASS": "DATABASE_PASSWORD"} makes the secret
@@ -218,6 +225,7 @@ def create(
218225 "file_mounts" : file_mounts ,
219226 "launch_parameters" : launch_parameters ,
220227 "metadata" : metadata ,
228+ "network_policy_id" : network_policy_id ,
221229 "secrets" : secrets ,
222230 "services" : services ,
223231 "system_setup_commands" : system_setup_commands ,
@@ -489,6 +497,7 @@ def create_from_inspection(
489497 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
490498 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
491499 metadata : Optional [Dict [str , str ]] | Omit = omit ,
500+ network_policy_id : Optional [str ] | Omit = omit ,
492501 secrets : Optional [Dict [str , str ]] | Omit = omit ,
493502 system_setup_commands : Optional [SequenceNotStr [str ]] | Omit = omit ,
494503 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -516,6 +525,9 @@ def create_from_inspection(
516525
517526 metadata: (Optional) User defined metadata for the Blueprint.
518527
528+ network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
529+ restricts network access during the build process.
530+
519531 secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
520532 can be used as environment variables in system_setup_commands. Example:
521533 {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.
@@ -541,6 +553,7 @@ def create_from_inspection(
541553 "file_mounts" : file_mounts ,
542554 "launch_parameters" : launch_parameters ,
543555 "metadata" : metadata ,
556+ "network_policy_id" : network_policy_id ,
544557 "secrets" : secrets ,
545558 "system_setup_commands" : system_setup_commands ,
546559 },
@@ -657,6 +670,7 @@ def preview(
657670 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
658671 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
659672 metadata : Optional [Dict [str , str ]] | Omit = omit ,
673+ network_policy_id : Optional [str ] | Omit = omit ,
660674 secrets : Optional [Dict [str , str ]] | Omit = omit ,
661675 services : Optional [Iterable [blueprint_preview_params .Service ]] | Omit = omit ,
662676 system_setup_commands : Optional [SequenceNotStr [str ]] | Omit = omit ,
@@ -698,6 +712,12 @@ def preview(
698712
699713 metadata: (Optional) User defined metadata for the Blueprint.
700714
715+ network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
716+ restricts network access during the build process. This does not affect devboxes
717+ created from this blueprint; if you want devboxes created from this blueprint to
718+ inherit the network policy, set the network_policy_id on the blueprint launch
719+ parameters.
720+
701721 secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
702722 will be available to commands during the build. Secrets are NOT stored in the
703723 blueprint image. Example: {"DB_PASS": "DATABASE_PASSWORD"} makes the secret
@@ -733,6 +753,7 @@ def preview(
733753 "file_mounts" : file_mounts ,
734754 "launch_parameters" : launch_parameters ,
735755 "metadata" : metadata ,
756+ "network_policy_id" : network_policy_id ,
736757 "secrets" : secrets ,
737758 "services" : services ,
738759 "system_setup_commands" : system_setup_commands ,
@@ -783,6 +804,7 @@ async def create(
783804 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
784805 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
785806 metadata : Optional [Dict [str , str ]] | Omit = omit ,
807+ network_policy_id : Optional [str ] | Omit = omit ,
786808 secrets : Optional [Dict [str , str ]] | Omit = omit ,
787809 services : Optional [Iterable [blueprint_create_params .Service ]] | Omit = omit ,
788810 system_setup_commands : Optional [SequenceNotStr [str ]] | Omit = omit ,
@@ -826,6 +848,12 @@ async def create(
826848
827849 metadata: (Optional) User defined metadata for the Blueprint.
828850
851+ network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
852+ restricts network access during the build process. This does not affect devboxes
853+ created from this blueprint; if you want devboxes created from this blueprint to
854+ inherit the network policy, set the network_policy_id on the blueprint launch
855+ parameters.
856+
829857 secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
830858 will be available to commands during the build. Secrets are NOT stored in the
831859 blueprint image. Example: {"DB_PASS": "DATABASE_PASSWORD"} makes the secret
@@ -865,6 +893,7 @@ async def create(
865893 "file_mounts" : file_mounts ,
866894 "launch_parameters" : launch_parameters ,
867895 "metadata" : metadata ,
896+ "network_policy_id" : network_policy_id ,
868897 "secrets" : secrets ,
869898 "services" : services ,
870899 "system_setup_commands" : system_setup_commands ,
@@ -1136,6 +1165,7 @@ async def create_from_inspection(
11361165 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
11371166 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
11381167 metadata : Optional [Dict [str , str ]] | Omit = omit ,
1168+ network_policy_id : Optional [str ] | Omit = omit ,
11391169 secrets : Optional [Dict [str , str ]] | Omit = omit ,
11401170 system_setup_commands : Optional [SequenceNotStr [str ]] | Omit = omit ,
11411171 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1163,6 +1193,9 @@ async def create_from_inspection(
11631193
11641194 metadata: (Optional) User defined metadata for the Blueprint.
11651195
1196+ network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
1197+ restricts network access during the build process.
1198+
11661199 secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
11671200 can be used as environment variables in system_setup_commands. Example:
11681201 {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.
@@ -1188,6 +1221,7 @@ async def create_from_inspection(
11881221 "file_mounts" : file_mounts ,
11891222 "launch_parameters" : launch_parameters ,
11901223 "metadata" : metadata ,
1224+ "network_policy_id" : network_policy_id ,
11911225 "secrets" : secrets ,
11921226 "system_setup_commands" : system_setup_commands ,
11931227 },
@@ -1304,6 +1338,7 @@ async def preview(
13041338 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
13051339 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
13061340 metadata : Optional [Dict [str , str ]] | Omit = omit ,
1341+ network_policy_id : Optional [str ] | Omit = omit ,
13071342 secrets : Optional [Dict [str , str ]] | Omit = omit ,
13081343 services : Optional [Iterable [blueprint_preview_params .Service ]] | Omit = omit ,
13091344 system_setup_commands : Optional [SequenceNotStr [str ]] | Omit = omit ,
@@ -1345,6 +1380,12 @@ async def preview(
13451380
13461381 metadata: (Optional) User defined metadata for the Blueprint.
13471382
1383+ network_policy_id: (Optional) ID of the network policy to apply during blueprint build. This
1384+ restricts network access during the build process. This does not affect devboxes
1385+ created from this blueprint; if you want devboxes created from this blueprint to
1386+ inherit the network policy, set the network_policy_id on the blueprint launch
1387+ parameters.
1388+
13481389 secrets: (Optional) Map of mount IDs/environment variable names to secret names. Secrets
13491390 will be available to commands during the build. Secrets are NOT stored in the
13501391 blueprint image. Example: {"DB_PASS": "DATABASE_PASSWORD"} makes the secret
@@ -1380,6 +1421,7 @@ async def preview(
13801421 "file_mounts" : file_mounts ,
13811422 "launch_parameters" : launch_parameters ,
13821423 "metadata" : metadata ,
1424+ "network_policy_id" : network_policy_id ,
13831425 "secrets" : secrets ,
13841426 "services" : services ,
13851427 "system_setup_commands" : system_setup_commands ,
0 commit comments