@@ -566,6 +566,7 @@ def create_from_project(
566566 * ,
567567 name : Optional [str ] | Omit = omit ,
568568 project_id : str | Omit = omit ,
569+ session_id : str | Omit = omit ,
569570 spec : EnvironmentSpecParam | Omit = omit ,
570571 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
571572 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -610,6 +611,9 @@ def create_from_project(
610611 name: name is a user-defined identifier for the environment. If not specified, the
611612 system will generate a name.
612613
614+ session_id: session_id is the ID of the session this environment belongs to. If empty, a new
615+ session is created implicitly.
616+
613617 spec: Spec is the configuration of the environment that's required for the runner to
614618 start the environment Configuration already defined in the Project will override
615619 parts of the spec, if set
@@ -628,6 +632,7 @@ def create_from_project(
628632 {
629633 "name" : name ,
630634 "project_id" : project_id ,
635+ "session_id" : session_id ,
631636 "spec" : spec ,
632637 },
633638 environment_create_from_project_params .EnvironmentCreateFromProjectParams ,
@@ -1400,6 +1405,7 @@ async def create_from_project(
14001405 * ,
14011406 name : Optional [str ] | Omit = omit ,
14021407 project_id : str | Omit = omit ,
1408+ session_id : str | Omit = omit ,
14031409 spec : EnvironmentSpecParam | Omit = omit ,
14041410 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
14051411 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1444,6 +1450,9 @@ async def create_from_project(
14441450 name: name is a user-defined identifier for the environment. If not specified, the
14451451 system will generate a name.
14461452
1453+ session_id: session_id is the ID of the session this environment belongs to. If empty, a new
1454+ session is created implicitly.
1455+
14471456 spec: Spec is the configuration of the environment that's required for the runner to
14481457 start the environment Configuration already defined in the Project will override
14491458 parts of the spec, if set
@@ -1462,6 +1471,7 @@ async def create_from_project(
14621471 {
14631472 "name" : name ,
14641473 "project_id" : project_id ,
1474+ "session_id" : session_id ,
14651475 "spec" : spec ,
14661476 },
14671477 environment_create_from_project_params .EnvironmentCreateFromProjectParams ,
0 commit comments