getUpgradeStatus method

Future<GetUpgradeStatusResponse> getUpgradeStatus({
  1. required String domainName,
})

Retrieves the latest status of the last upgrade or upgrade eligibility check that was performed on the domain.

May throw BaseException. May throw ResourceNotFoundException. May throw DisabledOperationException. May throw ValidationException. May throw InternalException.

Implementation

Future<GetUpgradeStatusResponse> getUpgradeStatus({
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2015-01-01/es/upgradeDomain/${Uri.encodeComponent(domainName)}/status',
    exceptionFnMap: _exceptionFns,
  );
  return GetUpgradeStatusResponse.fromJson(response);
}