@@ -748,6 +748,7 @@ def mark_active(
748748 def start (
749749 self ,
750750 * ,
751+ acknowledge_token : str | Omit = omit ,
751752 environment_id : str | Omit = omit ,
752753 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
753754 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -774,6 +775,10 @@ def start(
774775 ```
775776
776777 Args:
778+ acknowledge_token: acknowledge_token is the HMAC token from a previous
779+ EnvironmentMaxLifetimeEnforcementDetails response, allowing the user to start an
780+ environment past its max lifetime in warn mode.
781+
777782 environment_id: environment_id specifies which environment should be started.
778783
779784 extra_headers: Send extra headers
@@ -786,7 +791,13 @@ def start(
786791 """
787792 return self ._post (
788793 "/gitpod.v1.EnvironmentService/StartEnvironment" ,
789- body = maybe_transform ({"environment_id" : environment_id }, environment_start_params .EnvironmentStartParams ),
794+ body = maybe_transform (
795+ {
796+ "acknowledge_token" : acknowledge_token ,
797+ "environment_id" : environment_id ,
798+ },
799+ environment_start_params .EnvironmentStartParams ,
800+ ),
790801 options = make_request_options (
791802 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
792803 ),
@@ -1577,6 +1588,7 @@ async def mark_active(
15771588 async def start (
15781589 self ,
15791590 * ,
1591+ acknowledge_token : str | Omit = omit ,
15801592 environment_id : str | Omit = omit ,
15811593 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15821594 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1603,6 +1615,10 @@ async def start(
16031615 ```
16041616
16051617 Args:
1618+ acknowledge_token: acknowledge_token is the HMAC token from a previous
1619+ EnvironmentMaxLifetimeEnforcementDetails response, allowing the user to start an
1620+ environment past its max lifetime in warn mode.
1621+
16061622 environment_id: environment_id specifies which environment should be started.
16071623
16081624 extra_headers: Send extra headers
@@ -1616,7 +1632,11 @@ async def start(
16161632 return await self ._post (
16171633 "/gitpod.v1.EnvironmentService/StartEnvironment" ,
16181634 body = await async_maybe_transform (
1619- {"environment_id" : environment_id }, environment_start_params .EnvironmentStartParams
1635+ {
1636+ "acknowledge_token" : acknowledge_token ,
1637+ "environment_id" : environment_id ,
1638+ },
1639+ environment_start_params .EnvironmentStartParams ,
16201640 ),
16211641 options = make_request_options (
16221642 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
0 commit comments