startDevEnvironmentSession method
Starts a session for a specified Dev Environment.
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<StartDevEnvironmentSessionResponse> startDevEnvironmentSession({
required String id,
required String projectName,
required DevEnvironmentSessionConfiguration sessionConfiguration,
required String spaceName,
}) async {
final $payload = <String, dynamic>{
'sessionConfiguration': sessionConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/devEnvironments/${Uri.encodeComponent(id)}/session',
exceptionFnMap: _exceptionFns,
);
return StartDevEnvironmentSessionResponse.fromJson(response);
}