updateTestGridProject method
Change details of a project.
May throw NotFoundException. May throw ArgumentException. May throw InternalServiceException.
Parameter projectArn
:
ARN of the project to update.
Parameter description
:
Human-readable description for the project.
Parameter name
:
Human-readable name for the project.
Implementation
Future<UpdateTestGridProjectResult> updateTestGridProject({
required String projectArn,
String? description,
String? name,
}) async {
ArgumentError.checkNotNull(projectArn, 'projectArn');
_s.validateStringLength(
'projectArn',
projectArn,
32,
1011,
isRequired: true,
);
_s.validateStringLength(
'description',
description,
1,
2048,
);
_s.validateStringLength(
'name',
name,
1,
64,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DeviceFarm_20150623.UpdateTestGridProject'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'projectArn': projectArn,
if (description != null) 'description': description,
if (name != null) 'name': name,
},
);
return UpdateTestGridProjectResult.fromJson(jsonResponse.body);
}