@@ -91,6 +91,7 @@ def with_streaming_response(self) -> EnvironmentsResourceWithStreamingResponse:
9191 def create (
9292 self ,
9393 * ,
94+ name : Optional [str ] | Omit = omit ,
9495 spec : EnvironmentSpecParam | Omit = omit ,
9596 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9697 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -164,6 +165,9 @@ def create(
164165 ```
165166
166167 Args:
168+ name: name is a user-defined identifier for the environment. If not specified, the
169+ system will generate a name.
170+
167171 spec: spec is the configuration of the environment that's required for the to start
168172 the environment
169173
@@ -177,7 +181,13 @@ def create(
177181 """
178182 return self ._post (
179183 "/gitpod.v1.EnvironmentService/CreateEnvironment" ,
180- body = maybe_transform ({"spec" : spec }, environment_create_params .EnvironmentCreateParams ),
184+ body = maybe_transform (
185+ {
186+ "name" : name ,
187+ "spec" : spec ,
188+ },
189+ environment_create_params .EnvironmentCreateParams ,
190+ ),
181191 options = make_request_options (
182192 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
183193 ),
@@ -549,6 +559,7 @@ def create_environment_token(
549559 def create_from_project (
550560 self ,
551561 * ,
562+ name : Optional [str ] | Omit = omit ,
552563 project_id : str | Omit = omit ,
553564 spec : EnvironmentSpecParam | Omit = omit ,
554565 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -591,6 +602,9 @@ def create_from_project(
591602 ```
592603
593604 Args:
605+ name: name is a user-defined identifier for the environment. If not specified, the
606+ system will generate a name.
607+
594608 spec: Spec is the configuration of the environment that's required for the runner to
595609 start the environment Configuration already defined in the Project will override
596610 parts of the spec, if set
@@ -607,6 +621,7 @@ def create_from_project(
607621 "/gitpod.v1.EnvironmentService/CreateEnvironmentFromProject" ,
608622 body = maybe_transform (
609623 {
624+ "name" : name ,
610625 "project_id" : project_id ,
611626 "spec" : spec ,
612627 },
@@ -905,6 +920,7 @@ def with_streaming_response(self) -> AsyncEnvironmentsResourceWithStreamingRespo
905920 async def create (
906921 self ,
907922 * ,
923+ name : Optional [str ] | Omit = omit ,
908924 spec : EnvironmentSpecParam | Omit = omit ,
909925 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
910926 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -978,6 +994,9 @@ async def create(
978994 ```
979995
980996 Args:
997+ name: name is a user-defined identifier for the environment. If not specified, the
998+ system will generate a name.
999+
9811000 spec: spec is the configuration of the environment that's required for the to start
9821001 the environment
9831002
@@ -991,7 +1010,13 @@ async def create(
9911010 """
9921011 return await self ._post (
9931012 "/gitpod.v1.EnvironmentService/CreateEnvironment" ,
994- body = await async_maybe_transform ({"spec" : spec }, environment_create_params .EnvironmentCreateParams ),
1013+ body = await async_maybe_transform (
1014+ {
1015+ "name" : name ,
1016+ "spec" : spec ,
1017+ },
1018+ environment_create_params .EnvironmentCreateParams ,
1019+ ),
9951020 options = make_request_options (
9961021 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
9971022 ),
@@ -1363,6 +1388,7 @@ async def create_environment_token(
13631388 async def create_from_project (
13641389 self ,
13651390 * ,
1391+ name : Optional [str ] | Omit = omit ,
13661392 project_id : str | Omit = omit ,
13671393 spec : EnvironmentSpecParam | Omit = omit ,
13681394 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1405,6 +1431,9 @@ async def create_from_project(
14051431 ```
14061432
14071433 Args:
1434+ name: name is a user-defined identifier for the environment. If not specified, the
1435+ system will generate a name.
1436+
14081437 spec: Spec is the configuration of the environment that's required for the runner to
14091438 start the environment Configuration already defined in the Project will override
14101439 parts of the spec, if set
@@ -1421,6 +1450,7 @@ async def create_from_project(
14211450 "/gitpod.v1.EnvironmentService/CreateEnvironmentFromProject" ,
14221451 body = await async_maybe_transform (
14231452 {
1453+ "name" : name ,
14241454 "project_id" : project_id ,
14251455 "spec" : spec ,
14261456 },
0 commit comments