stopDevEnvironmentSession method

Future<StopDevEnvironmentSessionResponse> stopDevEnvironmentSession({
  1. required String id,
  2. required String projectName,
  3. required String sessionId,
  4. required String spaceName,
})

Stops a session for a specified Dev Environment.

Parameter id : The system-generated unique ID of the Dev Environment. To obtain this ID, use ListDevEnvironments.

Parameter projectName : The name of the project in the space.

Parameter sessionId : The system-generated unique ID of the Dev Environment session. This ID is returned by StartDevEnvironmentSession.

Parameter spaceName : The name of the space.

Implementation

Future<StopDevEnvironmentSessionResponse> stopDevEnvironmentSession({
  required String id,
  required String projectName,
  required String sessionId,
  required String spaceName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/devEnvironments/${Uri.encodeComponent(id)}/session/${Uri.encodeComponent(sessionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return StopDevEnvironmentSessionResponse.fromJson(response);
}