deleteMesh method

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

Deletes an existing service mesh.

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

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

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: '/v20190125/meshes/${Uri.encodeComponent(meshName)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DeleteMeshOutput(
    mesh: MeshData.fromJson($json),
  );
}