getFleet method
Get a fleet.
May throw AccessDeniedException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter farmId :
The farm ID of the farm in the fleet.
Parameter fleetId :
The fleet ID of the fleet to get.
Implementation
Future<GetFleetResponse> getFleet({
required String farmId,
required String fleetId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2023-10-12/farms/${Uri.encodeComponent(farmId)}/fleets/${Uri.encodeComponent(fleetId)}',
hostPrefix: 'management.',
exceptionFnMap: _exceptionFns,
);
return GetFleetResponse.fromJson(response);
}