updateBasePathMapping method

Future<BasePathMapping> updateBasePathMapping({
  1. required String basePath,
  2. required String domainName,
  3. List<PatchOperation>? patchOperations,
})

Changes information about the BasePathMapping resource.

May throw UnauthorizedException. May throw NotFoundException. May throw ConflictException. May throw BadRequestException. May throw TooManyRequestsException.

Parameter basePath : Required The base path of the BasePathMapping resource to change.

To specify an empty base path, set this parameter to '(none)'.

Parameter domainName : Required The domain name of the BasePathMapping resource to change.

Parameter patchOperations : A list of update operations to be applied to the specified resource and in the order specified in this list.

Implementation

Future<BasePathMapping> updateBasePathMapping({
  required String basePath,
  required String domainName,
  List<PatchOperation>? patchOperations,
}) async {
  ArgumentError.checkNotNull(basePath, 'basePath');
  ArgumentError.checkNotNull(domainName, 'domainName');
  final $payload = <String, dynamic>{
    if (patchOperations != null) 'patchOperations': patchOperations,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/domainnames/${Uri.encodeComponent(domainName)}/basepathmappings/${Uri.encodeComponent(basePath)}',
    exceptionFnMap: _exceptionFns,
  );
  return BasePathMapping.fromJson(response);
}