updateProject method
Update an existing project.
May throw InternalFailureException. May throw ServiceUnavailableException. May throw UnauthorizedException. May throw TooManyRequestsException. May throw BadRequestException. May throw NotFoundException. May throw AccountActionRequiredException. May throw LimitExceededException.
Parameter projectId
:
Unique project identifier.
Parameter contents
:
ZIP or YAML file which contains project configuration to be updated. This
should be the contents of the file downloaded from the URL provided in an
export project operation.
Implementation
Future<UpdateProjectResult> updateProject({
required String projectId,
Uint8List? contents,
}) async {
ArgumentError.checkNotNull(projectId, 'projectId');
final $query = <String, List<String>>{
'projectId': [projectId],
};
final response = await _protocol.send(
payload: contents,
method: 'POST',
requestUri: '/update',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return UpdateProjectResult.fromJson(response);
}