getHostname method
This operation is used by an endpoint to get the hostname from a device. The device shall return its hostname configurations through the getHostname
Implementation
Future<HostnameInformation> getHostname() async {
loggy.debug('getHostname');
final envelope = await transport.sendRequest(uri,
transport.securedEnvelope(soap.DeviceManagementRequest.hostname()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetHostnameResponse.fromJson(envelope.body.response!)
.hostnameInformation;
}