deleteMesh method

Future<DeleteMeshOutput> deleteMesh({
  1. required String meshName,
})

Deletes an existing service mesh.

You must delete all resources (routes, virtual routers, virtual nodes) in the service mesh before you can delete the mesh itself.

May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw ResourceInUseException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter meshName : The name of the service mesh to delete.

Implementation

Future<DeleteMeshOutput> deleteMesh({
  required String meshName,
}) async {
  ArgumentError.checkNotNull(meshName, 'meshName');
  _s.validateStringLength(
    'meshName',
    meshName,
    1,
    255,
    isRequired: true,
  );
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'DELETE',
    requestUri: '/meshes/${Uri.encodeComponent(meshName)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DeleteMeshOutput(
    mesh: MeshData.fromJson($json),
  );
}