getBasePathMappings method
Represents a collection of BasePathMapping resources.
May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException.
Parameter domainName
:
Required
The domain name of a BasePathMapping resource.
Parameter limit
:
The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
Parameter position
:
The current pagination position in the paged result set.
Implementation
Future<BasePathMappings> getBasePathMappings({
required String domainName,
int? limit,
String? position,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
final $query = <String, List<String>>{
if (limit != null) 'limit': [limit.toString()],
if (position != null) 'position': [position],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/domainnames/${Uri.encodeComponent(domainName)}/basepathmappings',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return BasePathMappings.fromJson(response);
}