getEntity method
Retrieves information about an entity.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter entityId :
The ID of the entity.
Parameter workspaceId :
The ID of the workspace.
Implementation
Future<GetEntityResponse> getEntity({
required String entityId,
required String workspaceId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/workspaces/${Uri.encodeComponent(workspaceId)}/entities/${Uri.encodeComponent(entityId)}',
exceptionFnMap: _exceptionFns,
);
return GetEntityResponse.fromJson(response);
}