@@ -1305,7 +1305,9 @@ def upload_file(
13051305 id : str ,
13061306 * ,
13071307 path : str ,
1308+ chmod : Optional [str ] | NotGiven = NOT_GIVEN ,
13081309 file : FileTypes | NotGiven = NOT_GIVEN ,
1310+ owner : Optional [str ] | NotGiven = NOT_GIVEN ,
13091311 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13101312 # The extra values given here take precedence over values defined on the client or passed to this method.
13111313 extra_headers : Headers | None = None ,
@@ -1324,6 +1326,12 @@ def upload_file(
13241326 path: The path to write the file to on the Devbox. Path is relative to user home
13251327 directory.
13261328
1329+ chmod: File permissions in octal format (e.g., "644", "1755"). Optional. If not
1330+ specified, default system permissions will be used.
1331+
1332+ owner: File owner username. Optional. If not specified, the file will be owned by the
1333+ current user.
1334+
13271335 extra_headers: Send extra headers
13281336
13291337 extra_query: Add additional query parameters to the request
@@ -1341,7 +1349,9 @@ def upload_file(
13411349 body = deepcopy_minimal (
13421350 {
13431351 "path" : path ,
1352+ "chmod" : chmod ,
13441353 "file" : file ,
1354+ "owner" : owner ,
13451355 }
13461356 )
13471357 files = extract_files (cast (Mapping [str , object ], body ), paths = [["file" ]])
@@ -1369,6 +1379,8 @@ def write_file_contents(
13691379 * ,
13701380 contents : str ,
13711381 file_path : str ,
1382+ chmod : Optional [str ] | NotGiven = NOT_GIVEN ,
1383+ owner : Optional [str ] | NotGiven = NOT_GIVEN ,
13721384 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13731385 # The extra values given here take precedence over values defined on the client or passed to this method.
13741386 extra_headers : Headers | None = None ,
@@ -1388,6 +1400,12 @@ def write_file_contents(
13881400 file_path: The path to write the file to on the Devbox. Path is relative to user home
13891401 directory.
13901402
1403+ chmod: File permissions in octal format (e.g., "644", "1755"). Optional. If not
1404+ specified, default system permissions will be used.
1405+
1406+ owner: File owner username. Optional. If not specified, the file will be owned by the
1407+ current user.
1408+
13911409 extra_headers: Send extra headers
13921410
13931411 extra_query: Add additional query parameters to the request
@@ -1408,6 +1426,8 @@ def write_file_contents(
14081426 {
14091427 "contents" : contents ,
14101428 "file_path" : file_path ,
1429+ "chmod" : chmod ,
1430+ "owner" : owner ,
14111431 },
14121432 devbox_write_file_contents_params .DevboxWriteFileContentsParams ,
14131433 ),
@@ -2598,7 +2618,9 @@ async def upload_file(
25982618 id : str ,
25992619 * ,
26002620 path : str ,
2621+ chmod : Optional [str ] | NotGiven = NOT_GIVEN ,
26012622 file : FileTypes | NotGiven = NOT_GIVEN ,
2623+ owner : Optional [str ] | NotGiven = NOT_GIVEN ,
26022624 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
26032625 # The extra values given here take precedence over values defined on the client or passed to this method.
26042626 extra_headers : Headers | None = None ,
@@ -2617,6 +2639,12 @@ async def upload_file(
26172639 path: The path to write the file to on the Devbox. Path is relative to user home
26182640 directory.
26192641
2642+ chmod: File permissions in octal format (e.g., "644", "1755"). Optional. If not
2643+ specified, default system permissions will be used.
2644+
2645+ owner: File owner username. Optional. If not specified, the file will be owned by the
2646+ current user.
2647+
26202648 extra_headers: Send extra headers
26212649
26222650 extra_query: Add additional query parameters to the request
@@ -2634,7 +2662,9 @@ async def upload_file(
26342662 body = deepcopy_minimal (
26352663 {
26362664 "path" : path ,
2665+ "chmod" : chmod ,
26372666 "file" : file ,
2667+ "owner" : owner ,
26382668 }
26392669 )
26402670 files = extract_files (cast (Mapping [str , object ], body ), paths = [["file" ]])
@@ -2662,6 +2692,8 @@ async def write_file_contents(
26622692 * ,
26632693 contents : str ,
26642694 file_path : str ,
2695+ chmod : Optional [str ] | NotGiven = NOT_GIVEN ,
2696+ owner : Optional [str ] | NotGiven = NOT_GIVEN ,
26652697 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
26662698 # The extra values given here take precedence over values defined on the client or passed to this method.
26672699 extra_headers : Headers | None = None ,
@@ -2681,6 +2713,12 @@ async def write_file_contents(
26812713 file_path: The path to write the file to on the Devbox. Path is relative to user home
26822714 directory.
26832715
2716+ chmod: File permissions in octal format (e.g., "644", "1755"). Optional. If not
2717+ specified, default system permissions will be used.
2718+
2719+ owner: File owner username. Optional. If not specified, the file will be owned by the
2720+ current user.
2721+
26842722 extra_headers: Send extra headers
26852723
26862724 extra_query: Add additional query parameters to the request
@@ -2701,6 +2739,8 @@ async def write_file_contents(
27012739 {
27022740 "contents" : contents ,
27032741 "file_path" : file_path ,
2742+ "chmod" : chmod ,
2743+ "owner" : owner ,
27042744 },
27052745 devbox_write_file_contents_params .DevboxWriteFileContentsParams ,
27062746 ),
0 commit comments