stopDevEnvironment method
Pauses a specified Dev Environment and places it in a non-running state. Stopped Dev Environments do not consume compute minutes.
Parameter id :
The system-generated unique ID of the Dev Environment.
Parameter projectName :
The name of the project in the space.
Parameter spaceName :
The name of the space.
Implementation
Future<StopDevEnvironmentResponse> stopDevEnvironment({
required String id,
required String projectName,
required String spaceName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/devEnvironments/${Uri.encodeComponent(id)}/stop',
exceptionFnMap: _exceptionFns,
);
return StopDevEnvironmentResponse.fromJson(response);
}